Auth

Get Access Token

Retrieves an access token, which you then pass in the Authorization header when calling API methods.

The client ID and secret you provide when calling this method must be from a set of API credentials from your Eon account. To learn more about creating API credentials and completing the authentication flow, see Authentication.

The returned access token has the permissions included in the role you assigned to the API credentials. Always make sure the API credentials have the permissions needed for the API methods you want to use it for.

The access token is valid for 12 hours. After that, you must call this method again to get a new token.

post/v1/token

Request

  • Base URL: https://%7Baccount-domain%7D.console.eon.io/api
  • URL: https://%7Baccount-domain%7D.console.eon.io/api/v1/token
  • Auth: none declared

Request body

clientIdstring required

API client ID.

clientSecretstring required

API client secret.

Response

Authenticated

accessTokenstring

Access token, which you pass in the Authorization header when calling API methods.

expirationSecondsinteger

Length of time until the token expires, in seconds.

Default: 43200 (12 hours).

Changes

No recorded changes to this operation across all 1 revision of this API.