Delete a personal access token of the signed-in user by name. A logto-verification-id in header and the personal-access-tokens scope are required.
Responses
-
The personal access token was deleted successfully.
-
The request body is invalid, or the personal access token field is not editable in the account center.
-
Permission denied, the verification record is invalid or the access token does not include the personal-access-tokens scope.
-
The request was made by a third-party application.
-
The personal access token was not found.
POST
/api/my-account/personal-access-tokens/delete
curl \
--request POST 'https://[tenant_id].logto.app/api/my-account/personal-access-tokens/delete' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"name": "string"
}'
Request examples
{
"name": "string"
}