Skip to main content
GET
/
api
/
v1
/
auth
/
users
/
check
/
phone
Check if user exists by phone
curl --request GET \
  --url https://crypto.westminister.tech/api/v1/auth/users/check/phone \
  --header 'Authorization: Bearer <token>'
{
  "exists": true,
  "phone": "+254727648169"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

phone
string
required

User phone number. Phone number in E.164 format.

Response

200 - application/json

Phone existence result

exists
boolean

Whether a user with the phone exists.

phone
string

The phone number checked.