curl --request POST \
--url https://api.decodahealth.com/calendar/self-schedule/appointment \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"serviceId": "<string>",
"organizerId": "<string>",
"providerId": "<string>",
"locationId": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>",
"cancelEventId": "<string>"
}
'{
"id": "<string>",
"title": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"type": "APPOINTMENT",
"status": "PENDING",
"organizer": {
"id": "<string>",
"type": "PROVIDER",
"firstName": "<string>",
"lastName": "<string>",
"phoneNumber": "<string>",
"email": "<string>",
"locationId": "<string>"
},
"location": {
"id": "<string>",
"isVirtual": true,
"name": "<string>",
"addressLineOne": "<string>",
"addressLineTwo": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"country": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"spakinectLocationId": "<string>"
},
"attendees": [],
"recurringEventId": "<string>",
"recurringEvent": {
"id": "<string>",
"rrule": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"durationMinutes": 123,
"timezone": "<string>",
"type": "APPOINTMENT",
"title": "<string>",
"organizerId": "<string>",
"serviceIds": [
"<string>"
],
"capacity": 123,
"attendeeIds": [
"<string>"
],
"locationId": "<string>"
},
"eventServices": [],
"icons": [],
"capacity": 123,
"meetingLink": "<string>",
"locationId": "<string>",
"formCompleted": true,
"reminders": [],
"recurrenceModificationMode": "this",
"createdDate": "2023-11-07T05:31:56Z",
"quickNotes": [
{
"id": "<string>",
"patientId": "<string>",
"note": "<string>",
"creator": {
"id": "<string>",
"type": "PROVIDER",
"firstName": "<string>",
"lastName": "<string>",
"phoneNumber": "<string>",
"email": "<string>",
"locationId": "<string>"
},
"createdDate": "2023-11-07T05:31:56Z",
"eventId": "<string>",
"updatedDate": "2023-11-07T05:31:56Z",
"isArchived": false
}
]
}curl --request POST \
--url https://api.decodahealth.com/calendar/self-schedule/appointment \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"serviceId": "<string>",
"organizerId": "<string>",
"providerId": "<string>",
"locationId": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>",
"cancelEventId": "<string>"
}
'{
"id": "<string>",
"title": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"type": "APPOINTMENT",
"status": "PENDING",
"organizer": {
"id": "<string>",
"type": "PROVIDER",
"firstName": "<string>",
"lastName": "<string>",
"phoneNumber": "<string>",
"email": "<string>",
"locationId": "<string>"
},
"location": {
"id": "<string>",
"isVirtual": true,
"name": "<string>",
"addressLineOne": "<string>",
"addressLineTwo": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"country": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"spakinectLocationId": "<string>"
},
"attendees": [],
"recurringEventId": "<string>",
"recurringEvent": {
"id": "<string>",
"rrule": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"durationMinutes": 123,
"timezone": "<string>",
"type": "APPOINTMENT",
"title": "<string>",
"organizerId": "<string>",
"serviceIds": [
"<string>"
],
"capacity": 123,
"attendeeIds": [
"<string>"
],
"locationId": "<string>"
},
"eventServices": [],
"icons": [],
"capacity": 123,
"meetingLink": "<string>",
"locationId": "<string>",
"formCompleted": true,
"reminders": [],
"recurrenceModificationMode": "this",
"createdDate": "2023-11-07T05:31:56Z",
"quickNotes": [
{
"id": "<string>",
"patientId": "<string>",
"note": "<string>",
"creator": {
"id": "<string>",
"type": "PROVIDER",
"firstName": "<string>",
"lastName": "<string>",
"phoneNumber": "<string>",
"email": "<string>",
"locationId": "<string>"
},
"createdDate": "2023-11-07T05:31:56Z",
"eventId": "<string>",
"updatedDate": "2023-11-07T05:31:56Z",
"isArchived": false
}
]
}The tenant you are making this request on behalf of
Your api key
Successful Response
APPOINTMENT, SHIFT, BLOCK PENDING, RESERVED, CONFIRMED, CANCELLED, COMPLETED, OVERRIDABLE, NO_SHOW Show child attributes
The unique identifier for the user.
The type of user.
PROVIDER, PATIENT, ASSISTANT The user's first name.
The user's last name.
The user's phone number.
The user's email address.
The location of the user.
Show child attributes
Show child attributes
Show child attributes
The unique identifier for the user.
The type of user.
PROVIDER, PATIENT, ASSISTANT The user's first name.
The user's last name.
The user's phone number.
The user's email address.
The location of the user.
PENDING, ACCEPTED, REJECTED Show child attributes
APPOINTMENT, SHIFT, BLOCK Show child attributes
Show child attributes
ALL, NEW, EXISTING, NO AMPOULES, APPLICATORS, BOTTLES, BOXES, CAPSULES, CUPS, DOSES, G_PER_ML, GRAMS, IU, IU_PER_ML, OUNCES, FLUID_OUNCES, KG, KITS, LITERS, MCG, MG, MG_PER_ML, ML, MMOL, MICROGRAM_PER_ML, PACKS, PAIRS, PATCHES, PERCENTAGE, PIECES, POUCHES, ROLLS, SACHETS, SHEETS, SPRAYS, STRIPS, SYRINGES, TABLETS, TABLETS_PER_DAY, TESTS, TUBES, UNITS, VIALS, TREATMENTS, SESSIONS, PULSES, JOULES, CENTIMETERS, THREAD_COUNT, INJECTIONS, WRINKLE_UNITS, POUNDS, FEET, INCHES BOOKING_FEE_PAID, NEW_PATIENT, SCHEDULED_BY_AI, FORM_COMPLETED, CHECKED_IN Enum representing the different modes for handling recurring event modifications Used when modifying recurring events to specify which occurrences should be affected
this, future, all Show child attributes
Show child attributes
The unique identifier for the user.
The type of user.
PROVIDER, PATIENT, ASSISTANT The user's first name.
The user's last name.
The user's phone number.
The user's email address.
The location of the user.