Delete personal access token

POST /api/users/{userId}/personal-access-tokens/delete

Delete a token for the user by name.

Path parameters

  • userId string Required

    The unique identifier of the user.

application/json

Body Required

  • name string Required

    The name of the token to delete.

Responses

  • 204

    The token was deleted successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

POST /api/users/{userId}/personal-access-tokens/delete
curl \
 --request POST 'https://[tenant_id].logto.app/api/users/{userId}/personal-access-tokens/delete' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"string"}'
Request examples
{
  "name": "string"
}