REST API
Use the REST API to connect your own system:
typescript
const response = await fetch('/api/v1/bookings', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
customerId: 'cust_xxx',
serviceId: 'svc_xxx',
dateTime: '2024-01-15T10:00:00Z',
}),
});