Affidavits API
The Affidavits API provides read access to generated affidavits of service. Affidavits are created by Proxiant when a job is completed โ they cannot be created or modified via the API. eService affidavits are locked at generation.
List Affidavits
Returns a paginated list of affidavits for your firm, sorted by generated_at descending.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| job_id | uuid | Filter to affidavits for a specific job |
| status | string | Filter by status: draft ยท generated ยท signed |
| page | integer | Page number, default 1 |
| per_page | integer | Results per page, default 50, max 100 |
Affidavit Statuses
Affidavits start as draft while being prepared, become generated when the PDF is ready, and move to signed once the server has electronically signed them.
Affidavit Object Fields
| Field | Type | Description |
|---|---|---|
| id | uuid | Affidavit identifier |
| job_id | uuid | Parent job identifier |
| job_number | string | Human-readable job number (e.g., FH-2025-04812) |
| status | string | draft ยท generated ยท signed |
| template_name | string | Name of the affidavit template used |
| generated_at | ISO 8601 | null | When the PDF was generated |
| signed_at | ISO 8601 | null | When the server signed the affidavit |
| version | integer | Version number, incremented on regeneration |
Example Request
curl "https://api.proxiant.co/v1/affidavits?status=signed&per_page=20" \ -H "Authorization: Bearer prx_live_xxxxxxxxxxxx"
Example Response
{ "data": [ { "id": "c1d2e3f4-aaaa-1111-bbbb-2222cccc3333", "job_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "job_number": "FH-2025-04812", "status": "signed", "template_name": "Texas Affidavit of Service โ Personal", "generated_at": "2025-04-15T09:18:44Z", "signed_at": "2025-04-15T09:22:11Z", "version": 1 } ], "meta": { "page": 1, "per_page": 20, "total": 84 } }
Get Affidavit
Returns the full affidavit object, including template details and which photos and citation pages were included.
Additional Fields (single affidavit)
| Field | Type | Description |
|---|---|---|
| template_id | uuid | ID of the affidavit template used |
| photo_ids_included | array | IDs of attempt photos embedded in the affidavit PDF |
| has_citation_pages | boolean | true if citation pages are appended (eService) |
curl https://api.proxiant.co/v1/affidavits/c1d2e3f4-aaaa-1111-bbbb-2222cccc3333 \ -H "Authorization: Bearer prx_live_xxxxxxxxxxxx"
{ "data": { "id": "c1d2e3f4-aaaa-1111-bbbb-2222cccc3333", "job_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "job_number": "FH-2025-04812", "status": "signed", "template_id": "tmpl_tx_personal_v4", "template_name": "Texas Affidavit of Service โ Personal", "generated_at": "2025-04-15T09:18:44Z", "signed_at": "2025-04-15T09:22:11Z", "version": 1, "photo_ids_included": [ "ph_11112222-3333-4444-5555-666677778888", "ph_aaaabbbb-cccc-dddd-eeee-ffff00001111" ], "has_citation_pages": false } }
Download Affidavit PDF
Returns a redirect to a signed, temporary URL for downloading the affidavit PDF. The URL expires 15 minutes after issuance.
Location header. The URL expires in 15 minutes โ generate a fresh download URL each time rather than caching it.1 for eService affidavits.Example Request
# -L flag follows the redirect automatically curl -L https://api.proxiant.co/v1/affidavits/c1d2e3f4-aaaa-1111-bbbb-2222cccc3333/download \ -H "Authorization: Bearer prx_live_xxxxxxxxxxxx" \ -o affidavit-FH-2025-04812.pdf
Response Flow
# Step 1 โ Proxiant API HTTP/2 302 Location: https://storage.proxiant.co/affidavits/signed?token=eyJ... # URL expires in 15 minutes # Step 2 โ Storage redirect returns the PDF HTTP/2 200 Content-Type: application/pdf Content-Disposition: attachment; filename="affidavit-FH-2025-04812-v1.pdf"
Returns 404 not_found if the affidavit doesn't exist or isn't accessible to your key. Returns 409 conflict if the affidavit is in draft status and no PDF has been generated yet.