RelayActions

FaxAction

View as MarkdownOpen in Claude

Returned from call.send_fax() or call.receive_fax(). Tracks an active fax send or receive operation. Terminal states: finished, error.

Inherits all properties and methods from the base Action interface (control_id, is_done, completed, result, wait()).

Properties

No additional properties beyond the base Action interface.

Methods

Example

from signalwire.relay import RelayClient
client = RelayClient(
project="your-project-id",
token="your-api-token",
contexts=["default"],
)
@client.on_call
async def handle_call(call):
await call.answer()
action = await call.send_fax(
document="https://example.com/invoice.pdf",
identity="+15559876543",
)
event = await action.wait()
fax_info = event.params.get("fax", {})
print(f"Fax pages: {fax_info.get('pages')}")
client.run()