Skip to main content
POST
Create a task

Authorizations

Authorization
string
header
required

Marketplace API key

Headers

idempotency-key
string

Client-generated key protecting retries for 24 hours

X-Organization-Id
string
required

Target clinic organization ID

Body

application/json
notes
string
required

Task description / notes

Example:

"Review missing plan for Impression #3: Irritant Contact Dermatitis"

noteId
string

Note (visit) to attach the task to. Send exactly one of noteId or patientId.

Example:

"nte_3cc73cb69c59403ca9108af6c5693b25"

patientId
string

Patient whose chart the task goes on, with no visit. Send exactly one of noteId or patientId.

Example:

"pat_8de030393a9e417ab2b3a8b8df183631"

providerId
string

Provider whose EHR login creates the task. Required with noteId; optional with patientId.

Example:

"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a"

assigneeIds
string[]

Provider IDs to assign the task to

Example:
assigneeGroupIds
string[]

EHR staff-group ids from GET /tasks/assignee-groups (e.g. the practice's Billing group). Patient tasks only.

Example:
type
string

EHR task type, using the EHR's own enum name (ModMed: REVIEW, OBTAIN, COMMUNICATION, …). Omitted: REVIEW. Patient tasks only.

Example:

"OBTAIN"

details
string

EHR task details label (ModMed: INSURANCE, …). Omitted: Normal. Patient tasks only.

Example:

"INSURANCE"

priority
enum<string>

Omitted: NORMAL. Patient tasks only.

Available options:
NORMAL,
HIGH
Example:

"NORMAL"

dueDate
string

Due date (YYYY-MM-DD), today or later. Patient tasks only, on EHRs whose GET /tasks/capabilities reports dueDate; elsewhere 400 capability_unsupported.

Example:

"2026-11-13"

Response

Success

code
string
required

Response code

Example:

"success"

data
object
required