Skip to main content
POST
/
entities
/
site
/
{site_id}
/
token
Add Site Auth Token
curl --request POST \
  --url https://api-sandbox.axle.energy/entities/site/{site_id}/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "refresh_token": "<string>",
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_utc": "2023-11-07T05:31:56Z",
  "expires_in": 123
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.axle.energy/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

site_id
string<uuid>
required

Body

application/json

Request model for providing an auth token to enable Axle to access assets at a site.

refresh_token
string

Refresh token for acquiring fresh access tokens after they expire; required, except for 'API_KEY'-type submissions

access_token
string

Access token for dispatching and monitoring assets

token_type
string

Type of token (e.g. 'Bearer' or 'API_KEY')

expires_utc
string<date-time>

Time in UTC at which the token expires

expires_in
integer

Time in seconds until the token expires

Response

Token successfully processed