> 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/update-a-message.md).

# Update a Message

## Acknowledge a Message

> Mark a message as acknowledged. Pass the message ID as a path parameter.

```json
{"openapi":"3.0.3","info":{"title":"Answering Service Care API","version":"1.0.0"},"tags":[{"name":"Update a Message"}],"servers":[{"url":"https://secure.answeringservicecare.com","description":"Answering Service Care host"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API token","description":"Answering Service Care uses bearer token authentication. Generate API tokens from your user profile under **Application Keys**."}},"schemas":{"MessageEnvelope":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Message"}}},"Message":{"type":"object","description":"A message record. Retained for 180+ days per privacy policy. Custom fields appear alongside standard fields with the prefix `content_with_additional_details_table__{labelName}`.","properties":{"id":{"type":"integer"},"read":{"type":"boolean"},"phone_number":{"type":"string"},"extension":{"type":"string"},"caller_id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"company_name":{"type":"string"},"content":{"type":"string"},"status":{"type":"string","enum":["new","delivered","archived","acknowledged"]},"account_id":{"type":"integer"},"agent_id":{"type":"integer"},"user_id":{"type":"integer","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"ivr":{"type":"string"},"pickup_date":{"type":"string","format":"date-time","nullable":true},"pickup_user_id":{"type":"integer","nullable":true},"contact_id":{"type":"integer"},"delivered_at":{"type":"string","format":"date-time"},"delivered_by":{"type":"integer"},"delivered_to":{"type":"integer","nullable":true},"phone":{"type":"string"},"email":{"type":"string"},"call_ref_id":{"type":"string"},"sale_id":{"type":"integer","nullable":true},"note":{"type":"string"},"did_id":{"type":"integer"},"address":{"type":"string"},"address2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"how_you_hear_about_us":{"type":"string"},"is_emergency":{"type":"boolean"},"alt_phone":{"type":"string"},"positive_data_dip":{"type":"boolean"},"answers":{"type":"object","additionalProperties":true,"description":"Form answers submitted with the message."},"escalation_level_id":{"type":"integer"},"next_escalation_at":{"type":"string","format":"date-time","nullable":true},"receiver_name":{"type":"string"},"non_message_type":{"type":"string","description":"Set when the entry is not a true message. Standard values are `hang_up`, `wrong_number`, `caller_did_not_leave_message` and `training`. Accounts may define additional dispositions, so treat this as an open set."},"activities_count":{"type":"integer"},"closing_action_group_id":{"type":"integer"},"email_subject":{"type":"string"},"escalation_counter":{"type":"integer"},"origin":{"type":"string","nullable":true,"description":"Channel the message came from. `AI_SMS` and `AI_CALL` mark the message as handled by the AI assistant.","enum":["CALL","SMS","CHAT","TO_DO","AI_SMS","AI_CALL",null]},"message_received_date":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"call_id":{"type":"integer","nullable":true},"chat_session_id":{"type":"integer","nullable":true},"to_do_task_id":{"type":"integer","nullable":true},"from_to_do":{"type":"boolean"},"send_at":{"type":"string","format":"date-time","nullable":true},"uuid":{"type":"string","format":"uuid"},"klass_names":{"type":"string"}}},"ErrorSimple":{"type":"object","description":"Compact error response (used for 401/422/400).","properties":{"error":{"type":"string"}}},"ErrorDetailed":{"type":"object","description":"Verbose error response (used for invalid token / 404).","properties":{"success":{"type":"boolean"},"info":{"type":"string"},"data":{"type":"object","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Missing or invalid bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorSimple"}}}},"NotFoundInvalidToken":{"description":"Invalid API token or resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetailed"}}}}}},"paths":{"/api/v2/messages/{id}/acknowledge":{"patch":{"summary":"Acknowledge a Message","description":"Mark a message as acknowledged. Pass the message ID as a path parameter.","tags":["Update a Message"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageEnvelope"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFoundInvalidToken"}}}}}}
```

## Mark a Message as Read

> Mark a message as read. Pass the message ID as a path parameter.

```json
{"openapi":"3.0.3","info":{"title":"Answering Service Care API","version":"1.0.0"},"tags":[{"name":"Update a Message"}],"servers":[{"url":"https://secure.answeringservicecare.com","description":"Answering Service Care host"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API token","description":"Answering Service Care uses bearer token authentication. Generate API tokens from your user profile under **Application Keys**."}},"schemas":{"MessageEnvelope":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Message"}}},"Message":{"type":"object","description":"A message record. Retained for 180+ days per privacy policy. Custom fields appear alongside standard fields with the prefix `content_with_additional_details_table__{labelName}`.","properties":{"id":{"type":"integer"},"read":{"type":"boolean"},"phone_number":{"type":"string"},"extension":{"type":"string"},"caller_id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"company_name":{"type":"string"},"content":{"type":"string"},"status":{"type":"string","enum":["new","delivered","archived","acknowledged"]},"account_id":{"type":"integer"},"agent_id":{"type":"integer"},"user_id":{"type":"integer","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"ivr":{"type":"string"},"pickup_date":{"type":"string","format":"date-time","nullable":true},"pickup_user_id":{"type":"integer","nullable":true},"contact_id":{"type":"integer"},"delivered_at":{"type":"string","format":"date-time"},"delivered_by":{"type":"integer"},"delivered_to":{"type":"integer","nullable":true},"phone":{"type":"string"},"email":{"type":"string"},"call_ref_id":{"type":"string"},"sale_id":{"type":"integer","nullable":true},"note":{"type":"string"},"did_id":{"type":"integer"},"address":{"type":"string"},"address2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"how_you_hear_about_us":{"type":"string"},"is_emergency":{"type":"boolean"},"alt_phone":{"type":"string"},"positive_data_dip":{"type":"boolean"},"answers":{"type":"object","additionalProperties":true,"description":"Form answers submitted with the message."},"escalation_level_id":{"type":"integer"},"next_escalation_at":{"type":"string","format":"date-time","nullable":true},"receiver_name":{"type":"string"},"non_message_type":{"type":"string","description":"Set when the entry is not a true message. Standard values are `hang_up`, `wrong_number`, `caller_did_not_leave_message` and `training`. Accounts may define additional dispositions, so treat this as an open set."},"activities_count":{"type":"integer"},"closing_action_group_id":{"type":"integer"},"email_subject":{"type":"string"},"escalation_counter":{"type":"integer"},"origin":{"type":"string","nullable":true,"description":"Channel the message came from. `AI_SMS` and `AI_CALL` mark the message as handled by the AI assistant.","enum":["CALL","SMS","CHAT","TO_DO","AI_SMS","AI_CALL",null]},"message_received_date":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"call_id":{"type":"integer","nullable":true},"chat_session_id":{"type":"integer","nullable":true},"to_do_task_id":{"type":"integer","nullable":true},"from_to_do":{"type":"boolean"},"send_at":{"type":"string","format":"date-time","nullable":true},"uuid":{"type":"string","format":"uuid"},"klass_names":{"type":"string"}}},"ErrorSimple":{"type":"object","description":"Compact error response (used for 401/422/400).","properties":{"error":{"type":"string"}}},"ErrorDetailed":{"type":"object","description":"Verbose error response (used for invalid token / 404).","properties":{"success":{"type":"boolean"},"info":{"type":"string"},"data":{"type":"object","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Missing or invalid bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorSimple"}}}},"NotFoundInvalidToken":{"description":"Invalid API token or resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetailed"}}}}}},"paths":{"/api/v2/messages/{id}/mark-as-read":{"patch":{"summary":"Mark a Message as Read","description":"Mark a message as read. Pass the message ID as a path parameter.","tags":["Update a Message"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageEnvelope"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFoundInvalidToken"}}}}}}
```

## Mark a Message as Unread

> Mark a message as unread. Pass the message ID as a path parameter.

```json
{"openapi":"3.0.3","info":{"title":"Answering Service Care API","version":"1.0.0"},"tags":[{"name":"Update a Message"}],"servers":[{"url":"https://secure.answeringservicecare.com","description":"Answering Service Care host"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API token","description":"Answering Service Care uses bearer token authentication. Generate API tokens from your user profile under **Application Keys**."}},"schemas":{"MessageEnvelope":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Message"}}},"Message":{"type":"object","description":"A message record. Retained for 180+ days per privacy policy. Custom fields appear alongside standard fields with the prefix `content_with_additional_details_table__{labelName}`.","properties":{"id":{"type":"integer"},"read":{"type":"boolean"},"phone_number":{"type":"string"},"extension":{"type":"string"},"caller_id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"company_name":{"type":"string"},"content":{"type":"string"},"status":{"type":"string","enum":["new","delivered","archived","acknowledged"]},"account_id":{"type":"integer"},"agent_id":{"type":"integer"},"user_id":{"type":"integer","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"ivr":{"type":"string"},"pickup_date":{"type":"string","format":"date-time","nullable":true},"pickup_user_id":{"type":"integer","nullable":true},"contact_id":{"type":"integer"},"delivered_at":{"type":"string","format":"date-time"},"delivered_by":{"type":"integer"},"delivered_to":{"type":"integer","nullable":true},"phone":{"type":"string"},"email":{"type":"string"},"call_ref_id":{"type":"string"},"sale_id":{"type":"integer","nullable":true},"note":{"type":"string"},"did_id":{"type":"integer"},"address":{"type":"string"},"address2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"how_you_hear_about_us":{"type":"string"},"is_emergency":{"type":"boolean"},"alt_phone":{"type":"string"},"positive_data_dip":{"type":"boolean"},"answers":{"type":"object","additionalProperties":true,"description":"Form answers submitted with the message."},"escalation_level_id":{"type":"integer"},"next_escalation_at":{"type":"string","format":"date-time","nullable":true},"receiver_name":{"type":"string"},"non_message_type":{"type":"string","description":"Set when the entry is not a true message. Standard values are `hang_up`, `wrong_number`, `caller_did_not_leave_message` and `training`. Accounts may define additional dispositions, so treat this as an open set."},"activities_count":{"type":"integer"},"closing_action_group_id":{"type":"integer"},"email_subject":{"type":"string"},"escalation_counter":{"type":"integer"},"origin":{"type":"string","nullable":true,"description":"Channel the message came from. `AI_SMS` and `AI_CALL` mark the message as handled by the AI assistant.","enum":["CALL","SMS","CHAT","TO_DO","AI_SMS","AI_CALL",null]},"message_received_date":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"call_id":{"type":"integer","nullable":true},"chat_session_id":{"type":"integer","nullable":true},"to_do_task_id":{"type":"integer","nullable":true},"from_to_do":{"type":"boolean"},"send_at":{"type":"string","format":"date-time","nullable":true},"uuid":{"type":"string","format":"uuid"},"klass_names":{"type":"string"}}},"ErrorSimple":{"type":"object","description":"Compact error response (used for 401/422/400).","properties":{"error":{"type":"string"}}},"ErrorDetailed":{"type":"object","description":"Verbose error response (used for invalid token / 404).","properties":{"success":{"type":"boolean"},"info":{"type":"string"},"data":{"type":"object","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Missing or invalid bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorSimple"}}}},"NotFoundInvalidToken":{"description":"Invalid API token or resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetailed"}}}}}},"paths":{"/api/v2/messages/{id}/mark-as-unread":{"patch":{"summary":"Mark a Message as Unread","description":"Mark a message as unread. Pass the message ID as a path parameter.","tags":["Update a Message"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageEnvelope"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFoundInvalidToken"}}}}}}
```


---

# 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/update-a-message.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.
