POST
/api/public/v1/support/uploads
LiveStart a large attachment upload (attachments:write). Files up to 25 MB are sent in 3 MB chunks.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
| ticketId, filename, size, sha256 | body (POST) | ticketId, filename, size required | Type and size are checked before any bytes are sent. sha256 (hex) is optional and, when given, verified after assembly. |
Response
{ uploadId, chunkBytes, chunks, filename }. Then PUT /api/public/v1/support/uploads/{uploadId}?index=N with the raw bytes of chunk N (chunkBytes each, the last one shorter), and POST /api/public/v1/support/uploads/{uploadId} to assemble, scan and store the file. A file that fails the malware scan is refused with reasonCode MALWARE_DETECTED.
Example
curl -H "Authorization: Bearer $INAYA_API_KEY" \
"https://app.inaya.network/api/public/v1/support/uploads"