Create System Account Access Token
Changed onCreates 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.
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v3/system-accounts/{accountId}/access-tokens
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
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"
}Changes
- warning
added the new
401.00enum value to theresponse property for the response status - warning
added the new
404.00enum value to theresponse property for the response status - warning
added the new
409.00enum value to theresponse property for the response status
- warning
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - info
removed
subschema #2from the response bodyallOflist for the response status - info
removed
subschema #2from the response bodyallOflist for the response status - info
removed
subschema #2from the response bodyallOflist for the response status - info
removed
subschema #2from the response bodyallOflist for the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking