Skip to content
Treatlly
API & Integrations

API Overview & Authentication

Getting started with the Treatlly API — authentication, endpoints, and rate limits.

Updated 2 minutes ago · 28 views

API Overview & Authentication

Available APIs

Treatlly provides two API sets:

  • Public API (/api/v1/) — For third-party integrations and custom frontends
  • Mobile API (/mobile/v1/) — Optimized for mobile app development

Authentication

All API requests require authentication:

  • API Keys — Generated from your admin dashboard for server-to-server calls
  • OTP Authentication — For patient-facing mobile apps

Key Endpoints

EndpointDescription
GET /api/v1/doctorsList doctors
GET /api/v1/slotsAvailable slots for a doctor (supports consultation_mode filter)
POST /api/v1/appointmentsCreate an appointment
GET /mobile/v1/profilePatient profile
GET /mobile/v1/appointmentsPatient appointments (includes teleconsultation info)
GET /mobile/v1/slotsAvailable slots for mobile booking

Rate Limiting

  • 100 requests per minute per API key
  • Rate limit headers included in responses
  • 429 status returned when exceeded

API Key Management

  1. Go to Settings → API Access
  2. Click Generate New Key
  3. Enter a description and copy the key (shown once)
  4. Store securely — you can revoke keys if compromised

Best Practices

  • Always use HTTPS
  • Handle rate limits gracefully with exponential backoff
  • Cache responses where appropriate
  • Use idempotency keys for payment-related endpoints
Was this helpful?
Share:

Still need help?

If this article didn't answer your question, our support team is ready to assist.

Request More Help