Skip to main content
POST
Create a session token

Authorizations

Authorization
string
header
required

Secret key (sk_live_...)

Body

application/json

IDs to bind the token to. Bind the IDs you pass the component.

workflow_id
string

Workflow the component runs (workflowId). Also binds the tasks its steps run. The token can run the workflow with the credentials its steps name, but reading or updating one needs credential_id or credential_ids.

Example:

"wflo_AbC123xYz456"

task_id
string

Task the component runs (taskId).

Example:

"task_AbC123xYz456"

credential_id
string

Existing credential the component reconnects (credentialId). The token can read it, update it, and run with it.

Example:

"cred_AbC123xYz456"

credential_ids
string[]

Existing credentials pinned on workflow steps (workflowInput.steps.<name>.credentialId). The token can read them, update them, and run with them.

task_run_id
string

Task run the Live View Component shows (taskRunId).

Example:

"trun_AbC123xYz456"

workflow_run_id
string

Workflow run the Live View Component shows (workflowRunId), including the task runs of its steps.

Example:

"wrun_AbC123xYz456"

session_id
string

Session the Live View Component shows (sessionId), including the task runs in it. The token can watch the session but can't run in it or end it.

Example:

"sess_AbC123xYz456"

Response

Created

A session token for the Auth Component. Expires 30 minutes after its last use, and no later than 24 hours after creation. Scoped to a single component session.

id
string
required

Unique identifier for the session token, prefixed with tok_.

Pattern: ^tok_
Example:

"tok_AbC123xYz456"

object
string
required

Always token.

token
string
required

The token value to pass to <DeckAuthComponent />. Prefixed with tk_. Treat as a bearer secret until it expires.

expires_at
string<date-time>
required

ISO 8601 timestamp at which the token stops being accepted if it is never used. 30 minutes after created_at. Each request made with the token extends the expiry to 30 minutes after that request, up to 24 hours after created_at.

Example:

"2026-08-24T12:00:00Z"

created_at
string<date-time>
required

ISO 8601 timestamp of when the token was created.

Example:

"2026-08-24T12:00:00Z"

request_id
string
required

Unique identifier for the API request. Include this when contacting support.