Create Task
Tasks
Create Task
Creates a task in the provider’s EMR system.
POST
Create Task
Documentation Index
Fetch the complete documentation index at: https://docs.usecobalt.com/llms.txt
Use this file to discover all available pages before exploring further.
Depending on the EMR system connected to the account, additional fields beyond the base required fields may be required. If a conditionally required field is missing, the API will return a
400 error specifying the missing field.Request Parameters
Required Fields
These fields are always required regardless of the connected EMR:- description (string, required): Task description/body content
- patient_mrn (string, required): Medical Record Number (MRN) of the patient
Conditionally Required Fields
Depending on the connected EMR, some combination of the following fields will also be required:- subject (string, conditionally required): Task title/subject line
- assignee_user_id (string, conditionally required): EMR user ID to assign the task to
- phone_call_type_id (string, conditionally required): Identifier for the phone call type
- notify_list (string[], optional): List of user identifiers to notify about the task. Must be an array of strings if provided.
Example Requests
- Example A
- Example B
Example Response
- task_id: Unique identifier for the created task record
- job_id: Job execution identifier for tracking the async operation
Error Responses
Missing Required Field
If a required or conditionally required field is missing, the API returns a400 with the specific field name:
User Not Found
Webhook Notifications
When the task processing is complete, we will send a webhook to your registered endpoint. Here are examples of what those webhook payloads will look like:Success
Failure
Authorizations
Body
application/json
Task description/body content
Medical Record Number (MRN) of the patient
Task title/subject line. Conditionally required depending on the connected EMR.
EMR user ID to assign the task to. Conditionally required depending on the connected EMR.
Identifier for the phone call type. Conditionally required depending on the connected EMR.
List of user identifiers to notify about the task. Optional.