Skip to main content
POST
/
api
/
doctors
curl -X POST "https://api.saludya.com/api/doctors" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Dr. Sarah Johnson",
    "specialty": "Pediatrics",
    "license_number": "MD-54321-NY",
    "email": "sarah.johnson@saludya.com",
    "phone": "+1-555-0199",
    "bio": "Board-certified pediatrician with 10 years of experience in child and adolescent care. Specialized in developmental pediatrics and preventive medicine.",
    "available": true
  }'
{
  "id": "doc_9a0b1c2d3e4f5g6h",
  "name": "Dr. Sarah Johnson",
  "specialty": "Pediatrics",
  "license_number": "MD-54321-NY",
  "email": "sarah.johnson@saludya.com",
  "phone": "+1-555-0199",
  "bio": "Board-certified pediatrician with 10 years of experience in child and adolescent care. Specialized in developmental pediatrics and preventive medicine.",
  "available": true,
  "created_at": "2024-03-06T15:30:00Z",
  "updated_at": "2024-03-06T15:30:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/DUVAN100/saludya-api/llms.txt

Use this file to discover all available pages before exploring further.

Request Body

name
string
required
Full name of the doctor (e.g., “Dr. Maria Garcia”)
specialty
string
required
Medical specialty or area of expertise (e.g., “Cardiology”, “Pediatrics”, “Dermatology”)
license_number
string
required
Professional medical license number. Must be unique in the system.
email
string
required
Doctor’s professional email address. Must be a valid email format.
phone
string
required
Contact phone number with country code (e.g., “+1-555-0123”)
bio
string
Professional biography, credentials, and areas of expertise. Maximum 1000 characters.
available
boolean
default:"true"
Whether the doctor is accepting new patients

Response

id
string
Unique identifier for the newly created doctor
name
string
Full name of the doctor
specialty
string
Medical specialty
license_number
string
Professional medical license number
email
string
Doctor’s contact email address
phone
string
Doctor’s contact phone number
bio
string
Professional biography
available
boolean
Availability status
created_at
string
ISO 8601 timestamp of creation
updated_at
string
ISO 8601 timestamp of last update
curl -X POST "https://api.saludya.com/api/doctors" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Dr. Sarah Johnson",
    "specialty": "Pediatrics",
    "license_number": "MD-54321-NY",
    "email": "sarah.johnson@saludya.com",
    "phone": "+1-555-0199",
    "bio": "Board-certified pediatrician with 10 years of experience in child and adolescent care. Specialized in developmental pediatrics and preventive medicine.",
    "available": true
  }'
{
  "id": "doc_9a0b1c2d3e4f5g6h",
  "name": "Dr. Sarah Johnson",
  "specialty": "Pediatrics",
  "license_number": "MD-54321-NY",
  "email": "sarah.johnson@saludya.com",
  "phone": "+1-555-0199",
  "bio": "Board-certified pediatrician with 10 years of experience in child and adolescent care. Specialized in developmental pediatrics and preventive medicine.",
  "available": true,
  "created_at": "2024-03-06T15:30:00Z",
  "updated_at": "2024-03-06T15:30:00Z"
}

Next Steps

After creating a doctor:
  1. Set up schedules - Use the Create Schedule endpoint to define the doctor’s available time slots
  2. View doctor details - Retrieve the doctor’s information using Get Doctor
  3. Enable appointments - Once schedules are configured, patients can book appointments with this doctor

Build docs developers (and LLMs) love