Skip to main content

Upload Agent File

POST 

/agents/:agentId/files

Stage one bounded multipart file in private quarantine. Required replay key binds exact bytes/name/parent/type. 202 is acceptance, not a clean verdict; poll detail. Size uses MAX_FILE_SIZE, 10 MiB/default and fallback. Requires agents:operate. Current principal/owner/filespace/origin authority is required. New local private intake requires API_REST_FILES_ENABLED and direct-upload scanning; admission defaults off. Active and pending generations remain separate; shared filespaces are not principal confidentiality compartments.

Request​

Responses​

Response Headers
    RateLimit-Limit

    Smaller configured principal/owner request window limit when enforcement is enabled.

    RateLimit-Remaining

    Smaller remaining principal/owner allowance at admission.

    RateLimit-Reset

    Seconds until the Redis-server-time fixed request window resets.

    Idempotency-Replayed

    Present when Idempotency-Key is used: false for the original response, true for a replay.

    Operation-Id

    Opaque retained receipt ID. Outcome lookup is available for covered G02 member and allowed G01 service operations.

    Idempotency-Expires-At

    Original protected response expiry.

    X-Request-ID

    Server-generated synchronous HTTP correlation; no worker lineage implied.