OXENDRA

API Documentation

Oxendra API

Base URL: this host. All API responses are JSON. Payments are collected outside the API (Cash App / PayPal); shop purchases complete on Etsy.

Authentication

Send your key on every /api/* request:

X-API-Key: <your-api-key>

Contact akmor@muse.ai to request a key. (If no key is configured on the server, requests are accepted without one — review mode.)

Endpoints

Method & pathWhat it does
GET /api/servicesVideo-service catalog with exact prices, deposits, and payment terms; plus shop info.
GET /api/availabilityOpen production slots for the next 7 days (2 per day, America/Chicago).
POST /api/bookingsCreate a video-service booking. Returns a booking ID, the deposit due, and payment instructions.
GET /api/bookings/:idLook up a booking's status.
GET /api/products?q=coffeeSearch the Oxendra product feed (title/category match, up to 20 results).
GET /api/products/allThe full product feed with its count.
GET /api/local-servicesLocal-services categories customers can book (free for customers), plus the per-booking lead fees pros pay.
POST /api/service-requestsBook a local pro. Body: {category, customer_name, contact_email or contact_phone, zip_code, job_details, preferred_time?}. Returns a request ID; a network pro contacts the customer directly.
GET /api/service-requests/:idLook up a local-service request's status.
POST /api/pro-signupsPros join the network. Body: {business_name, category, service_area, contact_email, contact_phone?}. First delivered booking is free.

Example: create a booking

POST /api/bookings
X-API-Key: <your-api-key>
Content-Type: application/json

{
  "service": "first-video",
  "business_name": "Example Coffee Co.",
  "contact_email": "owner@example.com",
  "details": "30-second promo for our new location; clips coming by email."
}
201 Created
{
  "booking_id": "OX-…",
  "status": "received",
  "service": "first-video",
  "price": 35,
  "deposit_due": 17.5,
  "payment_instructions": "Pay via Cash App …",
  "next_steps": "…"
}

Example: search products

GET /api/products?q=coffee

{
  "query": "coffee",
  "count": 3,
  "results": [ { "title": "…", "price": 19.95,
                 "url": "https://www.etsy.com/listing/…", "category": "Mugs & Drinkware" } ],
  "note": "Prices/availability can lag the live Etsy listing; checkout happens on Etsy."
}

Errors

Errors are JSON: { "error": { "code": "…", "message": "…" } } with a standard HTTP status (400 invalid input, 401 bad/missing API key, 404 not found).