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

# Get a Message

## Get a Message by ID

> Retrieve a single message by its unique ID. 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":"Get 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}":{"get":{"summary":"Get a Message by ID","description":"Retrieve a single message by its unique ID. Pass the message ID as a path parameter.","tags":["Get 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"}}}}}}
```

## Get a Message's Call Recording

> Returns the call recording for a message, in the same format as Get a Call Recording, with \`message\_id\`, \`message\_uuid\`, and \`message\_url\` for that message. Returns \`401\` if you do not have call recording access on the message's account, and \`404\` if the message is not found or has no recording.

```json
{"openapi":"3.0.3","info":{"title":"Answering Service Care API","version":"1.0.0"},"tags":[{"name":"Get 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":{"CallRecordingEnvelope":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CallRecording"}}},"CallRecording":{"type":"object","description":"A call recording with the details the client portal shows for it. The message fields appear only when a message was taken on the call.","required":["id","call_id","unique_call_id","account_id","account_number","did_number","from","call_type","started_at","billable_minutes","ai_minutes","agent_name","recording"],"properties":{"id":{"type":"integer","description":"The recording's ID."},"call_id":{"type":"integer","description":"The call's ID."},"unique_call_id":{"type":"integer","nullable":true,"description":"The Unique Call ID shown for this call in your call report. Null when the call has no call report entry."},"account_id":{"type":"integer","description":"The account the call belongs to."},"account_number":{"type":"string","description":"The account number."},"did_number":{"type":"string","description":"Your phone number on the call."},"from":{"type":"string","description":"The calling number."},"call_type":{"type":"string","description":"`InboundCall` or `OutboundCall`."},"started_at":{"type":"string","format":"date-time","description":"When the recording started."},"billable_minutes":{"type":"number","nullable":true,"description":"Minutes for this call as your call report shows them in its Time column, rounded up per call to your billing increment. Null when the call has no call report entry."},"ai_minutes":{"type":"number","nullable":true,"description":"AI minutes for this call as your call report shows them in its AI Time column. Null when the call has no call report entry."},"agent_name":{"type":"string","nullable":true,"description":"The agent on the call, as first name and last initial. Null when no agent is recorded for the call."},"recording":{"type":"string","format":"uri","nullable":true,"description":"Time-limited link to the audio file. Request the recording again for a fresh link. Null when no audio is available."},"message_id":{"type":"integer","description":"The message taken on the call. Present only when there is one."},"message_uuid":{"type":"string","format":"uuid","description":"The message's UUID. Present only when there is a message."},"message_url":{"type":"string","format":"uri","description":"The message's page in the client portal. Present only when there is a message."}}},"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":{"NotFoundInvalidToken":{"description":"Invalid API token or resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetailed"}}}}}},"paths":{"/api/v2/messages/{id}/call-recording":{"get":{"summary":"Get a Message's Call Recording","description":"Returns the call recording for a message, in the same format as Get a Call Recording, with `message_id`, `message_uuid`, and `message_url` for that message. Returns `401` if you do not have call recording access on the message's account, and `404` if the message is not found or has no recording.","tags":["Get a Message"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallRecordingEnvelope"}}}},"401":{"description":"The token is missing or invalid, the message belongs to an account you are not a member of, or you do not have call recording access on that account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorSimple"}}}},"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/get-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.
