Skip to main content
POST
/
v1
/
auth:exchangeToken
cURL
curl --request POST \
  --url https://api.example.com/v1/auth:exchangeToken \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "email": "<string>"
}
'
{
  "accessToken": "<string>"
}

Body

application/json
token
string

External OIDC token (JWT) from CI/CD platform.

email
string

Workload Identity email for identifying which identity to authenticate as. Format: {name}@workload.bytebase.com

Response

OK

accessToken
string

Bytebase access token.