For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
  • Core
    • Overview
    • Authorization
    • Base URL
    • Data formats
    • Paging
    • Error codes
    • Permissions
  • Calling
      • DELDelete recording
      • GETGet recording
      • GETList recordings
  • Datasphere
  • Logs
  • Messaging
  • Phone Number Management
  • Platform
  • Resource Management
LogoLogoSignalWire Docs
Log inSign up
Support
CallingRecordings

Get recording

|View as Markdown|Open in Claude|
GET
https://{your_space_name}.signalwire.com/api/relay/rest/recordings/:id
GET
/api/relay/rest/recordings/:id
$curl https://{your_space_name}.signalwire.com/api/relay/rest/recordings/id \
> -u "<project_id>:<api_token>"
1{
2 "id": "d369a402-7b43-4512-8735-9d5e1f387814",
3 "project_id": "d369a402-7b43-4512-8735-9d5e1f387814",
4 "created_at": "2024-01-15T09:30:00Z",
5 "updated_at": "2024-01-15T09:30:00Z",
6 "duration_in_seconds": 2,
7 "error_code": "string",
8 "price": 0.05,
9 "price_unit": "USD",
10 "status": "completed",
11 "url": "https://example.com/recording.mp3",
12 "stereo": false,
13 "byte_size": 10,
14 "track": "inbound",
15 "relay_pstn_leg_id": "string"
16}

Retrieves the details of a recording.

Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice.

Learn more about API scopes.

Was this page helpful?
Previous

List recordings

Next
Built with

Authentication

AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token. The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password. Example: ``` Authorization: Basic base64(project_id:token) ```

Path parameters

idstringRequiredformat: "uuid"
Unique ID of the recording.

Response

Recording model. A recording is associated with exactly one call leg type (PSTN, SIP, or WebRTC).

PstnRecordingobject
Recording from a PSTN call leg.
OR
SipRecordingobject
Recording from a SIP call leg.
OR
WebRtcRecordingobject
Recording from a WebRTC call leg.

Errors

401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error

SignalWire Basic Authentication using Project ID and API Token.

The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.

Example:

Authorization: Basic base64(project_id:token)