Skip to main content
POST
/
v1
/
auth
/
exchange
curl
curl -X POST https://api.expys.com/v1/auth/exchange \
  -H "Authorization: Bearer YOUR_ORG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "displayName": "string",
    "email": "string",
    "externalUserID": "string",
    "tier": "string"
  }'
{
  "accessToken": "<string>",
  "expiresAt": "<string>"
}

Authorizations

Authorization
string
header
required

Org-API-Key as a Bearer token.

Headers

Idempotency-Key
string

Optional client-generated key (<=255 chars). A retried POST carrying the same key replays the original response instead of acting twice; reusing a key with a different body returns 409.

Maximum string length: 255

Body

application/json
externalUserID
string
required
displayName
string
email
string
tier
string

Response

Response for status 200

accessToken
string
required
expiresAt
string
required