Skip to main content
Version: 1.0.0

End User APIs

Manage the effective user’s location, locale, default generation preferences and metadata. There is no arbitrary target-user field in these request bodies. Authorized backend calls can act on behalf of a user.

User-facing calls act for the authenticated beneficiary. A backend sk_… key uses an authorized X-On-Behalf-Of selection with users:impersonate; a client pk_… key accompanies that user’s JWT from the configured issuer. Never expose a secret key in a client. Raw identity headers and recipient IDs are not authentication. See Authentication.

Tenant context comes from the authenticated request. Client-supplied X-Tenant-Id, X-User-Id or X-Project-Id do not grant authority. The current public integration uses the default project. Do not rely on project headers for separate project, test/live or customer isolation on this API.

Related guide: Manage end-user profiles

JSON conventions​

Requests accept snake_case or camelCase field names; responses use camelCase. Ordinary default-valued scalars and empty repeated fields can be omitted. Explicitly present optional scalars, map values and well-known JSON types follow their own presence rules: an explicit false, 0 or empty value is not universally equivalent to absence. Decode each field according to its schema. 64-bit integers use JSON strings; preserve their precision. Unknown request fields are generally discarded before validation, so a typo can silently change behavior. This is not a guarantee that arbitrary fields or future client contracts are supported. See API conventions.

Authentication​

Project/service API key. Use pk_… only with a verified end-user JWT; backend sk_… calls that require a user use authorized on-behalf-of context. Management operations can have different requirements; consult the operation and authentication guide.

Security Scheme Type:

apiKey

Header parameter name:

X-API-Key

Document ID: DOC-CP-identity-access-api-overview. Section identities and revisions.

SectionStable reference
OverviewDOC-CP-identity-access-api-overview#overview
JSON conventionsDOC-CP-identity-access-api-overview#json-conventions
AuthenticationDOC-CP-identity-access-api-overview#authentication