Skip to content
Myra AI Workspace Administration Manual Updated · 01 Sep 2026

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:

{
  "gateway_id": "gw_xyz789"
}

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).