Creating a short-lived playground token¶
Note
The Admin API requires no token. The Admin API is typically protected at the network level.
Send the request as POST to the path /admin/v1/playground/token.
Description¶
Issues a temporary gateway auth token scoped to ["playground"] with a 10-minute TTL. Returns the raw token, its expiry, and the tenant/gateway slugs needed to construct the compat URL. Expired playground tokens for the requested gateway are cleaned up on each call.
Example¶
Example of the request body:
Responses¶
The endpoint answers the request with the following status codes:
| Status code | Description |
|---|---|
201 |
Playground token created. |
400 |
Invalid request body or missing required field (Admin API). |
404 |
Resource not found (Admin API). |