v1

latestOpenAPI 3.1.1Altegio API Agreement2026-08-062438211.0 KB
Authentication B2C

Log in with phone number and code

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.

post/user/auth

Headers

Acceptstring required

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

Content-Typestring required

application/json

Authorizationstring required

Bearer partner_token

Request body

loginstring required

Phone number or Email

passwordstring required

Password

Example request

{
  "login": "testuser@alteg.io",
  "password": "testpass"
}

Response

Created

user_tokenstring

User_token of the user

Example response

{
  "user_token": "wec23fh8cDfFV4432fc352456"
}