chatformdocs
API referenceV1

Upload the bytes for a registered intent

PUT the raw file body, not multipart and not base64, to the `uploadUrl` returned by the intent step. The declared size must match within 1KB, and the object is not visible to the form until `confirm`.

PUT
/v1/sessions/{sid}/uploads/{fileId}

Authorization

AuthorizationBearer <token>

A server-side secret key. Never send one from a browser — a request carrying an Origin header is refused for this reason.

In: header

Path Parameters

sid*string
fileId*string

Request Body

application/octet-stream

TypeScript Definitions

Use the request body type in TypeScript.

body*file
Formatbinary

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/sessions/string/uploads/string" \  -H "Content-Type: application/octet-stream" \  -d 'string'
{  "ok": true}