Organizations
Retrieve a paginated list of organizations. Filter by status, external_id, and search query.
x-pontive-instance-id<token>Instance ID for the request
status?stringFilter by the organization's own status (active, suspended)
page?integerPage number
limit?integerItems per page
sort?stringSort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, slug, status. Default: -created_at
search?stringSearch query
external_id?stringExact match on the id the caller gave the organization
slug?stringExact match on the slug: finds an organization by it (D17)
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/organizations'{ "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 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.
x-pontive-instance-id<token>Instance ID for the request
Organization creation details
application/json- body
Organization creation details
external_id?stringmetadata?name*stringowners?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?stringSlug is set once, here, and is immutable afterwards. Generated from the name when omitted. Unique within the instance; released on delete.
Created
application/json- response
created_at?stringexternal_id?stringid?stringinstance_id?stringmember_count?integermember_limit?integerMemberLimit 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?stringobject?stringslug?stringstatus?stringStatus is the organization's status. Suspending it also suspends access to every resource parented under it.
"active""suspended"suspended_at?stringsuspension_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?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
external_id*stringThe id the caller gave the organization
OK
application/json- response
created_at?stringexternal_id?stringid?stringinstance_id?stringmember_count?integermember_limit?integerMemberLimit 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?stringobject?stringslug?stringstatus?stringStatus is the organization's status. Suspending it also suspends access to every resource parented under it.
"active""suspended"suspended_at?stringsuspension_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?stringcurl -X GET 'https://api.us.pontive.com/v1/organizations/external_id/string'{ "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"}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
x-pontive-instance-id<token>Instance ID for the request
OK
application/json- response
settings?curl -X GET 'https://api.us.pontive.com/v1/organizations/settings'{ "settings": { "allow_members_to_leave": true, "instance_id": "string", "invitation_expiry_days": 0, "object": "string", "roles_on_join": [ "string" ], "updated_at": "string" }}Change the instance-wide organization policy. Omitted fields are left as they are
x-pontive-instance-id<token>Instance ID for the request
If-Match?stringThe ETag the document was read with: a stale one is refused 412 precondition_failed (D42)
Fields to change
application/json- body
Fields to change
allow_members_to_leave?booleaninvitation_expiry_days?integer1 <= value <= 365roles_on_join?array<string>RolesOnJoin replaces the roles given on joining; omitted leaves them.
OK
application/json- response
settings?curl -X PATCH 'https://api.us.pontive.com/v1/organizations/settings' \ -H 'Content-Type: application/json' \ -d '{}'{ "settings": { "allow_members_to_leave": true, "instance_id": "string", "invitation_expiry_days": 0, "object": "string", "roles_on_join": [ "string" ], "updated_at": "string" }}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
OK
application/json- response
created_at?stringexternal_id?stringid?stringinstance_id?stringmember_count?integermember_limit?integerMemberLimit 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?stringobject?stringslug?stringstatus?stringStatus is the organization's status. Suspending it also suspends access to every resource parented under it.
"active""suspended"suspended_at?stringsuspension_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?stringcurl -X GET 'https://api.us.pontive.com/v1/organizations/string'{ "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"}Partially update an organization. Only provided fields are changed. The slug is immutable after creation and cannot be updated.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
Fields to update
application/json- body
Fields to update
external_id?stringmetadata?name?stringOK
application/json- response
created_at?stringexternal_id?stringid?stringinstance_id?stringmember_count?integermember_limit?integerMemberLimit 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?stringobject?stringslug?stringstatus?stringStatus is the organization's status. Suspending it also suspends access to every resource parented under it.
"active""suspended"suspended_at?stringsuspension_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?stringcurl -X PATCH 'https://api.us.pontive.com/v1/organizations/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/organizations/string'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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
page?integerPage number
limit?integerItems per page, 1 to 100
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/assignable-roles'{ "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 }}Get a list of invitations for an organization with pagination and filtering
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
roles?array<string>Filter by invitation roles
invitee_emails?array<string>Filter by invitees email
invited_by?stringFilter by inviter user ID
resource_id?stringOnly the invitations to this resource
page?integerPage number
limit?integerItems per page
search?stringSearch by invitation email or invitee email
sort?stringSort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, expires_at, last_sent_at, status. Default: -created_at
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/invitations'{ "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 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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
Invite members payload
application/json- body
Invite members payload
app_id?stringAppID 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?stringresource_id?stringResourceID 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).
OK
application/json- 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?stringorganization_id?stringOrganizationID 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.
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/invitations' \ -H 'Content-Type: application/json' \ -d '{ "emails": [ "string" ]}'{ "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 by ID
x-pontive-instance-id<token>Instance ID for the request
invitation_id*stringInvitation ID
organization*stringThe organization's id, or its slug
OK
application/json- response
created_at?stringexpires_at?stringid?stringinvited_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?stringlast_sent_at?stringmessage?stringobject?stringorganization_id?stringOrganizationID is the organization the invitee joins; absent for an invitation to the instance alone.
resend_count?integerresource_id?stringResourceID 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?stringroles?array<>updated_at?stringcurl -X GET 'https://api.us.pontive.com/v1/organizations/string/invitations/string'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
invitation_id*stringInvitation ID
organization*stringThe organization's id, or its slug
notify_invitee?booleanEmail the invitee that the invitation was withdrawn
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/organizations/string/invitations/string'Resend an invitation
x-pontive-instance-id<token>Instance ID for the request
invitation_id*stringInvitation ID
organization*stringThe organization's id, or its slug
Resend Invitation payload
application/json- body
Resend Invitation payload
message?stringnew_expire_at?stringOK
application/json- response
created_at?stringexpires_at?stringid?stringinvited_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?stringlast_sent_at?stringmessage?stringobject?stringorganization_id?stringOrganizationID is the organization the invitee joins; absent for an invitation to the instance alone.
resend_count?integerresource_id?stringResourceID 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?stringroles?array<>updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations/string/invitations/string/resend' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
source*stringWho set the limit
"manual""billing"OK
application/json- response
created_at?stringexternal_id?stringid?stringinstance_id?stringmember_count?integermember_limit?integerMemberLimit 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?stringobject?stringslug?stringstatus?stringStatus is the organization's status. Suspending it also suspends access to every resource parented under it.
"active""suspended"suspended_at?stringsuspension_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?stringcurl -X DELETE 'https://api.us.pontive.com/v1/organizations/string/member-limits/manual'{ "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 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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
source*stringWho sets the limit
"manual""billing"The limit
application/json- body
The limit
limit*integerLimit is the most members the organization may have, 0 or more.
0 <= valueOK
application/json- response
created_at?stringexternal_id?stringid?stringinstance_id?stringmember_count?integermember_limit?integerMemberLimit 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?stringobject?stringslug?stringstatus?stringStatus is the organization's status. Suspending it also suspends access to every resource parented under it.
"active""suspended"suspended_at?stringsuspension_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?stringcurl -X PUT 'https://api.us.pontive.com/v1/organizations/string/member-limits/manual' \ -H 'Content-Type: application/json' \ -d '{ "limit": 0}'{ "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"}List members of an organization with pagination and filtering
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
user_ids?array<string>Filter by user IDs
emails?array<string>Filter by emails
roles?array<string>Filter by roles
search?stringsearch query
page?integerPage number
limit?integerItems per page
sort?stringSort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, joined_at, email. Default: -created_at
OK
application/json- response
data?array<>List of members
object?stringThe object type
pagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/members'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
Add member payload
application/json- body
Add member payload
roles*array<string>user_id*stringCreated
application/json- response
created_at?stringinstance_id?stringjoined_at?stringlast_active_at?stringobject?stringresource_id?stringresource_name?stringresource_type?stringroles?array<>updated_at?stringuser?curl -X POST 'https://api.us.pontive.com/v1/organizations/string/members' \ -H 'Content-Type: application/json' \ -d '{ "roles": [ "string" ], "user_id": "string"}'{ "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 an organization member by user ID
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
user_id*stringUser ID
OK
application/json- response
created_at?stringinstance_id?stringjoined_at?stringlast_active_at?stringobject?stringresource_id?stringresource_name?stringresource_type?stringroles?array<>updated_at?stringuser?curl -X GET 'https://api.us.pontive.com/v1/organizations/string/members/string'{ "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" }}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
user_id*stringUser ID
Update member roles payload
application/json- body
Update member roles payload
roles?array<string>OK
application/json- response
created_at?stringinstance_id?stringjoined_at?stringlast_active_at?stringobject?stringresource_id?stringresource_name?stringresource_type?stringroles?array<>updated_at?stringuser?curl -X PATCH 'https://api.us.pontive.com/v1/organizations/string/members/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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" }}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
user_id*stringUser ID
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/organizations/string/members/string'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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
The reason to remove; admin when omitted
application/json- body
The reason to remove; admin when omitted
reason?stringReason 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.
"admin""billing""closed"OK
application/json- response
created_at?stringexternal_id?stringid?stringinstance_id?stringmember_count?integermember_limit?integerMemberLimit 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?stringobject?stringslug?stringstatus?stringStatus is the organization's status. Suspending it also suspends access to every resource parented under it.
"active""suspended"suspended_at?stringsuspension_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?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations/string/resume' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
The reason to add; admin when omitted
application/json- body
The reason to add; admin when omitted
reason?stringReason 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.
"admin""billing""closed"OK
application/json- response
created_at?stringexternal_id?stringid?stringinstance_id?stringmember_count?integermember_limit?integerMemberLimit 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?stringobject?stringslug?stringstatus?stringStatus is the organization's status. Suspending it also suspends access to every resource parented under it.
"active""suspended"suspended_at?stringsuspension_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?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations/string/suspend' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}Transfer ownership of an organization to another user.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
New owner
application/json- body
New owner
new_owner_id?stringprevious_owner_id?stringThe 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.
OK
application/json- response
created_at?stringexternal_id?stringid?stringinstance_id?stringmember_count?integermember_limit?integerMemberLimit 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?stringobject?stringslug?stringstatus?stringStatus is the organization's status. Suspending it also suspends access to every resource parented under it.
"active""suspended"suspended_at?stringsuspension_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?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations/string/transfer-ownership' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}