Skip to main content
POST
Add an action to a telephone encounter

Request Parameters

Required Fields

  • appointment_id (string, required): The identifier of the telephone encounter to add the action to. This is not the “Ref #” shown in the EHR UI. Use one of the identifiers Cobalt provides — any of the following is accepted:
    • The telephone_encounter_id returned by POST /telephone-encounters when you created the encounter.
    • The emr_encounter_id from the telephone_encounter.created webhook payload.
    • The appointment id returned by the appointment fetch endpoints/webhooks (Cobalt resolves it to the underlying encounter).
  • text (string, required): The action text/note to add to the telephone encounter log

How It Works

When you add an action to a telephone encounter:
  1. Formatting: The action is automatically formatted with the staff member’s name, timestamp, and timezone
  2. Appending: The formatted action is appended to the existing action log in the telephone encounter
  3. Timestamping: Each action includes the exact date, time, and timezone when it was added

Example Request

Example Response

Response Fields

  • success (boolean): Indicates if the request was accepted for processing
  • message (string): Confirmation message
  • action_id (string): Unique identifier for the action record (32-character hex string)
  • job_id (integer): Reference to the job that will process this action

Webhook Events

You’ll receive a webhook when the action is processed:

Success Event

Authorizations

client_id
string
header
required
client_secret
string
header
required
access_token
string
header
required

Body

application/json
text
string
required

Action text (the note/message to add to the encounter).

Example:

"Called patient; left a message about their results."

appointment_id
string

Cobalt appointment ID of the telephone encounter to act on (UUID, with or without dashes).

Example:

"a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4"

emr_appointment_id
string

Legacy alias for appointment_id, still accepted for existing integrations.

Example:

"appt-emr-789"

is_high_priority
string

Whether the action is high priority. One of: "true", "false".

Example:

"false"

callback_urls
string[]

URLs to receive the completion webhook for this action, in addition to the account webhook.

Example:

Response

Telephone encounter action queued for creation

success
boolean
required
message
string
required
action_id
string
required
job_id
required