Mint Ephemeral User Token

Mints a short-lived ephemeral user token for one user. PII endpoints need this token along with your API key, so mint it right before the call and don't store it.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The Sail user id.

Body Params
integer
60 to 3600
Defaults to 900

How long the token lasts, in seconds. A user can have several tokens at once, and each one expires on its own.

scopes
array of strings

Defaults to every token scope the minting key's grants allow. Narrow it for each workload. For example, leave out numbers:reveal for a service that only shows masked numbers.

scopes
Allowed:
Responses

403

insufficient_key_scope — key lacks token_admin.

429

rate_limited — mint velocity exceeded for this user.

Language
Credentials
Bearer
sk_live_…
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json