Appearance
POST /public/v1/quotes/{id}/documents
| Auth | Required |
| Scope | files:write |
Multipart upload. Allowed: PDF, PNG, JPEG, WebP. Max 15 MB. AV scanned.
Curl
bash
curl -sS "$AF_API/public/v1/quotes/$QUOTE_ID/documents" \
-H "Authorization: Bearer $AF_API_KEY" \
-F "file=@request.pdf;type=application/pdf"Response
| Field | Type |
|---|---|
id | uuid |
file_name | string |
content_type | string or null |
byte_size | int or null |
created_at | datetime |
Errors
| Status | Code |
|---|---|
| 415 | unsupported_media_type |
| 404 | not_found |
::: note Try-it console is JSON-oriented; use curl for multipart uploads. :::