> For the complete documentation index, see [llms.txt](https://answeringservicecare.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://answeringservicecare.com/docs/api-reference/user-portal-apis/messages.md).

# Messages

The **Messages** API is how external systems send, receive, and manage communications that flow through Answering Service Care — chats, AI-generated responses, call-origin notes, and operator messages all live here as unified message objects.

Messages are created by agents and stored on your account. Each message consists of standard data fields and can also contain custom fields, which appear alongside standard fields with the prefix `content_with_additional_details_table__{labelName}`.

> **Retention:** Messages are retained for **180+ days** in line with our privacy and data > retention policy. Older messages may not be retrievable.

#### What you can do

* **List** every message visible to the authenticated user, with optional filters for origin (`CALL`, `SMS`, `CHAT`, `TO_DO`, `AI_SMS`, `AI_CALL`), delivery status, date range (`from_date` / `to_date` in `MM-DD-YYYY`), and page size.
* **Retrieve** a single message by ID, including its linked call recording if one exists.
* **Send** a new message on behalf of an account, AI agent, or escalation thread.
* **Update** a message's state — acknowledge it, or flip its read/unread status — useful for clearing inboxes programmatically or syncing read state with an external CRM.

#### Common use cases

* Pulling a day's worth of messages into a reporting warehouse.
* Sending AI-generated summaries back into Answering Service Care from an external workflow.
* Marking messages handled once an external ticket is closed.

Every message carries an `account_id`, `agent_id`, `contact_id`, and many optional fields (address, phone, email, escalation metadata, form answers) so you can cleanly attribute it to a customer account and upstream context.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://answeringservicecare.com/docs/api-reference/user-portal-apis/messages.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
