REST ClientRecordings
list
List recordings in the project.
Response
linksobjectRequired
Pagination links.
datalist of objectsRequired
List of recordings.
Response Example
Response
{"links": {"self": "string","first": "string","next": "string","prev": "string"},"data": [{"byte_size": 10,"created_at": "2024-01-15T09:30:00Z","duration_in_seconds": 2,"error_code": "string","id": "d369a402-7b43-4512-8735-9d5e1f387814","price": 0.05,"price_unit": "USD","project_id": "d369a402-7b43-4512-8735-9d5e1f387814","relay_conference_id": "0089cc48-4f98-4a6b-90d8-61f8a5d1b0e3","relay_pstn_leg_id": "string","status": "completed","stereo": false,"track": "inbound","updated_at": "2024-01-15T09:30:00Z","url": "https://example.com/recording.mp3"}]}
Example
from signalwire.rest import RestClientclient = RestClient(project="your-project-id",token="your-api-token",host="your-space.signalwire.com",)result = client.recordings.list(page_size=20)for rec in result.get("data", []):print(rec.get("id"), rec.get("duration"), rec.get("state"))