Skip to main content
A file is an uploaded trace, for use in a batch. To twin a single trace, send it to create a twin instead.

Formats

A twin keeps its trace’s format and extension. Other formats, such as PDFs or archives, return 400 file_unsupported.

The file object

Upload a file

POST /v1/kennet/files Uploads one trace. Send multipart/form-data. Each file can be used in one batch request.
Returns 200 with a file object.

Retrieve a file

GET /v1/kennet/files/{id} Retrieves a file. Returns a file object, or 404 resource_missing.

List files

GET /v1/kennet/files Lists files, newest first. Returns {object: "list", data, has_more, url}, with file objects in data.

Delete a file

DELETE /v1/kennet/files/{id} Deletes a file not used in a batch. Returns {id, object: "file", deleted: true}.