Files

Initiate a file upload

Create a pending file and get a signed URL to PUT the bytes to.

post/v1beta/files

Request

  • Base URL: https://api.indices.io
  • URL: https://api.indices.io/v1beta/files
  • Auth: HTTP bearer

Request body

namestring required

User-facing filename, e.g. 'report.pdf'.

size_bytesinteger required

Exact size of the file in bytes. Enforced by the signed upload URL.

content_typestring required

MIME type of the file content.

Response

Successful response

file_idstring required

Server-assigned ID of the pending file.

upload_urlstring required

Signed URL the sandbox must PUT the file bytes to.

upload_headersobject required

Headers that must be sent verbatim with the PUT; they are covered by the URL signature.

expires_atstring date-time required

When the upload URL stops being valid.

Changes

No recorded changes to this operation across all 1 revision of this API.