Skip to content

Log in with phone number and code

Request

To access both online and offline (e.g., phone-made) appointments, the user must log in by verifying their phone number. This is done by requesting a confirmation code to be sent via SMS using the "SMS phone number verification code" endpoint.

Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token

Bodyapplication/jsonrequired
loginstringrequired

Phone number or Email

Example:"testuser@alteg.io"
passwordstringrequired

Password

Example:"testpass"
curl -i -X POST \
  https://developer.alteg.io/_mock/en/public/openapi/user/auth \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: string' \
  -H 'Content-Type: application/json' \
  -d '{
    "login": "testuser@alteg.io",
    "password": "testpass"
  }'

Responses

Created

Bodyapplication/json
user_tokenstring

User_token of the user

Example:"wec23fh8cDfFV4432fc352456"
Response
{ "user_token": "wec23fh8cDfFV4432fc352456" }