Skip to Content
Docs
API referenceManagement API

Organizations

List organizations

GET
/organizations

Retrieve a paginated list of organizations. Filter by status, external_id, and search query.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

status?string

Filter by the organization's own status (active, suspended)

page?integer

Page number

limit?integer

Items per page

sort?string

Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, slug, status. Default: -created_at

search?string

Search query

external_id?string

Exact match on the id the caller gave the organization

slug?string

Exact match on the slug: finds an organization by it (D17)

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations'
Example Response
{  "data": [    {      "created_at": "string",      "external_id": "string",      "id": "string",      "instance_id": "string",      "member_count": 0,      "member_limit": 0,      "member_limits": {        "billing": 0,        "manual": 0      },      "metadata": {        "property1": "string",        "property2": "string"      },      "name": "string",      "object": "string",      "slug": "string",      "status": "active",      "suspended_at": "string",      "suspension_reasons": [        "string"      ],      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Create organization

POST
/organizations

Create a new organization. Organizations are the customer-facing tenant, and flat: structure below one is modelled as resources that belong to it. The slug (supplied, or generated from the name) is immutable once created; one another organization in the instance holds is refused with 409 slug_conflict, never suffixed.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Organization creation details

application/json
  1. body

Organization creation details

external_id?string
metadata?
name*string
owners?array<string>

Owners hold the owner role from the start, each made a member with it. At least one is required; an organization always keeps one.

slug?string

Slug is set once, here, and is immutable afterwards. Generated from the name when omitted. Unique within the instance; released on delete.

Response Body

Created

application/json
  1. response
created_at?string
external_id?string
id?string
instance_id?string
member_count?integer
member_limit?integer

MemberLimit is the limit in force: the lowest of member_limits, or null when none is set (pontive-spec 09, Member limits).

member_limits?

MemberLimits are the member limits set on the organization, by source.

metadata?
name?string
object?string
slug?string
status?string

Status is the organization's status. Suspending it also suspends access to every resource parented under it.

Value in"active""suspended"
suspended_at?string
suspension_reasons?array<string>

SuspensionReasons is why the organization is suspended: admin, billing, closed, or several. It is suspended while this is not empty, and the list is empty while it is active (pontive-spec 09, Suspension reasons).

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "created_at": "string",  "external_id": "string",  "id": "string",  "instance_id": "string",  "member_count": 0,  "member_limit": 0,  "member_limits": {    "billing": 0,    "manual": 0  },  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "slug": "string",  "status": "active",  "suspended_at": "string",  "suspension_reasons": [    "string"  ],  "updated_at": "string"}
GET
/organizations/external_id/{external_id}

Retrieve the organization the caller gave this external id when creating or updating it: an exact match on the instance-unique external_id. Answers the organization or 404. Percent-encode the value.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

external_id*string

The id the caller gave the organization

Response Body

OK

application/json
  1. response
created_at?string
external_id?string
id?string
instance_id?string
member_count?integer
member_limit?integer

MemberLimit is the limit in force: the lowest of member_limits, or null when none is set (pontive-spec 09, Member limits).

member_limits?

MemberLimits are the member limits set on the organization, by source.

metadata?
name?string
object?string
slug?string
status?string

Status is the organization's status. Suspending it also suspends access to every resource parented under it.

Value in"active""suspended"
suspended_at?string
suspension_reasons?array<string>

SuspensionReasons is why the organization is suspended: admin, billing, closed, or several. It is suspended while this is not empty, and the list is empty while it is active (pontive-spec 09, Suspension reasons).

updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/external_id/string'
Example Response
{  "created_at": "string",  "external_id": "string",  "id": "string",  "instance_id": "string",  "member_count": 0,  "member_limit": 0,  "member_limits": {    "billing": 0,    "manual": 0  },  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "slug": "string",  "status": "active",  "suspended_at": "string",  "suspension_reasons": [    "string"  ],  "updated_at": "string"}
GET
/organizations/settings

The instance-wide policy that applies to every organization: whether members may leave, the roles given on joining, and how long an invitation stays open

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Response Body

OK

application/json
  1. response
settings?
Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/settings'
Example Response
{  "settings": {    "allow_members_to_leave": true,    "instance_id": "string",    "invitation_expiry_days": 0,    "object": "string",    "roles_on_join": [      "string"    ],    "updated_at": "string"  }}
PATCH
/organizations/settings

Change the instance-wide organization policy. Omitted fields are left as they are

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Header Parameters

If-Match?string

The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)

Request Body

Fields to change

application/json
  1. body

Fields to change

allow_members_to_leave?boolean
invitation_expiry_days?integer
Range1 <= value <= 365
roles_on_join?array<string>

RolesOnJoin replaces the roles given on joining; omitted leaves them.

Response Body

OK

application/json
  1. response
settings?
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/organizations/settings' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "settings": {    "allow_members_to_leave": true,    "instance_id": "string",    "invitation_expiry_days": 0,    "object": "string",    "roles_on_join": [      "string"    ],    "updated_at": "string"  }}

Get organization

GET
/organizations/{organization}

Retrieve one organization by its id or its slug. A value in the id form (org_ and 26 base32 characters) is read as the id; anything else as the slug, which needs sys:org:read to resolve. Every route under /organizations/{organization} takes either.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Response Body

OK

application/json
  1. response
created_at?string
external_id?string
id?string
instance_id?string
member_count?integer
member_limit?integer

MemberLimit is the limit in force: the lowest of member_limits, or null when none is set (pontive-spec 09, Member limits).

member_limits?

MemberLimits are the member limits set on the organization, by source.

metadata?
name?string
object?string
slug?string
status?string

Status is the organization's status. Suspending it also suspends access to every resource parented under it.

Value in"active""suspended"
suspended_at?string
suspension_reasons?array<string>

SuspensionReasons is why the organization is suspended: admin, billing, closed, or several. It is suspended while this is not empty, and the list is empty while it is active (pontive-spec 09, Suspension reasons).

updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/string'
Example Response
{  "created_at": "string",  "external_id": "string",  "id": "string",  "instance_id": "string",  "member_count": 0,  "member_limit": 0,  "member_limits": {    "billing": 0,    "manual": 0  },  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "slug": "string",  "status": "active",  "suspended_at": "string",  "suspension_reasons": [    "string"  ],  "updated_at": "string"}

Update organization

PATCH
/organizations/{organization}

Partially update an organization. Only provided fields are changed. The slug is immutable after creation and cannot be updated.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Request Body

Fields to update

application/json
  1. body

Fields to update

external_id?string
metadata?
name?string

Response Body

OK

application/json
  1. response
created_at?string
external_id?string
id?string
instance_id?string
member_count?integer
member_limit?integer

MemberLimit is the limit in force: the lowest of member_limits, or null when none is set (pontive-spec 09, Member limits).

member_limits?

MemberLimits are the member limits set on the organization, by source.

metadata?
name?string
object?string
slug?string
status?string

Status is the organization's status. Suspending it also suspends access to every resource parented under it.

Value in"active""suspended"
suspended_at?string
suspension_reasons?array<string>

SuspensionReasons is why the organization is suspended: admin, billing, closed, or several. It is suspended while this is not empty, and the list is empty while it is active (pontive-spec 09, Suspension reasons).

updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/organizations/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "external_id": "string",  "id": "string",  "instance_id": "string",  "member_count": 0,  "member_limit": 0,  "member_limits": {    "billing": 0,    "manual": 0  },  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "slug": "string",  "status": "active",  "suspended_at": "string",  "suspension_reasons": [    "string"  ],  "updated_at": "string"}

Delete organization

DELETE
/organizations/{organization}

Permanently delete an organization together with its memberships, invitations, owned service accounts, instance-scoped roles and organization-scoped credentials (revoked), and the resources that belong to it. There is no restore.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/organizations/string'
Example Response
Empty

List assignable roles

GET
/organizations/{organization}/assignable-roles

List the roles a member of the organization can be given, each marked with whether the caller may grant or remove it on a member other than themselves (assignable_by_caller) and whether doing so hands the organization over, which needs sys:org:transfer (requires_transfer). Decided on sys:member:read on the organization, so an organization's own administrators can read it; the roles of the org resource type, and the organization's own. Not paginated.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Query Parameters

page?integer

Page number

limit?integer

Items per page, 1 to 100

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/assignable-roles'
Example Response
{  "data": [    {      "assignable_by_caller": true,      "description": "string",      "key": "string",      "name": "string",      "object": "string",      "organization_scoped": true,      "requires_transfer": true    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

List invitations

GET
/organizations/{organization}/invitations

Get a list of invitations for an organization with pagination and filtering

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Query Parameters

roles?array<string>

Filter by invitation roles

invitee_emails?array<string>

Filter by invitees email

invited_by?string

Filter by inviter user ID

resource_id?string

Only the invitations to this resource

page?integer

Page number

limit?integer

Items per page

search?string

Search by invitation email or invitee email

sort?string

Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, expires_at, last_sent_at, status. Default: -created_at

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/invitations'
Example Response
{  "data": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "invited_by": {        "id": "string",        "name": "string"      },      "invitee_email": "string",      "last_sent_at": "string",      "message": "string",      "object": "string",      "organization_id": "string",      "resend_count": 0,      "resource_id": "string",      "resource_roles": [        {          "key": "string",          "name": "string"        }      ],      "resource_type": "string",      "roles": [        {          "key": "string",          "name": "string"        }      ],      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Invite members

POST
/organizations/{organization}/invitations

Invite multiple members to an organization, or to one of its resources (resource_id with resource_roles). Invitees to a resource who are not organization members join the organization too. Addresses are matched case-insensitively. An address that is already a member of the target is skipped and listed in skipped rather than failing the request. An address that already holds a pending, unexpired invitation to the target has that invitation reissued with this request's roles, a fresh expiry and a new link, instead of a second one sent. Inviting someone as the organization's owner needs sys:org:transfer, refused 403 owner_transfer_required. 200 when every address was skipped, 201 when any invitation was sent.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Request Body

Invite members payload

application/json
  1. body

Invite members payload

app_id?string

AppID is the application this invitation is for: whose sign-in domain the link points at, whose branding and flows the invitee sees while accepting, and whose initiate_login_uri they land on once they have. It must admit the organization. Optional when exactly one active app of the instance admits it; required when several do.

emails*array<string>
message?string
resource_id?string

ResourceID is a resource of the organization the invitees also join, with ResourceRoles (roles of the resource's type, at least one). An organization member can be invited to one of its resources.

resource_roles?array<string>
roles?array<string>

Roles are the organization roles. Optional: with none, the invitee joins the organization with the membership settings' roles_on_join (none by default, a membership holding no role).

Response Body

OK

application/json
  1. response
invitations?array<>

Invitations are the invitations sent: new ones, and live ones an address already held to the same target, reissued with this request's roles and a new link (resend_count > 0) — the earlier link stops working.

object?string
organization_id?string

OrganizationID is the organization invited into; absent for an invitation to the instance.

skipped?array<>

Skipped are the addresses that got no invitation, and why. Skipping is not an error: a request whose every address was skipped still succeeds.

Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/invitations' \  -H 'Content-Type: application/json' \  -d '{  "emails": [    "string"  ]}'
Example Response
{  "invitations": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "invited_by": {        "id": "string",        "name": "string"      },      "invitee_email": "string",      "last_sent_at": "string",      "message": "string",      "object": "string",      "organization_id": "string",      "resend_count": 0,      "resource_id": "string",      "resource_roles": [        {          "key": "string",          "name": "string"        }      ],      "resource_type": "string",      "roles": [        {          "key": "string",          "name": "string"        }      ],      "updated_at": "string"    }  ],  "object": "string",  "organization_id": "string",  "skipped": [    {      "email": "string",      "reason": "already_member"    }  ]}

Get invitation

GET
/organizations/{organization}/invitations/{invitation_id}

Get invitation by ID

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

invitation_id*string

Invitation ID

organization*string

The organization's id, or its slug

Response Body

OK

application/json
  1. response
created_at?string
expires_at?string
id?string
invited_by?

InvitedBy is the user of the instance who sent it. Absent when a service account or a Pontive operator (from the dashboard) sent it.

invitee_email?string
last_sent_at?string
message?string
object?string
organization_id?string

OrganizationID is the organization the invitee joins; absent for an invitation to the instance alone.

resend_count?integer
resource_id?string

ResourceID is the resource of the organization the invitation also grants membership of, with ResourceRoles; absent for an invitation to the organization alone.

resource_roles?array<>
resource_type?string
roles?array<>
updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/invitations/string'
Example Response
{  "created_at": "string",  "expires_at": "string",  "id": "string",  "invited_by": {    "id": "string",    "name": "string"  },  "invitee_email": "string",  "last_sent_at": "string",  "message": "string",  "object": "string",  "organization_id": "string",  "resend_count": 0,  "resource_id": "string",  "resource_roles": [    {      "key": "string",      "name": "string"    }  ],  "resource_type": "string",  "roles": [    {      "key": "string",      "name": "string"    }  ],  "updated_at": "string"}

Delete invitation

DELETE
/organizations/{organization}/invitations/{invitation_id}

Withdraw an invitation: it is deleted, and its link stops working. An invitation exists only while it is open — accepting one deletes it too, and an expired one is purged.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

invitation_id*string

Invitation ID

organization*string

The organization's id, or its slug

Query Parameters

notify_invitee?boolean

Email the invitee that the invitation was withdrawn

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/organizations/string/invitations/string'
Example Response
Empty

Resend invitation

POST
/organizations/{organization}/invitations/{invitation_id}/resend

Resend an invitation

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

invitation_id*string

Invitation ID

organization*string

The organization's id, or its slug

Request Body

Resend Invitation payload

application/json
  1. body

Resend Invitation payload

message?string
new_expire_at?string

Response Body

OK

application/json
  1. response
created_at?string
expires_at?string
id?string
invited_by?

InvitedBy is the user of the instance who sent it. Absent when a service account or a Pontive operator (from the dashboard) sent it.

invitee_email?string
last_sent_at?string
message?string
object?string
organization_id?string

OrganizationID is the organization the invitee joins; absent for an invitation to the instance alone.

resend_count?integer
resource_id?string

ResourceID is the resource of the organization the invitation also grants membership of, with ResourceRoles; absent for an invitation to the organization alone.

resource_roles?array<>
resource_type?string
roles?array<>
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/invitations/string/resend' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "expires_at": "string",  "id": "string",  "invited_by": {    "id": "string",    "name": "string"  },  "invitee_email": "string",  "last_sent_at": "string",  "message": "string",  "object": "string",  "organization_id": "string",  "resend_count": 0,  "resource_id": "string",  "resource_roles": [    {      "key": "string",      "name": "string"    }  ],  "resource_type": "string",  "roles": [    {      "key": "string",      "name": "string"    }  ],  "updated_at": "string"}

Remove a member limit

DELETE
/organizations/{organization}/member-limits/{source}

Remove one source's member limit from an organization. The lowest limit left, if any, is then in force. Removing a limit that is not set changes nothing and succeeds. While the instance's billing capability is on, the billing limit is managed by billing: removing it here is refused with 403, an instance admin included. With the capability off, an instance admin may remove it. If the capability cannot be read, a billing write is refused with 503.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

source*string

Who set the limit

Value in"manual""billing"

Response Body

OK

application/json
  1. response
created_at?string
external_id?string
id?string
instance_id?string
member_count?integer
member_limit?integer

MemberLimit is the limit in force: the lowest of member_limits, or null when none is set (pontive-spec 09, Member limits).

member_limits?

MemberLimits are the member limits set on the organization, by source.

metadata?
name?string
object?string
slug?string
status?string

Status is the organization's status. Suspending it also suspends access to every resource parented under it.

Value in"active""suspended"
suspended_at?string
suspension_reasons?array<string>

SuspensionReasons is why the organization is suspended: admin, billing, closed, or several. It is suspended while this is not empty, and the list is empty while it is active (pontive-spec 09, Suspension reasons).

updated_at?string
Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/organizations/string/member-limits/manual'
Example Response
{  "created_at": "string",  "external_id": "string",  "id": "string",  "instance_id": "string",  "member_count": 0,  "member_limit": 0,  "member_limits": {    "billing": 0,    "manual": 0  },  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "slug": "string",  "status": "active",  "suspended_at": "string",  "suspension_reasons": [    "string"  ],  "updated_at": "string"}

Set a member limit

PUT
/organizations/{organization}/member-limits/{source}

Set one source's member limit on an organization, 0 or more. source is manual (an instance admin or the client's backend) or billing (Pontive billing). While the instance's billing capability is on, the billing limit is managed by billing: setting it here is refused with 403, an instance admin included, and a manual limit may still be set, since the lowest limit wins. With the capability off, an instance admin may set it. If the capability cannot be read, a billing write is refused with 503. The lowest limit set is in force, as member_limit. A write that would add a member past it is refused with 409 seat_limit_reached. Lowering a limit below the current number of members blocks new members and removes no one. Pontive billing does not call this route: it writes its limit to identity-svc over gRPC with its system credential.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

source*string

Who sets the limit

Value in"manual""billing"

Request Body

The limit

application/json
  1. body

The limit

limit*integer

Limit is the most members the organization may have, 0 or more.

Range0 <= value

Response Body

OK

application/json
  1. response
created_at?string
external_id?string
id?string
instance_id?string
member_count?integer
member_limit?integer

MemberLimit is the limit in force: the lowest of member_limits, or null when none is set (pontive-spec 09, Member limits).

member_limits?

MemberLimits are the member limits set on the organization, by source.

metadata?
name?string
object?string
slug?string
status?string

Status is the organization's status. Suspending it also suspends access to every resource parented under it.

Value in"active""suspended"
suspended_at?string
suspension_reasons?array<string>

SuspensionReasons is why the organization is suspended: admin, billing, closed, or several. It is suspended while this is not empty, and the list is empty while it is active (pontive-spec 09, Suspension reasons).

updated_at?string
Example Request
curl -X PUT 'https://api.us.pontive.com/v1/organizations/string/member-limits/manual' \  -H 'Content-Type: application/json' \  -d '{  "limit": 0}'
Example Response
{  "created_at": "string",  "external_id": "string",  "id": "string",  "instance_id": "string",  "member_count": 0,  "member_limit": 0,  "member_limits": {    "billing": 0,    "manual": 0  },  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "slug": "string",  "status": "active",  "suspended_at": "string",  "suspension_reasons": [    "string"  ],  "updated_at": "string"}
GET
/organizations/{organization}/members

List members of an organization with pagination and filtering

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Query Parameters

user_ids?array<string>

Filter by user IDs

emails?array<string>

Filter by emails

roles?array<string>

Filter by roles

search?string

search query

page?integer

Page number

limit?integer

Items per page

sort?string

Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, joined_at, email. Default: -created_at

Response Body

OK

application/json
  1. response
data?array<>

List of members

object?string

The object type

pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/members'
Example Response
{  "data": [    {      "created_at": "string",      "instance_id": "string",      "joined_at": "string",      "last_active_at": "string",      "object": "string",      "resource_id": "string",      "resource_name": "string",      "resource_type": "string",      "roles": [        {          "key": "string",          "name": "string"        }      ],      "updated_at": "string",      "user": {        "email": "string",        "email_verified": true,        "family_name": "string",        "given_name": "string",        "id": "string",        "name": "string",        "picture": "string",        "status": "string",        "username": "string"      }    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/organizations/{organization}/members

Add a user as a member of an organization. Adding them as owner needs sys:org:transfer, refused 403 owner_transfer_required. Adding one past the organization's member limit is refused 409 seat_limit_reached, and nothing is written.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Request Body

Add member payload

application/json
  1. body

Add member payload

roles*array<string>
user_id*string

Response Body

Created

application/json
  1. response
created_at?string
instance_id?string
joined_at?string
last_active_at?string
object?string
resource_id?string
resource_name?string
resource_type?string
roles?array<>
updated_at?string
user?
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/members' \  -H 'Content-Type: application/json' \  -d '{  "roles": [    "string"  ],  "user_id": "string"}'
Example Response
{  "created_at": "string",  "instance_id": "string",  "joined_at": "string",  "last_active_at": "string",  "object": "string",  "resource_id": "string",  "resource_name": "string",  "resource_type": "string",  "roles": [    {      "key": "string",      "name": "string"    }  ],  "updated_at": "string",  "user": {    "email": "string",    "email_verified": true,    "family_name": "string",    "given_name": "string",    "id": "string",    "name": "string",    "picture": "string",    "status": "string",    "username": "string"  }}

Get organization member

GET
/organizations/{organization}/members/{user_id}

Get an organization member by user ID

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

user_id*string

User ID

Response Body

OK

application/json
  1. response
created_at?string
instance_id?string
joined_at?string
last_active_at?string
object?string
resource_id?string
resource_name?string
resource_type?string
roles?array<>
updated_at?string
user?
Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/members/string'
Example Response
{  "created_at": "string",  "instance_id": "string",  "joined_at": "string",  "last_active_at": "string",  "object": "string",  "resource_id": "string",  "resource_name": "string",  "resource_type": "string",  "roles": [    {      "key": "string",      "name": "string"    }  ],  "updated_at": "string",  "user": {    "email": "string",    "email_verified": true,    "family_name": "string",    "given_name": "string",    "id": "string",    "name": "string",    "picture": "string",    "status": "string",    "username": "string"  }}
PATCH
/organizations/{organization}/members/{user_id}

Replace an organization member's roles. Granting or removing owner needs sys:org:transfer, refused 403 owner_transfer_required. A caller from the instance itself (not the Pontive console) may add or remove only roles whose permissions they hold on the organization, or hold sys:root:grant, refused 403 role_ceiling, and cannot change their own roles, refused 403 self_role_change. Roles that changed while the change was being decided are refused 409 member_roles_changed: read the member again and retry.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

user_id*string

User ID

Request Body

Update member roles payload

application/json
  1. body

Update member roles payload

roles?array<string>

Response Body

OK

application/json
  1. response
created_at?string
instance_id?string
joined_at?string
last_active_at?string
object?string
resource_id?string
resource_name?string
resource_type?string
roles?array<>
updated_at?string
user?
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/organizations/string/members/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "instance_id": "string",  "joined_at": "string",  "last_active_at": "string",  "object": "string",  "resource_id": "string",  "resource_name": "string",  "resource_type": "string",  "roles": [    {      "key": "string",      "name": "string"    }  ],  "updated_at": "string",  "user": {    "email": "string",    "email_verified": true,    "family_name": "string",    "given_name": "string",    "id": "string",    "name": "string",    "picture": "string",    "status": "string",    "username": "string"  }}
DELETE
/organizations/{organization}/members/{user_id}

Remove a user from an organization, which removes every role they hold there. Removing oneself is leaving: when the organization settings do not let members leave (allow_members_to_leave off), it is refused 403 leave_disabled, as leaving it with POST /me/memberships/{container_id}/leave is, before any rule below; removing someone else is not affected. Removing a member who holds owner needs sys:org:transfer, removing oneself included, refused 403 owner_transfer_required. A caller from the instance itself (not the Pontive console) may remove only a member whose roles' permissions they hold on the organization, or hold sys:root:grant, refused 403 role_ceiling. Roles that changed while the removal was being decided are refused 409 member_roles_changed: read the member again and retry.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

user_id*string

User ID

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/organizations/string/members/string'
Example Response
Empty

Reactivate organization

POST
/organizations/{organization}/resume

Remove one suspension reason from an organization, and no other. The reason is admin when the body is absent or names none. The organization is active again, with access to the resources parented under it, once it holds no reason; while it holds another it stays suspended. Removing a reason it does not hold changes nothing and succeeds. A reactivate that names no reason removes admin only, never billing. While the instance's billing capability is on, the billing reason is managed by billing: adding or removing it here is refused with 403, an instance admin included, so only billing lifts a billing suspension. With the capability off, an instance admin may add or remove it. If the capability cannot be read, a billing write is refused with 503.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Request Body

The reason to remove; admin when omitted

application/json
  1. body

The reason to remove; admin when omitted

reason?string

Reason is the suspension reason to remove: admin (the default), billing or closed. The organization stays suspended while it holds another. While the instance's billing capability is on, only billing removes billing.

Value in"admin""billing""closed"

Response Body

OK

application/json
  1. response
created_at?string
external_id?string
id?string
instance_id?string
member_count?integer
member_limit?integer

MemberLimit is the limit in force: the lowest of member_limits, or null when none is set (pontive-spec 09, Member limits).

member_limits?

MemberLimits are the member limits set on the organization, by source.

metadata?
name?string
object?string
slug?string
status?string

Status is the organization's status. Suspending it also suspends access to every resource parented under it.

Value in"active""suspended"
suspended_at?string
suspension_reasons?array<string>

SuspensionReasons is why the organization is suspended: admin, billing, closed, or several. It is suspended while this is not empty, and the list is empty while it is active (pontive-spec 09, Suspension reasons).

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/resume' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "external_id": "string",  "id": "string",  "instance_id": "string",  "member_count": 0,  "member_limit": 0,  "member_limits": {    "billing": 0,    "manual": 0  },  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "slug": "string",  "status": "active",  "suspended_at": "string",  "suspension_reasons": [    "string"  ],  "updated_at": "string"}

Suspend organization

POST
/organizations/{organization}/suspend

Add a suspension reason to an organization. It is suspended while it holds any reason, and access to it and to every resource parented under it is denied. The reason is admin when the body is absent or names none. billing is Pontive billing's own reason. closed says the organization's owners closed their account and the client may reopen it: Pontive billing keeps its owner able to pay its invoices and manage its payment method while it is held. While the instance's billing capability is on, the billing reason is managed by billing: adding or removing it here is refused with 403, an instance admin included, so only billing lifts a billing suspension. With the capability off, an instance admin may add or remove it. If the capability cannot be read, a billing write is refused with 503. Adding a reason the organization already holds changes nothing and succeeds. Pontive billing does not call this route: it writes the billing reason to identity-svc over gRPC with its system credential.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Request Body

The reason to add; admin when omitted

application/json
  1. body

The reason to add; admin when omitted

reason?string

Reason is the suspension reason to add: admin (the default), billing or closed. billing is Pontive billing's own: while the instance's billing capability is on, only billing adds it; with it off, an instance admin may too. closed says the organization's owners closed their account and the client may reopen it: Pontive billing keeps its owner able to pay its invoices and manage its payment method meanwhile.

Value in"admin""billing""closed"

Response Body

OK

application/json
  1. response
created_at?string
external_id?string
id?string
instance_id?string
member_count?integer
member_limit?integer

MemberLimit is the limit in force: the lowest of member_limits, or null when none is set (pontive-spec 09, Member limits).

member_limits?

MemberLimits are the member limits set on the organization, by source.

metadata?
name?string
object?string
slug?string
status?string

Status is the organization's status. Suspending it also suspends access to every resource parented under it.

Value in"active""suspended"
suspended_at?string
suspension_reasons?array<string>

SuspensionReasons is why the organization is suspended: admin, billing, closed, or several. It is suspended while this is not empty, and the list is empty while it is active (pontive-spec 09, Suspension reasons).

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/suspend' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "external_id": "string",  "id": "string",  "instance_id": "string",  "member_count": 0,  "member_limit": 0,  "member_limits": {    "billing": 0,    "manual": 0  },  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "slug": "string",  "status": "active",  "suspended_at": "string",  "suspension_reasons": [    "string"  ],  "updated_at": "string"}
POST
/organizations/{organization}/transfer-ownership

Transfer ownership of an organization to another user.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Request Body

New owner

application/json
  1. body

New owner

new_owner_id?string
previous_owner_id?string

The member giving owner up. Defaults to the caller when the caller is a user; required when a service calls on someone's behalf.

retain_as?array<string>

The roles the previous owner keeps; none when omitted.

Response Body

OK

application/json
  1. response
created_at?string
external_id?string
id?string
instance_id?string
member_count?integer
member_limit?integer

MemberLimit is the limit in force: the lowest of member_limits, or null when none is set (pontive-spec 09, Member limits).

member_limits?

MemberLimits are the member limits set on the organization, by source.

metadata?
name?string
object?string
slug?string
status?string

Status is the organization's status. Suspending it also suspends access to every resource parented under it.

Value in"active""suspended"
suspended_at?string
suspension_reasons?array<string>

SuspensionReasons is why the organization is suspended: admin, billing, closed, or several. It is suspended while this is not empty, and the list is empty while it is active (pontive-spec 09, Suspension reasons).

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/transfer-ownership' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "external_id": "string",  "id": "string",  "instance_id": "string",  "member_count": 0,  "member_limit": 0,  "member_limits": {    "billing": 0,    "manual": 0  },  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "slug": "string",  "status": "active",  "suspended_at": "string",  "suspension_reasons": [    "string"  ],  "updated_at": "string"}