Skip to main content
POST
/
capture
/
session
/
token
Create capture session token
curl --request POST \
  --url https://api.videodb.io/capture/session/token \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "user_id": "user-123",
  "expires_in": 86400
}
'
{
  "success": true,
  "data": {
    "token": "st-xxx",
    "expires_at": 1700000000,
    "expires_in": 86400
  }
}
Create a temporary authentication token for capture sessions. Use this to generate short-lived tokens for client-side SDK authentication without exposing your API key.
  • Tokens are short-lived and expire after the specified duration (default: 24 hours)
  • user_id identifies the end user for partner tracking
  • Use these tokens in client-side applications instead of your main API key

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Body

application/json
user_id
string

End user identifier for partner tracking

Example:

"user-123"

expires_in
integer
default:86400

Token validity in seconds

Example:

86400

Response

200 - application/json

Session token created

success
boolean
Example:

true

data
object