Api Docs

Webhook & API Integration

Connect your existing website, Wix, WordPress, or custom app to VetN'Pet HMS

🔑

1. Get your API Key

After signup, find your clinic_id and API key in Clinic Settings

🔗

2. Send events to HMS

POST appointments, patient registrations, and queries from your site

📡

3. Receive HMS events

Register a callback URL to get real-time updates from the HMS

Authentication

All API requests require two headers:

X-Clinic-ID: CLN-ABC123
X-API-Key: your_secret_api_key_here
Content-Type: application/json

Find your Clinic ID and API Key in Clinic Settings → API Access after onboarding.

POSThttps://vet.workautomation.app/api/webhook/appointments

Receive new appointment bookings from your external website into the HMS

Request Body

{
  "clinic_id": "CLN-ABC123",
  "patient_name": "Bruno",
  "species": "Dog",
  "owner_name": "Rakesh Sharma",
  "owner_phone": "9876543210",
  "owner_email": "rakesh@email.com",
  "service_type": "Consultation",
  "preferred_date": "2025-06-01",
  "preferred_time": "10:00",
  "notes": "Limping on left leg"
}

Response

{
  "success": true,
  "appointment_id": "APT-2025-001",
  "status": "confirmed",
  "message": "Appointment booked. Confirmation sent to owner."
}

Embed Booking Widget

Paste this snippet into any webpage (Wix, WordPress, custom HTML) to add a booking widget that feeds directly into your HMS:

<!-- VetN'Pet HMS Booking Widget -->
<div id="vetnpet-widget"></div>
<script>
  window.VETNPET_CONFIG = {
    clinic_id: "CLN-ABC123",
    api_key: "your_api_key_here",
    theme: "light",           // "light" or "dark"
    accent_color: "#059669",  // your brand color
    services: ["Consultation","Vaccination","Grooming","Surgery"],
  };
</script>
<script src="https://vet.workautomation.app/widget.js" async></script>