Skip to Content
Docs
API referenceManagement API

Me

Get current user

GET
/me

Get the currently authenticated user's profile An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:read; the app's own access token is refused 403 (D48).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

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://example.auth.us.pontive.app/v1/me'
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 current user

PATCH
/me

Update the currently authenticated user's profile (partial update) An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:manage; the app's own access token is refused 403 (D48).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Update User Request

application/json
  1. body

Update User Request

family_name?string
given_name?string
metadata?
name?string
picture?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://example.auth.us.pontive.app/v1/me' \  -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 current user

DELETE
/me

Delete the currently authenticated user An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:manage; the app's own access token is refused 403 (D48).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Response Body

User deleted successfully

Example Request
curl -X DELETE 'https://example.auth.us.pontive.app/v1/me'
Example Response
Empty

List my delegations

GET
/me/delegations

The signed-in user's own delegation grants (D31): which agents they let act for them, in which organization, with which scopes and until when. Filter by agent_id or organization_id. Needs no permission: identity-svc answers a user for their own grants. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:read; the app's own access token is refused 403 (D48).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

agent_id?string

The agent delegated to (agt_)

organization_id?string

The organization the grant is bounded to

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://example.auth.us.pontive.app/v1/me/delegations'
Example Response
{  "data": [    {      "agent_id": "string",      "created_at": "string",      "created_by": {        "id": "string",        "name": "string",        "type": "string"      },      "expires_at": "string",      "id": "string",      "instance_id": "string",      "last_used_at": "string",      "object": "string",      "organization_id": "string",      "scopes": [        "string"      ],      "updated_at": "string",      "user_id": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Revoke my delegation

DELETE
/me/delegations/{delegation_id}

The signed-in user revokes one of their own delegation grants (D31): the agent's next exchange on it is refused, and a token it already exchanged stops being answered on Pontive's checks and listings at once. Another user's grant is 404, the same as none. A token acting for the user (an agent's) is refused (actor_refused): a delegation is the user's own to take back. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:manage; the app's own access token is refused 403 (D48).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

delegation_id*string

Delegation ID (dlg_)

Response Body

No Content

Example Request
curl -X DELETE 'https://example.auth.us.pontive.app/v1/me/delegations/string'
Example Response
Empty

List my memberships

GET
/me/memberships

The signed-in user's own memberships across every container kind — the instance root, organizations and resources (D4, D31) — each left with POST /me/memberships/{container_id}/leave. resource_type narrows them to one kind of container (root, org or a custom type key, D44). Each carries its container's name and, when the caller may read the container, its external_id. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:read; the app's own access token is refused 403 (D48).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

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

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://example.auth.us.pontive.app/v1/me/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  }}

Leave a membership

POST
/me/memberships/{container_id}/leave

Remove the current (authenticated) user's own membership of a container (api-route-review D38): the prefixed id names it — an organization (org_), or a resource (res_) whose type lets members leave. Refused 403 leave_disabled when the organization's settings or the resource's type do not let members leave. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:manage; the app's own access token is refused 403 (D48).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

container_id*string

The organization (org_) or resource (res_) left

Response Body

LeaveOrganizationResponse or LeaveResourceResponse

application/json
  1. response
Example Request
curl -X POST 'https://example.auth.us.pontive.app/v1/me/memberships/string/leave'
Example Response
{}