App tokens
Available from Phase 3
/api/v1/apps/{id}/tokensAn app token (sk_live_, sk_test_, pk_live_), a browser token (a 5-minute ES256 JWT) or an agent token (sa_live_).
In: header
Path Parameters
uuidHeader Parameters
Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/tokens" \ -H "Content-Type: application/json" \ -d '{ "prefix": "sk_live_", "channel": "production", "scopes": [ "run" ] }'null/api/v1/apps/{id}/tokens/{tokenId}An app token (sk_live_, sk_test_, pk_live_), a browser token (a 5-minute ES256 JWT) or an agent token (sa_live_).
In: header
Path Parameters
uuiduuidHeader Parameters
Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.
1 <= lengthResponse Body
application/json
application/json
curl -X DELETE "https://example.com/api/v1/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/tokens/497f6eca-6276-4993-bfeb-53cbbbba6f08"nullBandwise is an independent product built on TypeSafe's System One models. It is not TypeSafe's documentation. For the System One models themselves, see docs.typesafe.ai.