Create service account access token
POST/v1/api/serviceaccounts/{id}/token
Parameters
Responses
| Parameter | Type | Description |
|---|---|---|
idrequired | string | — |
refresh | boolean | — |
expiry | string | Token TTL, e.g. 1h, 1d, 1w |
scopes | array | — |
Response samples
200
{
"expires_at": "string",
"id": "string",
"inserted_at": "string",
"last_used_at": "string",
"scopes": [
{
"api": "string",
"apis": [
"string"
],
"identifier": "string",
"ids": [
"string"
]
}
],
"token": "string",
"updated_at": "string"
}