SandboxesFiles

Create a scoped access token

Return a bearer token for the access endpoint of the sandbox. It allows the given actions on this sandbox only, for 15 minutes, and only while the caller keeps its access: a change to the roles or the API keys of the caller ends it. Use it where you hold no API key, for example from the console. Needs read access to the sandbox.

POST
/v1/sandboxes/{sandboxId}/access-tokens
AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.sebastian-holstein.de under API Keys.

In: header

Path Parameters

sandboxId*string

Sandbox ID (ULID)

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

actions?array<>|

Actions that the token allows; defaults to all of them. Each one still needs the access level of the caller on the sandbox.

Itemsitems <= 6

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/v1/sandboxes/string/access-tokens" \  -H "Content-Type: application/json" \  -d '{}'
{  "access_endpoint": "https://fr-par-1.access.sandbox.tektona.app",  "actions": [    "string"  ],  "expires_at": "2019-08-24T14:15:22Z",  "token": "string"}