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 "byte_size": 10, 11 "created_at": "2024-01-15T09:30:00Z", 12 "duration_in_seconds": 2, 13 "error_code": "string", 14 "id": "d369a402-7b43-4512-8735-9d5e1f387814", 15 "price": 0.05, 16 "price_unit": "USD", 17 "project_id": "d369a402-7b43-4512-8735-9d5e1f387814", 18 "relay_conference_id": "0089cc48-4f98-4a6b-90d8-61f8a5d1b0e3", 19 "relay_pstn_leg_id": "string", 20 "status": "completed", 21 "stereo": false, 22 "track": "inbound", 23 "updated_at": "2024-01-15T09:30:00Z", 24 "url": "https://example.com/recording.mp3" 25 } 26 ] 27 }
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"))