REST ClientCompatFaxes

get_media

View as MarkdownOpen in Claude

Retrieve a specific media item from a fax.

Path parameters

AccountSidstringRequiredformat: "uuid"
The Project ID that uniquely identifies the Account.
FaxSidstringRequiredformat: "uuid"
The Fax ID that uniquely identifies the Fax.
SidstringRequiredformat: "uuid"
The Fax ID that uniquely identifies the Fax.

Response

account_sidstringRequired
The unique identifier for the account.
content_typestringRequired
The content type of the media.
date_createdstringRequired
The date, in ISO 8601 format, this media was created.
date_updatedstringRequired
The date, in ISO 8601 format, this media was updated.
fax_sidstringRequired
The unique identifier for the fax.
sidstringRequired
The unique identifier for the media.
uristringRequired
The URI for the media.
urlstringRequired
The URL for the media.

Response Example

Response
1{
2 "account_sid": "b3877c40-da60-4998-90ad-b792e98472ac",
3 "content_type": "application/pdf",
4 "date_created": "2018-11-26T20:00:00Z",
5 "date_updated": "2018-11-27T20:00:00Z",
6 "fax_sid": "b3877c40-da60-4998-90ad-b792e98472fx",
7 "sid": "b3877c40-da60-4998-90ad-b792e98472me",
8 "uri": "/fax/v1/Faxes/b3877c40-da60-4998-90ad-b792e98472fx/Media/b3877c40-da60-4998-90ad-b792e98472me.json",
9 "url": "/fax/v1/Faxes/b3877c40-da60-4998-90ad-b792e98472fx/Media/b3877c40-da60-4998-90ad-b792e98472me.json"
10}

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
9item = client.compat.faxes.get_media("FX...", "ME...")