Skip to content

API Tester

Test API endpoints directly from this documentation — no external tools required

Getting Started

How to Use

  1. Select Method — GET, POST, PUT, PATCH, or DELETE
  2. Enter Endpoint — e.g., /bookings or /bookings/bk_123
  3. Add Headers — Add Authorization header
  4. Enter Body — For POST/PUT/PATCH requests
  5. Click Send — Wait for results

Example Request

bash
# GET all bookings
GET /bookings

# GET single booking
GET /bookings/bk_123456

# POST new booking
POST /bookings
{
  "customerId": "cust_123",
  "serviceId": "svc_456",
  "staffId": "staff_789",
  "dateTime": "2024-01-15T10:00:00Z"
}

Try It Now


Authentication

Before You Start

You need an API Key before using the API Tester:

  1. Go to Settings > API Keys
  2. Click Create New Key
  3. Set a name and select the desired permissions
  4. Copy the Key and store it securely

Enter API Key

Enter your API Key in the Authorization Token field:

Bearer sk_test_REDACTED

Common Examples

Get Bookings List

SettingValue
MethodGET
Endpoint/bookings
HeadersAuthorization: Bearer YOUR_KEY

Create a New Booking

SettingValue
MethodPOST
Endpoint/bookings
HeadersAuthorization: Bearer YOUR_KEY
Content-Type: application/json
Body{ "customerId": "cust_123", "serviceId": "svc_456", "staffId": "staff_789", "dateTime": "2024-01-15T10:00:00Z" }

Update Booking Status

SettingValue
MethodPATCH
Endpoint/bookings/bk_123456
HeadersAuthorization: Bearer YOUR_KEY
Content-Type: application/json
Body{ "status": "confirmed" }

Cancel a Booking

SettingValue
MethodDELETE
Endpoint/bookings/bk_123456?reason=customer_request
HeadersAuthorization: Bearer YOUR_KEY

Response Codes

CodeMeaningWhen
200OKData retrieved successfully
201CreatedData created successfully
204No ContentData deleted successfully
400Bad RequestInvalid data
401UnauthorizedInvalid API Key
404Not FoundData not found
422UnprocessableValidation error
429Too Many RequestsRate limit exceeded
500Server ErrorInternal server error

Tips & Tricks

Debugging

  1. Check JSON — Verify that JSON syntax is correct
  2. Check Status Code — See if the request succeeded
  3. Check Response Time — If very slow, there may be a network issue

Avoiding Common Issues

Common issues:

1. CORS Error
   - Use the API via Server, not Browser

2. Token Expired
   - Create a new Key and try again

3. Rate Limit
   - Wait 1 minute and try again

4. Invalid JSON
   - Double-check syntax

Released under the MIT License.