3. Sites

Add Site Auth Token

Provide an auth token to Axle, for dispatching the site's assets.

This token should provide access to all of the assets registered against the specified site.

This is only required where Axle is not able to access this site via an aggregated API in your systems.

post/entities/site/{site_id}/token

Request

  • Base URL
    https://api-sandbox.axle.energy
  • URL
    https://api-sandbox.axle.energy/entities/site/{site_id}/token
  • Auth
    OAuth 2
    Password
    Token URL: auth/token-form

Path parameters

site_idstring uuid required

Request body

refresh_tokenstring

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

access_tokenstring

Access token for dispatching and monitoring assets

token_typestring

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

expires_utcstring date-time

Time in UTC at which the token expires

expires_ininteger

Time in seconds until the token expires

Response

Token successfully processed

unknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.