Skip to content

Authorize

Exchange an org token for a bearer

Request

Resolves the given email against your organization, validates the org-level integration token, and — if your organization has the Integration API feature provisioned — returns a bearer token to use as Authorization: Bearer <token> on every other endpoint. Tokens expire after 5 minutes; call this endpoint again to get a new one.

Bodyapplication/jsonrequired
emailstring, (email), non-empty^[^@]+@[^@]+$required
Example:"dispatch@example.com"
orgTokenstring, [ 0 .. 100 ] charactersrequired
Example:"ll_example-org-token"
curl -i -X POST \
  https://developers.loadlink.ca/_mock/member-discovery/openapi/v2/authorize \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "dispatch@example.com",
    "orgToken": "ll_example-org-token"
  }'

Responses

Bearer issued

Bodyapplication/json
accessTokenstring
tokenTypestring
expiresIninteger, (int32)
Response
{ "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "tokenType": "Bearer", "expiresIn": 300 }