Consumer Authentication

/

API reference

/

Users

/

Delete

/

Delete user phone number

Delete User phone number

DELETEhttps://test.stytch.com/v1/users/phone_numbers/{phone_id}

Delete a phone number from a User.


Path parameters


phone_id*string

Response fields


status_codeint

request_idstring

user_idstring

userobject
curl --request DELETE \
  --url https://test.stytch.com/v1/users/phone_numbers/phone-number-test-d5a3b680-e8a3-40c0-b815-ab79986666d0 \
  -u 'PROJECT_ID:SECRET' \
  -H 'Content-Type: application/json'

RESPONSE

200
{
  "status_code": 200,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "user_id": "user-test-16d9ba61-97a1-4ba4-9720-b03761dc50c6",
  "user": {...}
}

Common Error Types