Skip to content

Exchange an external OIDC token for a DataRecs Connector_Token

POST
/auth/oidc/exchange
x-datarecs-tenant-slug
string

Tenant slug injected by the edge router (X-Datarecs-Tenant-Slug). When present, the cell cross-checks the JWT aud claim against this slug to enforce the OIDC audience convention (https://api.datarecs.io/).

object
subject_token
required
string
tenant_id
required
string

Token exchange successful

object
access_token
required
string
expires_in
required
number
token_type
required
string
default: Bearer

Invalid tenant

Invalid signature, expired token, or issuer not configured

Audience mismatch or claim condition failed