Skip to Content
Docs
API referenceManagement API

Users

GET
/root/invitations

The open invitations to the instance alone (no organization). An expired invitation is not listed.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

invitee_emails?array<string>

Filter by invitees email

invited_by?string

Filter by inviter user ID

page?integer

Page number

limit?integer

Items per page

search?string

Search by invitee email

sort?string

Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, expires_at, last_sent_at. 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/root/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  }}
POST
/root/invitations

Invite people to the instance alone, with no organization: each gets an email whose link lets them create their own account in the app (choosing their own password or sign-in method), and accepting grants nothing else. For people who belong to no organization — in a b2c instance, everyone; in a b2b one, for example the client's own staff. An address that already has an account is skipped (already_registered); one with a pending invitation to the instance has it reissued with a new link. The app must have org_access all. 200 when every address was skipped, 201 when any invitation was sent.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Invite payload

application/json
  1. body

Invite payload

app_id?string

AppID is the application the invitee creates their account in: whose sign-in domain the link points at, whose branding and flows they see, and whose initiate_login_uri they land on. Its org_access must be all, since the invitee joins no organization. Optional when exactly one active app of the instance has it; required when several do.

emails*array<string>
message?string

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/root/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
/root/invitations/{invitation_id}

One open invitation to the instance alone (no organization). An organization's invitation is not found here.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

invitation_id*string

Invitation ID

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/root/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
/root/invitations/{invitation_id}

Withdraw an invitation to the instance: it is deleted, and its link stops working.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

invitation_id*string

Invitation ID

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/root/invitations/string'
Example Response
Empty
POST
/root/invitations/{invitation_id}/resend

Send an invitation to the instance again, with a new link; the earlier link stops working.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

invitation_id*string

Invitation ID

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/root/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"}

List users

GET
/users

Get a list of users with pagination and filtering

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

status?string

Filter by status

email?string

Filter by exact email

search?string

Matches email, name or username, case-insensitively, anywhere in the value

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, email, name, username, status. Default: -created_at

exclude_organization_id?string

Exclude users who are members of this organization (prefixed org_… id)

exclude_any_organization?boolean

Exclude users who are members of any organization (only unaffiliated users)

username?string

Exact match on the username: finds a user by it (D17)

external_id?string

Exact match on the caller's own id for the user: finds a user by it (D17)

migration_source_id?string

Users with a legacy identity in this migration source (msrc_), pontive-spec 46

legacy_subject?string

The user whose id in the system they were imported from is this (exact), in migration_source_id when set

password_status?string

Users whose password is none, active, or imported and not yet replaced at a first sign-in

Value in"none""active""imported"

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/users'
Example Response
{  "data": [    {      "address": {        "country": "string",        "formatted": "string",        "locality": "string",        "postal_code": "string",        "region": "string",        "street_address": "string"      },      "birthdate": "string",      "created_at": "string",      "email": "string",      "email_verified": true,      "external_id": "string",      "family_name": "string",      "gender": "string",      "given_name": "string",      "id": "string",      "instance_id": "string",      "legacy_identities": [        {          "created_at": "string",          "migration_source_id": "string",          "subject": "string"        }      ],      "locale": "string",      "metadata": {        "property1": "string",        "property2": "string"      },      "middle_name": "string",      "name": "string",      "nickname": "string",      "object": "string",      "password_change_required": true,      "password_status": "none",      "phone": "string",      "phone_verified": true,      "picture": "string",      "private_metadata": {        "property1": "string",        "property2": "string"      },      "profile": "string",      "status": "active",      "updated_at": "string",      "username": "string",      "website": "string",      "zoneinfo": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Create user

POST
/users

Create a new user

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Create User Request

application/json
  1. body

Create User Request

address?
birthdate?string
email*string
email_verified?boolean
external_id?string

ExternalID is your own id for this user, unique per project environment.

family_name?string
gender?string
given_name?string
locale?string
metadata?
middle_name?string
name?string
nickname?string
password?string
password_change_required?boolean
phone?string
phone_verified?boolean
picture?string
private_metadata?
profile?string
readonly_metadata?
username?string
website?string
zoneinfo?string

Response Body

Created

application/json
  1. response
address?
birthdate?string
created_at?string
email?string
email_verified?boolean
external_id?string

ExternalID is your own id for this user, unique per project environment; the access-token claims template reads it as user.external_id.

family_name?string
gender?string
given_name?string
id?string
instance_id?string
legacy_identities?array<>

LegacyIdentities are the user's ids in the systems they were imported from. Read-only.

locale?string
metadata?
middle_name?string
name?string
nickname?string
object?string
password_change_required?boolean
password_status?string

PasswordStatus is none, active (a password set in Pontive) or imported (a hash imported from another system, replaced at the user's first sign-in; pontive-spec 46 §4.6). Read-only.

Value in"none""active""imported"
phone?string
phone_verified?boolean
picture?string
private_metadata?
profile?string
status?string
Value in"active""deleted""deactivated"
updated_at?string
username?string
website?string
zoneinfo?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/users' \  -H 'Content-Type: application/json' \  -d '{  "email": "string"}'
Example Response
{  "address": {    "country": "string",    "formatted": "string",    "locality": "string",    "postal_code": "string",    "region": "string",    "street_address": "string"  },  "birthdate": "string",  "created_at": "string",  "email": "string",  "email_verified": true,  "external_id": "string",  "family_name": "string",  "gender": "string",  "given_name": "string",  "id": "string",  "instance_id": "string",  "legacy_identities": [    {      "created_at": "string",      "migration_source_id": "string",      "subject": "string"    }  ],  "locale": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "middle_name": "string",  "name": "string",  "nickname": "string",  "object": "string",  "password_change_required": true,  "password_status": "none",  "phone": "string",  "phone_verified": true,  "picture": "string",  "private_metadata": {    "property1": "string",    "property2": "string"  },  "profile": "string",  "status": "active",  "updated_at": "string",  "username": "string",  "website": "string",  "zoneinfo": "string"}

Get user by external id

GET
/users/external_id/{external_id}

Retrieve the user the caller gave this external id: an exact match on the instance-unique external_id. Answers the user 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 user

Response Body

OK

application/json
  1. response
address?
birthdate?string
created_at?string
email?string
email_verified?boolean
external_id?string

ExternalID is your own id for this user, unique per project environment; the access-token claims template reads it as user.external_id.

family_name?string
gender?string
given_name?string
id?string
instance_id?string
legacy_identities?array<>

LegacyIdentities are the user's ids in the systems they were imported from. Read-only.

locale?string
metadata?
middle_name?string
name?string
nickname?string
object?string
password_change_required?boolean
password_status?string

PasswordStatus is none, active (a password set in Pontive) or imported (a hash imported from another system, replaced at the user's first sign-in; pontive-spec 46 §4.6). Read-only.

Value in"none""active""imported"
phone?string
phone_verified?boolean
picture?string
private_metadata?
profile?string
status?string
Value in"active""deleted""deactivated"
updated_at?string
username?string
website?string
zoneinfo?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/users/external_id/string'
Example Response
{  "address": {    "country": "string",    "formatted": "string",    "locality": "string",    "postal_code": "string",    "region": "string",    "street_address": "string"  },  "birthdate": "string",  "created_at": "string",  "email": "string",  "email_verified": true,  "external_id": "string",  "family_name": "string",  "gender": "string",  "given_name": "string",  "id": "string",  "instance_id": "string",  "legacy_identities": [    {      "created_at": "string",      "migration_source_id": "string",      "subject": "string"    }  ],  "locale": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "middle_name": "string",  "name": "string",  "nickname": "string",  "object": "string",  "password_change_required": true,  "password_status": "none",  "phone": "string",  "phone_verified": true,  "picture": "string",  "private_metadata": {    "property1": "string",    "property2": "string"  },  "profile": "string",  "status": "active",  "updated_at": "string",  "username": "string",  "website": "string",  "zoneinfo": "string"}

Get user

GET
/users/{user}

Retrieve one user by their id or their username. A value in the id form (usr_ and 26 base32 characters) is read as the id; anything else as the username. An email is never a path value: find a user by email with GET /users?email=. Every route under /users/{user} takes either.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

Response Body

OK

application/json
  1. response
address?
birthdate?string
created_at?string
email?string
email_verified?boolean
external_id?string

ExternalID is your own id for this user, unique per project environment; the access-token claims template reads it as user.external_id.

family_name?string
gender?string
given_name?string
id?string
instance_id?string
legacy_identities?array<>

LegacyIdentities are the user's ids in the systems they were imported from. Read-only.

locale?string
metadata?
middle_name?string
name?string
nickname?string
object?string
password_change_required?boolean
password_status?string

PasswordStatus is none, active (a password set in Pontive) or imported (a hash imported from another system, replaced at the user's first sign-in; pontive-spec 46 §4.6). Read-only.

Value in"none""active""imported"
phone?string
phone_verified?boolean
picture?string
private_metadata?
profile?string
status?string
Value in"active""deleted""deactivated"
updated_at?string
username?string
website?string
zoneinfo?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/users/string'
Example Response
{  "address": {    "country": "string",    "formatted": "string",    "locality": "string",    "postal_code": "string",    "region": "string",    "street_address": "string"  },  "birthdate": "string",  "created_at": "string",  "email": "string",  "email_verified": true,  "external_id": "string",  "family_name": "string",  "gender": "string",  "given_name": "string",  "id": "string",  "instance_id": "string",  "legacy_identities": [    {      "created_at": "string",      "migration_source_id": "string",      "subject": "string"    }  ],  "locale": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "middle_name": "string",  "name": "string",  "nickname": "string",  "object": "string",  "password_change_required": true,  "password_status": "none",  "phone": "string",  "phone_verified": true,  "picture": "string",  "private_metadata": {    "property1": "string",    "property2": "string"  },  "profile": "string",  "status": "active",  "updated_at": "string",  "username": "string",  "website": "string",  "zoneinfo": "string"}

Update user

PATCH
/users/{user}

Update an existing user (partial update)

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

Request Body

Update User Request

application/json
  1. body

Update User Request

address?
birthdate?string
email?string
email_verified?boolean
external_id?string

ExternalID is your own id for this user, unique per project environment. Set to "" to clear.

family_name?string
gender?string
given_name?string
locale?string
metadata?
middle_name?string
name?string
nickname?string
password_change_required?boolean
phone?string
phone_verified?boolean
picture?string
private_metadata?
profile?string
readonly_metadata?
username?string
website?string
zoneinfo?string

Response Body

OK

application/json
  1. response
address?
birthdate?string
created_at?string
email?string
email_verified?boolean
external_id?string

ExternalID is your own id for this user, unique per project environment; the access-token claims template reads it as user.external_id.

family_name?string
gender?string
given_name?string
id?string
instance_id?string
legacy_identities?array<>

LegacyIdentities are the user's ids in the systems they were imported from. Read-only.

locale?string
metadata?
middle_name?string
name?string
nickname?string
object?string
password_change_required?boolean
password_status?string

PasswordStatus is none, active (a password set in Pontive) or imported (a hash imported from another system, replaced at the user's first sign-in; pontive-spec 46 §4.6). Read-only.

Value in"none""active""imported"
phone?string
phone_verified?boolean
picture?string
private_metadata?
profile?string
status?string
Value in"active""deleted""deactivated"
updated_at?string
username?string
website?string
zoneinfo?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/users/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "address": {    "country": "string",    "formatted": "string",    "locality": "string",    "postal_code": "string",    "region": "string",    "street_address": "string"  },  "birthdate": "string",  "created_at": "string",  "email": "string",  "email_verified": true,  "external_id": "string",  "family_name": "string",  "gender": "string",  "given_name": "string",  "id": "string",  "instance_id": "string",  "legacy_identities": [    {      "created_at": "string",      "migration_source_id": "string",      "subject": "string"    }  ],  "locale": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "middle_name": "string",  "name": "string",  "nickname": "string",  "object": "string",  "password_change_required": true,  "password_status": "none",  "phone": "string",  "phone_verified": true,  "picture": "string",  "private_metadata": {    "property1": "string",    "property2": "string"  },  "profile": "string",  "status": "active",  "updated_at": "string",  "username": "string",  "website": "string",  "zoneinfo": "string"}

Delete user

DELETE
/users/{user}

Permanently delete a user

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/users/string'
Example Response
Empty
GET
/users/{user}/authorized-apps

The apps a user has granted scopes to through the OAuth consent screen, with the scopes granted. Unpaginated.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

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/users/string/authorized-apps'
Example Response
{  "data": [    {      "apis": [        {          "api_id": "string",          "name": "string",          "scopes": [            "string"          ]        }      ],      "app_id": "string",      "app_name": "string",      "created_at": "string",      "logo_url": "string",      "scopes": [        "string"      ],      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
DELETE
/users/{user}/authorized-apps/{app_id}

Withdraw a user's consent to an app: the grant and the user's refresh tokens at that app are deleted, so the app must ask again. The user's session stays. An app the user has not authorized reads as 404.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

app_id*string

App ID

Response Body

Consent withdrawn

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

Deactivate user

POST
/users/{user}/deactivate

Deactivate a user

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

Response Body

OK

application/json
  1. response
address?
birthdate?string
created_at?string
email?string
email_verified?boolean
external_id?string

ExternalID is your own id for this user, unique per project environment; the access-token claims template reads it as user.external_id.

family_name?string
gender?string
given_name?string
id?string
instance_id?string
legacy_identities?array<>

LegacyIdentities are the user's ids in the systems they were imported from. Read-only.

locale?string
metadata?
middle_name?string
name?string
nickname?string
object?string
password_change_required?boolean
password_status?string

PasswordStatus is none, active (a password set in Pontive) or imported (a hash imported from another system, replaced at the user's first sign-in; pontive-spec 46 §4.6). Read-only.

Value in"none""active""imported"
phone?string
phone_verified?boolean
picture?string
private_metadata?
profile?string
status?string
Value in"active""deleted""deactivated"
updated_at?string
username?string
website?string
zoneinfo?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/users/string/deactivate'
Example Response
{  "address": {    "country": "string",    "formatted": "string",    "locality": "string",    "postal_code": "string",    "region": "string",    "street_address": "string"  },  "birthdate": "string",  "created_at": "string",  "email": "string",  "email_verified": true,  "external_id": "string",  "family_name": "string",  "gender": "string",  "given_name": "string",  "id": "string",  "instance_id": "string",  "legacy_identities": [    {      "created_at": "string",      "migration_source_id": "string",      "subject": "string"    }  ],  "locale": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "middle_name": "string",  "name": "string",  "nickname": "string",  "object": "string",  "password_change_required": true,  "password_status": "none",  "phone": "string",  "phone_verified": true,  "picture": "string",  "private_metadata": {    "property1": "string",    "property2": "string"  },  "profile": "string",  "status": "active",  "updated_at": "string",  "username": "string",  "website": "string",  "zoneinfo": "string"}

List a user's groups

GET
/users/{user}/groups

List the groups a user belongs to

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

Query Parameters

page?integer

Page number

limit?integer

Items per page

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/users/string/groups'
Example Response
{  "data": [    {      "created_at": "string",      "external_id": "string",      "id": "string",      "member_count": 0,      "metadata": {        "property1": "string",        "property2": "string"      },      "name": "string",      "object": "string",      "owner_id": "string",      "owner_type": "string",      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
GET
/users/{user}/memberships

List a user's memberships across every container kind — the instance root, organizations and resources (D4) — read-only; memberships are written on their container. resource_type narrows them to one kind of container by its registry key (root, org or a custom type key, D44). Each carries its container's name and external_id.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

Query Parameters

resource_type?string

Only the memberships on containers of this type: root, org or a custom type key (D44)

organization_id?string

Only the memberships on this organization's resources, at any depth (what removing the user from it also removes)

page?integer

Page number

limit?integer

Items per page

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/users/string/memberships'
Example Response
{  "data": [    {      "created_at": "string",      "instance_id": "string",      "joined_at": "string",      "last_active_at": "string",      "object": "string",      "resource_external_id": "string",      "resource_id": "string",      "resource_name": "string",      "resource_type": "string",      "roles": [        {          "key": "string",          "name": "string"        }      ],      "updated_at": "string",      "user_id": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Activate user

POST
/users/{user}/reactivate

Activate a deactivated user

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

Response Body

OK

application/json
  1. response
address?
birthdate?string
created_at?string
email?string
email_verified?boolean
external_id?string

ExternalID is your own id for this user, unique per project environment; the access-token claims template reads it as user.external_id.

family_name?string
gender?string
given_name?string
id?string
instance_id?string
legacy_identities?array<>

LegacyIdentities are the user's ids in the systems they were imported from. Read-only.

locale?string
metadata?
middle_name?string
name?string
nickname?string
object?string
password_change_required?boolean
password_status?string

PasswordStatus is none, active (a password set in Pontive) or imported (a hash imported from another system, replaced at the user's first sign-in; pontive-spec 46 §4.6). Read-only.

Value in"none""active""imported"
phone?string
phone_verified?boolean
picture?string
private_metadata?
profile?string
status?string
Value in"active""deleted""deactivated"
updated_at?string
username?string
website?string
zoneinfo?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/users/string/reactivate'
Example Response
{  "address": {    "country": "string",    "formatted": "string",    "locality": "string",    "postal_code": "string",    "region": "string",    "street_address": "string"  },  "birthdate": "string",  "created_at": "string",  "email": "string",  "email_verified": true,  "external_id": "string",  "family_name": "string",  "gender": "string",  "given_name": "string",  "id": "string",  "instance_id": "string",  "legacy_identities": [    {      "created_at": "string",      "migration_source_id": "string",      "subject": "string"    }  ],  "locale": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "middle_name": "string",  "name": "string",  "nickname": "string",  "object": "string",  "password_change_required": true,  "password_status": "none",  "phone": "string",  "phone_verified": true,  "picture": "string",  "private_metadata": {    "property1": "string",    "property2": "string"  },  "profile": "string",  "status": "active",  "updated_at": "string",  "username": "string",  "website": "string",  "zoneinfo": "string"}

List user sessions

GET
/users/{user}/sessions

List the OP sessions belonging to a user — the records that a browser is signed in, independent of any token issued. The response carries no session secret: the id is the public OIDC sid claim.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

Query Parameters

page?integer

Page number

limit?integer

Items per page

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/users/string/sessions'
Example Response
{  "data": [    {      "acr": "string",      "active": true,      "amr": [        "string"      ],      "app_id": "string",      "auth_time": "string",      "clients": [        "string"      ],      "created_at": "string",      "expires_at": "string",      "id": "string",      "ip_address": "string",      "object": "string",      "revoked_at": "string",      "user_agent": "string",      "user_id": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Revoke user session

POST
/users/{user}/sessions/{session_id}/revoke

End one of a user's sessions. Every grant consults the same flag afterwards, so no token has to be found or enumerated. A session belonging to a different user reads as 404.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user*string

The user's id, or their username

session_id*string

Session ID

Response Body

Session revoked successfully

Example Request
curl -X POST 'https://api.us.pontive.com/v1/users/string/sessions/string/revoke'
Example Response
Empty