Skip to main content
POST
/
api
/
patients
curl -X POST "https://api.saludya.com/api/patients" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Sofia Rodriguez",
    "email": "sofia.rodriguez@email.com",
    "phone": "+1-555-0789",
    "date_of_birth": "1990-11-08",
    "medical_history": {
      "conditions": ["Asthma", "Type 2 Diabetes"],
      "allergies": ["Penicillin", "Peanuts"],
      "medications": ["Metformin 500mg", "Albuterol inhaler"],
      "blood_type": "A+"
    },
    "insurance": {
      "provider": "UnitedHealthcare",
      "policy_number": "UHC456789123",
      "group_number": "GRP-9922",
      "expiration_date": "2025-12-31"
    },
    "emergency_contact": {
      "name": "Carlos Rodriguez",
      "phone": "+1-555-0790",
      "relationship": "Spouse"
    }
  }'
{
  "id": "pat_3c4d5e6f7g8h",
  "name": "Sofia Rodriguez",
  "email": "sofia.rodriguez@email.com",
  "phone": "+1-555-0789",
  "date_of_birth": "1990-11-08",
  "medical_history": {
    "conditions": ["Asthma", "Type 2 Diabetes"],
    "allergies": ["Penicillin", "Peanuts"],
    "medications": ["Metformin 500mg", "Albuterol inhaler"],
    "blood_type": "A+"
  },
  "insurance": {
    "provider": "UnitedHealthcare",
    "policy_number": "UHC456789123",
    "group_number": "GRP-9922",
    "expiration_date": "2025-12-31"
  },
  "emergency_contact": {
    "name": "Carlos Rodriguez",
    "phone": "+1-555-0790",
    "relationship": "Spouse"
  },
  "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.

This endpoint creates records containing Protected Health Information (PHI). Ensure compliance with HIPAA regulations and proper data encryption.

Request Body

name
string
required
Patient’s full name
email
string
required
Patient’s email address (must be unique)
phone
string
required
Patient’s phone number in E.164 format (e.g., +1-555-0123)
date_of_birth
string
required
Patient’s date of birth in ISO 8601 format (YYYY-MM-DD)
medical_history
object
Patient’s medical history information
conditions
array
List of existing medical conditions
allergies
array
List of known allergies
medications
array
List of current medications
blood_type
string
Blood type (A+, A-, B+, B-, AB+, AB-, O+, O-)
insurance
object
Insurance information
provider
string
required
Insurance provider name
policy_number
string
required
Insurance policy number
group_number
string
Insurance group number
expiration_date
string
Insurance expiration date (YYYY-MM-DD)
emergency_contact
object
Emergency contact information
name
string
Contact person’s name
phone
string
Contact person’s phone number
relationship
string
Relationship to patient

Response

id
string
Unique patient identifier
name
string
Patient’s full name
email
string
Patient’s email address
phone
string
Patient’s phone number
date_of_birth
string
Patient’s date of birth
medical_history
object
Patient’s medical history
insurance
object
Insurance information
emergency_contact
object
Emergency contact information
created_at
string
Timestamp when patient was created
updated_at
string
Timestamp when patient was last updated
curl -X POST "https://api.saludya.com/api/patients" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Sofia Rodriguez",
    "email": "sofia.rodriguez@email.com",
    "phone": "+1-555-0789",
    "date_of_birth": "1990-11-08",
    "medical_history": {
      "conditions": ["Asthma", "Type 2 Diabetes"],
      "allergies": ["Penicillin", "Peanuts"],
      "medications": ["Metformin 500mg", "Albuterol inhaler"],
      "blood_type": "A+"
    },
    "insurance": {
      "provider": "UnitedHealthcare",
      "policy_number": "UHC456789123",
      "group_number": "GRP-9922",
      "expiration_date": "2025-12-31"
    },
    "emergency_contact": {
      "name": "Carlos Rodriguez",
      "phone": "+1-555-0790",
      "relationship": "Spouse"
    }
  }'
{
  "id": "pat_3c4d5e6f7g8h",
  "name": "Sofia Rodriguez",
  "email": "sofia.rodriguez@email.com",
  "phone": "+1-555-0789",
  "date_of_birth": "1990-11-08",
  "medical_history": {
    "conditions": ["Asthma", "Type 2 Diabetes"],
    "allergies": ["Penicillin", "Peanuts"],
    "medications": ["Metformin 500mg", "Albuterol inhaler"],
    "blood_type": "A+"
  },
  "insurance": {
    "provider": "UnitedHealthcare",
    "policy_number": "UHC456789123",
    "group_number": "GRP-9922",
    "expiration_date": "2025-12-31"
  },
  "emergency_contact": {
    "name": "Carlos Rodriguez",
    "phone": "+1-555-0790",
    "relationship": "Spouse"
  },
  "created_at": "2024-03-06T15:30:00Z",
  "updated_at": "2024-03-06T15:30:00Z"
}

Build docs developers (and LLMs) love