v1

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

Authorize Online Booking User

When a user of an online account changes their password, their API key will change and a new authorization will be required

AttributeTypeDescription
loginstringThe visitor's phone number in the format +13155550175, or their email address.
passwordstringVisitor password
post/booking/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

idinteger

User ID

user_tokenstring

User_token of the user

namestring

Username

phonestring

User phone

loginstring

User login

emailstring

User mailing address

avatarstring

Path to the user's avatar file

Example response

{
  "id": 123456,
  "user_token": "wec23fh8cDfFV4432fc352456",
  "name": "James Smith",
  "phone": "+13155550175",
  "login": "j.smith",
  "email": "j.smith@example.com",
  "avatar": "https://assets.alteg.io/general/0/01/123456789098765_12345678909876.png"
}