Skip to main content
POST
Obtain an access token

Body

application/json
grant_type
enum<string>
required
Available options:
client_credentials
client_id
string

Required if not using Basic auth header.

Example:

"emcl_a1b2c3d4e5f67890a1b2c3d4e5f67890"

client_secret
string

Required if not using Basic auth header.

Example:

"emcs_..."

Response

Access token issued

access_token
string

JWT Bearer token

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
string
Example:

"Bearer"

expires_in
integer

Token lifetime in seconds

Example:

3600

scope
string

Space-delimited list of granted scopes

Example:

"locations:read locations:write clusters:read clusters:write chargers:write org:write"