v50

latestOpenAPI 3.1.0raw.githubusercontent.com2026-03-211931021.7 MB
Staff Messages

Create a new Staff Message

OAuth Scope

This endpoint requires the following OAuth scope publish_messages.

Record UUID

UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the x-record-uuid response header.

post/staffmessage.json

Request body

from_staff_uuidstring uuid

Unique identifier (UUID) of the staff member who sent this message. Identifies the sender of the communication within the system.

to_staff_uuidstring uuid

Unique identifier (UUID) of the staff member who received this message. Identifies the intended recipient of the communication.

sent_timestampstring

The date and time when the message was sent. Format is YYYY-MM-DD HH:MM:SS. This field is automatically set to the current time when a new message is created.

delivered_timestampstring

The date and time when the message was delivered to the recipient's device. Format is YYYY-MM-DD HH:MM:SS. This field may be null if delivery confirmation is not available.

read_timestampstring

The date and time when the message was read by the recipient. Format is YYYY-MM-DD HH:MM:SS. This field may be null if the message has not been read or if read receipts are not available.

messagestring

The text content of the message. Supports Unicode characters for international language support. This field contains the actual message being sent between staff members.

regarding_job_uuidstring uuid

Unique identifier (UUID) of the job this message is related to. Optional field that links the message to a specific job for context. This field may be null if the message is not related to a specific job.

uuidstring uuid

Unique identifier for this record

attached_jsonstring

Example request

{
  "from_staff_uuid": "123e4567-db4b-4b67-9a3c-23f94d686a3b",
  "to_staff_uuid": "123e4567-36d3-4ea6-98b9-23f94cd98f0b",
  "sent_timestamp": "2026-03-01 12:00:00",
  "delivered_timestamp": "2026-03-01 12:00:00",
  "read_timestamp": "2026-03-01 12:00:00",
  "regarding_job_uuid": "123e4567-5251-474e-8fb8-23f9484328cb",
  "uuid": "123e4567-c00b-4d12-bc4d-23f941bae2eb"
}

Response

Success

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}