Skip to main content
POST
Obtain an access token

请求体

application/json
grant_type
enum<string>
必填
可用选项:
client_credentials
client_id
string

未使用 Basic auth 请求头时必填。

示例:

"emcl_a1b2c3d4e5f67890a1b2c3d4e5f67890"

client_secret
string

未使用 Basic auth 请求头时必填。

示例:

"emcs_..."

响应

访问令牌已签发

access_token
string

JWT Bearer 令牌

示例:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
string
示例:

"Bearer"

expires_in
integer

令牌有效期(秒)

示例:

3600

scope
string

以空格分隔的已授权 scopes 列表

示例:

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