Skip to main content
POST
/
v1
/
auth
/
exchange
Exchange
curl --request POST \
  --url https://api.example.com/v1/auth/exchange \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject_token": "<string>",
  "subject_token_type": "urn:ietf:params:oauth:token-type:jwt",
  "workspace_id": "<string>"
}
'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 3600,
  "session_id": "",
  "id_token": "<string>",
  "scope": ""
}

Body

application/json

AuthBridge: exchange an upstream JWT (Clerk/SAML/OIDC) for a Causeloop JWT.

subject_token
string
required
subject_token_type
string
default:urn:ietf:params:oauth:token-type:jwt
workspace_id
string | null

Response

Successful Response

access_token
string
required
refresh_token
string
required
token_type
string
default:Bearer
expires_in
integer
default:3600
session_id
string
default:""
id_token
string | null
scope
string
default:""