Skip to main content
POST

Authorizations

Authorization
string
header
required

A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.

Headers

Reactor-API-Version
string

The API protocol version the client speaks. Currently 1. Older versions than the server's minimum get 426.

Example:

"1"

Reactor-API-Accept-Version
string

The lowest API version the client accepts. A value above the server's version returns 501.

Example:

"1"

Body

application/json

Optional. Omit it, or send {}, for the default all-models scope and a 1-hour lifetime.

expires_after
integer<int64>

The token lifetime in seconds. Defaults to 3600 (1 hour) when omitted, zero, or negative. Values above 21600 (6 hours) are capped. The token also never outlives the API key's own expiry.

Example:

900

authorization_details
object[]

What the token may do. Send exactly one entry. Omit the field for all models and up to 5 sessions. An empty array or null is rejected.

Required array length: 1 element

Response

A token was issued.

jwt
string
required

The session token. Send it as Authorization: Bearer <jwt> to /sessions and /clips.

expires_at
integer<int64>
required

When the token expires, in Unix seconds.

Example:

1784375400

authorization_details
object[]

The grant as issued, in canonical form: models resolved and sorted, bound sessions sorted and deduplicated. constraints.max_sessions is present only when you set it or bound sessions; otherwise the default of 5 applies.