Skip to main content
POST
Step one of a file batch. Returns an upload_url for one JSONL file. PUT the file to it with every header in required_headers, then pass the upload_id to Create a Batch. Each upload creates one batch. For the whole flow, see Audit Historical Messages. Needs a full-access API key.

Request Body

Send an empty object {} or no body.
string
default:"jsonl"
The file type. Only jsonl is supported.

File format

The file you PUT to upload_url has one JSON object per line. These fields go in the file, not in this request.

Response

string
string
Where to PUT the file.
string
Always PUT.
object
Headers the PUT must send exactly as given. The URL is signed with them.
string
When upload_url stops working, 15 minutes after the request.
integer
Largest file accepted, in bytes (256 MB).
integer
Most lines a file can hold (100,000).
Send every header in required_headers exactly as given. A missing or changed header makes the upload fail with SignatureDoesNotMatch.