REST ClientCompatRecordings

list

View as MarkdownOpen in Claude

List recordings in the account.

Path parameters

AccountSidstringRequiredformat: "uuid"
The unique identifier for the account that is associated with this recording.

Query parameters

DateCreatedstringOptional
Filter by recordings created on this exact date (RFC 2822 format).
DateCreated<stringOptional
Filter by recordings created before this date (RFC 2822 format).
DateCreated>stringOptional
Filter by recordings created after this date (RFC 2822 format).
CallSidstringOptionalformat: "uuid"
Filter by recordings associated with a specific call.
ConferenceSidstringOptionalformat: "uuid"
Filter by recordings associated with a specific conference.
PageintegerOptional>=0Defaults to 0
The page number to retrieve (zero-indexed).
PageSizeintegerOptional1-1000Defaults to 50
The number of results per page. Default is 50, maximum is 1000.
PageTokenstringOptional
Token for cursor-based pagination. Required when navigating to pages beyond the first.

Response

uristringRequired
The URI of the current page.
first_page_uristringRequired
The URI of the first page.
next_page_uristring or nullRequired
The URI of the next page. Null if there are no more pages.
previous_page_uristring or nullRequired
The URI of the previous page. Null if this is the first page.
pageintegerRequired
The current page number (zero-indexed).
page_sizeintegerRequired
The number of items per page.
recordingslist of objectsRequired
List of recordings.

Response Example

Response
1{
2 "uri": "/api/laml/2010-04-01/Accounts/720796a0-8ee9-4350-83bd-2d07a3121f1e/Recordings?Page=0&PageSize=50",
3 "first_page_uri": "/api/laml/2010-04-01/Accounts/720796a0-8ee9-4350-83bd-2d07a3121f1e/Recordings",
4 "next_page_uri": "/api/laml/2010-04-01/Accounts/720796a0-8ee9-4350-83bd-2d07a3121f1e/Recordings?Page=1&PageSize=50&PageToken=PA19e436af-5688-4307-b03b-bdb2b42b8142",
5 "page": 0,
6 "page_size": 50,
7 "recordings": [
8 {
9 "sid": "19e436af-5688-4307-b03b-bdb2b42b8142",
10 "account_sid": "720796a0-8ee9-4350-83bd-2d07a3121f1e",
11 "api_version": "2010-04-01",
12 "call_sid": "43bb71ee-553f-4074-bb20-8e2747647cce",
13 "channel": "1",
14 "channels": "1",
15 "date_created": "Tue, 25 Sep 2018 23:00:00 +0000",
16 "date_updated": "Wed, 26 Sep 2018 23:00:04 +0000",
17 "start_time": "Tue, 25 Sep 2018 23:00:00 +0000",
18 "end_time": "Wed, 26 Sep 2018 23:00:04 +0000",
19 "duration": 4,
20 "price": "-0.0025",
21 "price_unit": "USD",
22 "source": "DialVerb",
23 "status": "queued",
24 "uri": "/api/laml/2010-04-01/Accounts/720796a0-8ee9-4350-83bd-2d07a3121f1e/Recordings/19e436af-5688-4307-b03b-bdb2b42b8142.json",
25 "subresource_uris": {
26 "transcriptions": "/api/laml/2010-04-01/Accounts/720796a0-8ee9-4350-83bd-2d07a3121f1e/Recordings/19e436af-5688-4307-b03b-bdb2b42b8142/Transcriptions.json"
27 },
28 "trim": "do-not-trim"
29 }
30 ]
31}

Example

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9recordings = client.compat.recordings.list(PageSize=20)