Delete personal access token

DELETE /api/users/{userId}/personal-access-tokens/{name}

Delete a token for the user by name.

Path parameters

  • userId string Required

    The unique identifier of the user.

  • name string Required

    The name of the token.

Responses

  • 204

    The token was deleted successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

DELETE /api/users/{userId}/personal-access-tokens/{name}
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/users/{userId}/personal-access-tokens/{name}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"