Create a session comment
Sessions
Create a session comment
Add an internal note (agent comment) to a session via the REST API. Notes are visible to agents in the inbox and never shown to the customer.
POST
Create a session comment
Internal notes
Session comments are internal notes: agents see them in the inbox, the customer never does. A comment can be anchored two ways:- Attached to a message — pass
thread_id, the UUID of the message being commented on. Message UUIDs come from Session History, where each event’sidis its message UUID. - Session-level — omit
thread_id. The note stands on its own in the session timeline, not attached to any message.
agent_id is the numeric ID of the team member authoring the note.
Retrieving comments
Comments are part of the session timeline, so there is no separate list endpoint. Use Session History and filter for events whereevent.type is human_agent_comment. Each one carries the author (human_agent_id), the text (content.text), and the thread it belongs to (comment_thread_id).
Deep linking
You can link agents straight to a message or note in the dashboard inbox:- To a message:
https://platform.open.cx/inbox/?s=<session_id>&h=<message_uuid> - To a comment on a message:
https://platform.open.cx/inbox/?s=<session_id>&thread=<thread_id>&comment=<comment_uuid>—thread_idis the message the comment is attached to, andcomment_uuidis theuuidreturned when the comment is created. - To a session-level comment:
https://platform.open.cx/inbox/?s=<session_id>&comment=<comment_uuid>&h=<comment_uuid>— the note is its own timeline row, sohtargets the note itself.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the chat session
Body
application/json
Message UUID to comment on
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Comment text content
Minimum string length:
1Agent user ID that authors the comment
Required range:
x <= 9007199254740991Response
Default Response
Available options:
agent_assigned_by_integration, agent_assigned_by_system, agent_assigned_by_user, agent_changed, agent_comment, agent_initiated_session, agent_joined, agent_message, agent_reopened_session, agent_took_session_from_ai, agent_unassigned_by_integration, agent_unassigned_by_system, agent_unassigned_by_user, ai_assumed_the_session_resolved, ai_decided_to_not_reply, ai_decided_to_resolve_the_issue, ai_reopened_session, ai_response_cancelled, ai_resumed_by_system, call_history, call_transferred, closed_resolved_by_agent, closed_resolved_by_api, closed_resolved_by_contact, closed_resolved_by_integration, closed_resolved_by_system, closed_unresolved_by_agent, closed_unresolved_by_api, closed_unresolved_by_system, contact_data_updated, csat_requested, csat_submitted, email_draft_message, handoff, handoff_to_salesforce_miaw, handoff_to_zendesk, integration_reopened_session, message, prohibited_topic_detected, salesforce_fields_updated, sequence_message, session_forwarded, skills_added_by_system, sla_applied_by_agent, sla_applied_by_system, sla_first_reply_breached, sla_first_reply_completed_after_breach, sla_first_reply_fulfilled, sla_first_reply_metric_started, sla_freezed_office_hours_ended, sla_freezed_snoozed, sla_next_reply_breached, sla_next_reply_completed_after_breach, sla_next_reply_fulfilled, sla_next_reply_metric_started, sla_removed_by_agent, sla_removed_by_system, sla_resolution_breached, sla_resolution_completed_after_breach, sla_resolution_fulfilled, sla_resolution_metric_started, sla_resolution_paused_resolved, sla_resolution_paused_waiting_on_customer, sla_resolution_resumed_customer_replied, sla_resolution_resumed_reopened, sla_resumed_office_hours_started, sla_resumed_snooze_cancelled, sla_resumed_snooze_expired, state_checkpoint, sub_session_created, sub_session_linked_by_agent, sub_session_linked_by_api, sub_session_linked_by_integration, sub_session_linked_by_system, sub_session_unlinked_by_agent, sub_session_unlinked_by_api, sub_session_unlinked_by_integration, sub_session_unlinked_by_system, sub_status_removed_by_agent, sub_status_removed_by_api, sub_status_removed_by_integration, sub_status_removed_by_system, sub_status_set_by_agent, sub_status_set_by_api, sub_status_set_by_integration, sub_status_set_by_system, system_reopened_session, tag_added_by_agent, tag_added_by_api, tag_added_by_integration, tag_added_by_system, tag_removed_by_agent, tag_removed_by_api, tag_removed_by_integration, tag_removed_by_system, team_assigned_by_integration, team_assigned_by_system, team_assigned_by_user, team_unassigned_by_integration, team_unassigned_by_system, team_unassigned_by_user, user_confirmed_the_session_resolved, workflow_message, workflow_note, workflow_triggered - Option 1
- Option 2
Available options:
csv, form, freshchat, hubspot, intercom, pipedream, salesforce, slack - Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7