Backend API
cURL
curl --request DELETE \ --url https://api.wacht.dev/users/{user_id}/phones/{phone_id} \ --header 'Authorization: Bearer <token>'
{ "message": "Cannot delete primary phone number" }
Remove a phone number from a user’s account.
Note: You cannot delete the primary phone number.
API key authentication (Bearer token)
User ID (integer as string)
Phone ID (integer as string)
Phone number deleted successfully
Was this page helpful?