Skip to main content
POST
Obtain an access token

Corpo

application/json
grant_type
enum<string>
obrigatório
Opções disponíveis:
client_credentials
client_id
string

Obrigatório se o cabeçalho Basic auth não for utilizado.

Exemplo:

"emcl_a1b2c3d4e5f67890a1b2c3d4e5f67890"

client_secret
string

Obrigatório se o cabeçalho Basic auth não for utilizado.

Exemplo:

"emcs_..."

Resposta

Token de acesso emitido

access_token
string

Token Bearer JWT

Exemplo:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
string
Exemplo:

"Bearer"

expires_in
integer

Tempo de vida do token em segundos

Exemplo:

3600

scope
string

Lista de escopos concedidos separados por espaços

Exemplo:

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