Authentication
Bearer token authentication
Authorization: Bearer {token}
Base URL
All API requests start with
https://api.beautyos.com/v1
Rate Limiting
1000 requests per minute
X-RateLimit-Reset: 1640995200
Authentication
/api/v1/auth/login
Login to the API
/api/v1/auth/register
Register a new user
/api/v1/auth/logout
Auth required
Logout from the API
/api/v1/auth/user
Auth required
Get authenticated user details
Clients
/api/v1/clients
Auth required
List all clients
/api/v1/clients
Auth required
Create a new client
/api/v1/clients/{id}
Auth required
Get a specific client
/api/v1/clients/{id}
Auth required
Update a client
/api/v1/clients/{id}
Auth required
Delete a client
/api/v1/clients/{id}/history
Auth required
Get client appointment history
Appointments
/api/v1/appointments
Auth required
List all appointments
/api/v1/appointments
Auth required
Create a new appointment
/api/v1/appointments/{id}
Auth required
Get a specific appointment
/api/v1/appointments/{id}
Auth required
Update an appointment
/api/v1/appointments/{id}
Auth required
Delete an appointment
/api/v1/appointments/calendar
Auth required
Get calendar view of appointments
Staff
/api/v1/staff
Auth required
List all staff
/api/v1/staff
Auth required
Create a new staff member
/api/v1/staff/{id}
Auth required
Get a specific staff member
/api/v1/staff/{id}
Auth required
Update a staff member
/api/v1/staff/{id}
Auth required
Delete a staff member
Services
/api/v1/services
Auth required
List all services
/api/v1/services
Auth required
Create a new service
/api/v1/services/{id}
Auth required
Get a specific service
/api/v1/services/{id}
Auth required
Update a service
/api/v1/services/{id}
Auth required
Delete a service
POS & Transactions
/api/v1/pos/transaction
Auth required
Process a POS transaction
/api/v1/transactions
Auth required
List all transactions
/api/v1/transactions/{id}
Auth required
Get a specific transaction
/api/v1/transactions/{id}/void
Auth required
Void a transaction
Inventory
/api/v1/products
Auth required
List all products
/api/v1/products
Auth required
Create a new product
/api/v1/products/{id}
Auth required
Get a specific product
/api/v1/products/{id}
Auth required
Update a product
/api/v1/products/{id}
Auth required
Delete a product
/api/v1/inventory/low-stock
Auth required
Get low stock alerts
Marketing
/api/v1/marketing/sms
Auth required
Send an SMS campaign
/api/v1/marketing/whatsapp
Auth required
Send a WhatsApp broadcast
/api/v1/marketing/campaigns
Auth required
List all campaigns
/api/v1/marketing/campaigns/{id}
Auth required
Get a specific campaign
Reports
/api/v1/reports/revenue
Auth required
Get revenue reports
/api/v1/reports/commission
Auth required
Get commission reports
/api/v1/reports/staff-performance
Auth required
Get staff performance reports
/api/v1/reports/client-retention
Auth required
Get client retention reports
/api/v1/reports/inventory
Auth required
Get inventory reports
Authentication Example
curl -X POST https://api.beautyos.com/v1/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "admin@beautyos.com",
"password": "your_password"
}'
# Response
{
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"token_type": "Bearer",
"expires_in": 3600,
"user": {
"id": 1,
"name": "Admin User",
"email": "admin@beautyos.com"
}
}
Ready to Build Something Amazing?
Get your API keys and start building integrations today