REST ClientRecordings
list
List recordings in the project.
Response
linksobjectRequired
Pagination links.
datalist of objectsRequired
List of recordings.
Response Example
Response
1 { 2 "links": { 3 "self": "string", 4 "first": "string", 5 "next": "string", 6 "prev": "string" 7 }, 8 "data": [ 9 { 10 "id": "d369a402-7b43-4512-8735-9d5e1f387814", 11 "project_id": "d369a402-7b43-4512-8735-9d5e1f387814", 12 "created_at": "2024-01-15T09:30:00Z", 13 "updated_at": "2024-01-15T09:30:00Z", 14 "duration_in_seconds": 2, 15 "error_code": "string", 16 "price": 0.05, 17 "price_unit": "USD", 18 "status": "completed", 19 "url": "https://example.com/recording.mp3", 20 "stereo": false, 21 "byte_size": 10, 22 "track": "inbound", 23 "relay_pstn_leg_id": "string" 24 } 25 ] 26 }
Example
1 from signalwire.rest import RestClient 2 3 client = RestClient( 4 project="your-project-id", 5 token="your-api-token", 6 host="your-space.signalwire.com", 7 ) 8 9 result = client.recordings.list(page_size=20) 10 for rec in result.get("data", []): 11 print(rec.get("id"), rec.get("duration"), rec.get("state"))