System Accounts - Access Tokens
Create System Account Access Token
Creates an access token for the specified system account (SA). The access token can be used for authenticating API and CLI requests. The token will only be displayed once on creation. Returns a 409 if the system account already has a token with the same name.
post/v3/system-accounts/{accountId}/access-tokens
Request body
Response
A response including a single system account access token with the token.
Example response
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "Sample Access Token",
"created_at": "2022-08-01T14:16:09Z",
"updated_at": "2022-08-02T08:35:49Z",
"expires_at": "2022-12-31T12:52:23Z",
"last_used_at": "2022-10-24T13:05:42Z",
"token": "spat_12345678901234567890123456789012345678901234567890"
}