Identity & Access

Manage identity and access.

Assign access through account and project roles. Private resources may require additional permissions.

Users · Accounts · Invitations · API keys · Authentication · Authorization

Users

Read the authenticated user’s profile.

List, update, or remove account members.

List pending invitations and active members across projects you own.

List, read, remove, or update project members.

Transfer project ownership.

EndpointMethodsDescription
/account/invitesGETList account invites
/accounts/{account_id}/membersGETList account members
/account/usersGETList people on projects you own
/account/users/{user_id}/analytics/ai-usageGETGet account member AI usage analytics
/accounts/{account_id}/members/{user_id}PATCH, DELETEUpdate account member; Delete account member
/projects/{project_reference}/membersGETList project members
/projects/{project_reference}/members/{user_id}GET, PATCH, DELETEGet project member; Update project member; Delete project member
/projects/{project_reference}/ownerPATCHUpdate project owner
/meGETGet current user

Accounts

List, create, or read accounts.

EndpointMethodsDescription
/accountsGET, POSTList accounts; Create account
/accounts/{account_id}GET, PATCHGet account; Update account

Invitations

Invite people to a project by email, list, resend or revoke project invitations, list invitations across your projects, and create, list, revoke or accept account invitations.

EndpointMethodsDescription
/accounts/{account_id}/invitations/{invitation_id}/resendPOSTResend account invitation
/accounts/{account_id}/invitationsGET, POSTList account invitations; Create account invitation
/accounts/-/invitations/previewPOSTPreview account invitation
/projects/{project_reference}/invitationsGET, POSTList invitations; Create invitation
/invitationsGETList invitations across projects
/projects/{project_reference}/invitations/{invitation_id}GET, DELETEGet invitation; Delete invitation
/accounts/{account_id}/invitations/{invitation_id}DELETEDelete account invitation
/accounts/-/invitations/acceptPOSTAccept account invitation
/projects/{project_reference}/invitations/{invitation_id}/resendPOSTResend invitation

API keys

Create, inspect, update, and revoke API keys. View API key usage in the Billing and Usage API.

EndpointMethodsDescription
/api-keysGET, POSTList API keys; Create API key
/api-keys/{api_key_id}GET, PATCH, DELETEGet API key; Update API key; Delete API key

Authentication

Sign in through an identity provider or a magic link, and sign out.

Create access tokens and environment access tokens. Retrieve public verification keys from the JWKS endpoint.

EndpointMethodsDescription
/auth/{provider}GETStart sign-in with an identity provider
/auth/magic-linksPOSTEmail a one-time sign-in link
/auth/magiclinkGET, HEADVerify a magic link; Probe a magic link
/auth/logoutPOSTSign out the current session
/projects/{project_reference}/environments/{environment_name}/access-tokensPOSTCreate environment access token
/auth/tokenPOSTCreate access token from client credentials
/.well-known/jwks.jsonGETGet JSON Web Key Set

Authorization

Discover OAuth authorization and protected-resource metadata.

Register public OAuth clients.

Start, read, or decide MCP authorization requests.

Exchange, rotate, or revoke OAuth tokens.

List or revoke authorized MCP app grants.

EndpointMethodsDescription
/oauth/grantsGETList authorized apps
/oauth/grants/{id}DELETERevoke an authorized app
/.well-known/oauth-authorization-serverGETDiscover OAuth authorization endpoints
/oauth/tokenPOSTExchange an authorization code or refresh an access token
/oauth/registerPOSTRegister a public OAuth client
/oauth/revokePOSTRevoke an OAuth token
/oauth/authorizeGETStart OAuth authorization with PKCE
/oauth/authorization-requests/{id}GETRead an OAuth authorization request
/oauth/authorization-requests/{id}/decisionPOSTApprove or deny OAuth access

Back to REST API reference