Create a sandbox preview token
Creates a token for accessing a private sandbox preview.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Headers
Optional team ID. Must match the team_id query parameter when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.
1Path Parameters
Immutable sandbox name returned by creation.
1"baseten-api-review-0916"
Preview name returned by creation.
1"web"
Query Parameters
Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.
1Body
Time at which the token stops working. Must be in the future.
"2026-10-13T12:00:00Z"
When true, return an existing unexpired token of this preview that stays valid at least until expires_at instead of creating a new one. Defaults to false when omitted.
Response
Token created.
Access token for a private preview.
Token name, used in token_name path parameters.
"7f3k2m9q1x8c4v6b0n5z"
Value to send as the bl_preview_token query parameter.
"7f3k2m9q1x8c4v6b0n5z"
"2026-10-13T12:00:00Z"
Whether expires_at has passed.
false