Docs

File received

SSE event emitted when agrirouter has finished reassembling a chunked payload

event: FILE_RECEIVED

Emitted when agrirouter has finished reassembling a chunked payload (TaskData, Shape, PDF, image, video). The gateway hides individual chunks from partners, so only one FILE_RECEIVED event fires per complete payload. The frame arrives on the GET /events SSE stream.

Data fields

FieldTypeRequiredDescription
event_typestring (FILE_RECEIVED)yesDiscriminator; matches the event: line.
receiving_endpoint_idUUIDyesagrirouter-internal ID of the receiving endpoint.
message_typestringyesTechnical message type of the reassembled payload.
sizeinteger (bytes)yesTotal size of the reassembled payload.
message_idsarray of UUIDsyesagrirouter message IDs of every chunk that carried the payload. Confirm each one after processing.
payloadstring (base64)noInline payload. Mutually exclusive with payload_uri.
payload_uriURInoPre-signed URL to download the reassembled payload. Mutually exclusive with payload. Expires after at most 15 minutes.
filenamestringnoOptional filename metadata supplied by the sender.
tenant_idstringnoTenant that owns the receiving endpoint.
teamset_context_idstringnoTeamset context ID the sender attached, if any.

payload_uri expires after at most 15 minutes. Download the file before the link expires. If it does expire, reconnect to the SSE stream so the event is replayed with a fresh URL.

Sample frame

event: FILE_RECEIVED
data: {"event_type":"FILE_RECEIVED","receiving_endpoint_id":"9f8e7d6c-5b4a-3210-fedc-ba0987654321","message_type":"iso:11783:-10:taskdata:zip","size":12582912,"message_ids":["a1b2c3d4-e5f6-4789-abcd-ef0123456789","b2c3d4e5-f6a7-4890-bcde-f01234567890"],"payload_uri":"https://api.agrirouter.com/payloads/a1b2c3d4-e5f6-4789-abcd-ef0123456789/2026-03-20T10:31:15Z","filename":"field-42-task.zip"}

See also

On this page