DELETE /api/my-account/primary-phone

Delete primary phone for the user, a logto-verification-id header is required for checking sensitive permissions. The request is rejected if it would remove the user's last identifier.

Responses

  • 204

    The primary phone was deleted successfully.

  • 400

    The request would remove the user's last identifier.

  • 401

    Permission denied, the verification record is invalid.

  • 403

    Forbidden

DELETE /api/my-account/primary-phone
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/my-account/primary-phone' \
 --header "Authorization: Bearer $ACCESS_TOKEN"