REST API Reference v1.0
Base URL: https://booking.pynath.com/api/v1
curl -X GET "https://booking.pynath.com/api/v1/bookings?limit=10" \ -H "Authorization: Bearer pyn_live_98a72b3c4d5e" \ -H "Content-Type: application/json"
Available Endpoints
GET
/api/v1/bookingsRetrieve a paginated list of all bookings. Returns the most recent appointments first.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number |
| limit | integer | Records per page (Max 100) |
| status | string | Filter by status (e.g. CONFIRMED) |
| serviceId | string | Filter by specific service UUID |
POST
/api/v1/bookingsProgrammatically create a new appointment for a service. Automatically checks availability and updates real-time counters.
GET
/api/v1/servicesRetrieve all active service offerings configured in your business catalog.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| page | integer | |
| limit | integer |
GET
/api/v1/customersRetrieve a paginated list of all customer profiles in your system.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| page | integer | |
| limit | integer |