> 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/call-recordings/get-a-call-recording.md).

# Get a Call Recording

## Get a Call Recording by ID

> Retrieve a single call recording by its unique ID. Pass the recording ID as a path parameter. Audio is available for up to 31 days; the CDR metadata is retained up to 3 years.

```json
{"openapi":"3.0.3","info":{"title":"Answering Service Care API","version":"1.0.0"},"tags":[{"name":"Get a Call Recording"}],"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 envelope. Audio retention and CDR retention differ:\n- `recording` (audio URL) — retained up to 31 days; URL expires after that.\n- `cdr` (call detail record) — retained up to 3 years per privacy policy.","properties":{"id":{"type":"integer"},"call_id":{"type":"integer"},"call_sid":{"type":"string"},"account_number":{"type":"string"},"did_number":{"type":"string"},"from":{"type":"string"},"agent_username":{"type":"string"},"started_at":{"type":"string","format":"date-time"},"recording":{"type":"string","format":"uri","description":"Time-limited URL to the audio file. Valid for up to 31 days from `started_at`."},"cdr":{"$ref":"#/components/schemas/CDR"}}},"CDR":{"type":"object","description":"Call detail record (CDR) metadata. Retained for up to 3 years per privacy policy — the CDR persists after the audio recording expires.","properties":{"id":{"type":"integer"},"unique_call_id":{"type":"integer"},"start_time":{"type":"string","format":"date-time"},"call_type":{"type":"string"},"start_client":{"type":"string"},"end_client":{"type":"string"},"callerid":{"type":"string"},"number_dialed":{"type":"string"},"did":{"type":"string"},"agent_name":{"type":"string"},"agent_id":{"type":"integer"},"skill_name":{"type":"string"},"skill_id":{"type":"string"},"connection_sec":{"type":"integer"},"ivr_sec":{"type":"integer"},"wait_sec":{"type":"integer"},"talk_sec":{"type":"integer"},"hold_sec":{"type":"integer"},"transfer_sec":{"type":"integer"},"wrap_sec":{"type":"integer"},"agent_answer_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"},"hang_up_time":{"type":"string","format":"date-time"},"who_hung_up":{"type":"string"},"original_call_id":{"type":"integer"},"call_created_at":{"type":"string","format":"date-time"},"is_orphaned":{"type":"boolean"},"conference_sec":{"type":"integer"},"conference_talk_sec":{"type":"integer"}}},"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/call-recordings/{id}":{"get":{"summary":"Get a Call Recording by ID","description":"Retrieve a single call recording by its unique ID. Pass the recording ID as a path parameter. Audio is available for up to 31 days; the CDR metadata is retained up to 3 years.","tags":["Get a Call Recording"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallRecordingEnvelope"}}}},"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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://answeringservicecare.com/docs/api-reference/user-portal-apis/call-recordings/get-a-call-recording.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
