Skip to main content
POST
/
auth
/
component-token
Create Component Token
curl --request POST \
  --url https://api-sandbox.axle.energy/auth/component-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'external_user_id=<string>' \
  --data 'allowed_origin=<string>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "access_token": "<string>",
  "token_type": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/x-www-form-urlencoded
external_user_id
string
required
allowed_origin
string
required

Response

Successfully authenticated with a user-scoped access token

Organisation scoped token. Includes internal user ID so clients can make futher API requests regarding this user if needed.

id
string<uuid>
required
access_token
string
required
token_type
string
required