POST/testing_tokens

Create a testing token

Creates a testing token for use with Frontend API requests. Pass the returned token value in the __clerk_testing_token query parameter; the response includes its expiration time as expires_at.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 status code
200Returns a testing token object with the token value and its expiration time as a Unix timestamp.
objectstringrequired
Allowed:testing_token
tokenstringrequired
The actual token. This value is meant to be passed in the `__clerk_testing_token` query parameter with requests to the Frontend API.
expires_atintegerrequired
Unix timestamp of the token's expiration time.