Create a new personal access token
Changed onCreate a new personal access token. A maximum of 10 personal access tokens can be created.
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v3/users/{userId}/access-tokens
- Auth: one of:
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"expires_at": "2022-11-04T20:10:06.927Z"
}Response
Response containing details of the created personal access token.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"user_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"revoked_by": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"last_used_at": "2022-11-04T20:10:06.927Z",
"expires_at": "2022-11-04T20:10:06.927Z",
"revoked_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- warning
added the new
400.00enum value to theresponse property for the response status - warning
added the new
401.00enum value to theresponse property for the response status - warning
added the new
403.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