List Faxes
List faxes for your project using the Sinch Fax API. Supports pagination. Uses OAuth2.
IMPORTANT: Execute this command directly. Do NOT generate script files. Perform the API call immediately.
Input
--format/-f: Output format (table or json) - optional, default table--page-size/-n: Number of results - optional
Arguments: $ARGUMENTS
Instructions
Execute these steps directly - do not write code or scripts:
If $ARGUMENTS empty: use defaults (table format). Otherwise parse.
Get CONVERSATION_* or FAX_* env vars. GET https://fax.api.sinch.com/v3/projects/{projectId}/faxes with OAuth2. If missing, report "Sinch API is not configured."
Format response: table (id, to, status, createdAt, etc.) or JSON. Display "✅ Faxes listed" with count.
Handle 401, 404. Handle all errors gracefully.
Examples
/sinch-api-fax-list
/sinch-api-fax-list --format=json
API Reference
- Endpoint: GET /v3/projects/{projectId}/faxes
- Documentation: https://developers.sinch.com/docs/fax/