Create short-lived access token
POST/v1/access_tokens
Exchange a long-lived API key for a short-lived access token. Authenticate with your long-lived API key as the Bearer token; the response contains a new token that authenticates the same team until it expires. Short-lived access tokens cannot be used to create additional access tokens.
Body ParametersJSON
Create short-lived access token
curl https://api.safetykit.com/v1/access_tokens \
-X POST \
-H "Authorization: Bearer $SAFETYKIT_API_KEY"{
"access_token": "sk_live_abc123...",
"expires_at": "2026-01-01T01:00:00.000Z",
"expires_in": 3600,
"token_type": "Bearer"
}Returns Examples
{
"access_token": "sk_live_abc123...",
"expires_at": "2026-01-01T01:00:00.000Z",
"expires_in": 3600,
"token_type": "Bearer"
}