Files

Mint a signed URL for a direct JSONL upload

Changed on

For browser clients that upload the file straight to storage instead of through the API: returns a file id and a signed PUT URL (valid 15 minutes). After the PUT succeeds, register the file with the complete call. CLI and SDK clients should use the plain upload instead.

Requires the batch.write permission. See Permissions for the roles and API key permissions that include it.

post/v1/files/presign

Request

  • Base URL
    https://inference.openrelay.inc
  • URL
    https://inference.openrelay.inc/v1/files/presign
  • Auth
    HTTP bearer

Request body

bytesinteger required

Exact size of the upcoming upload in bytes (max 200 MB).

filenamestring

Display name; not persisted.

Response

OK

expires_atinteger required

Unix timestamp (seconds) the signed URL stops working.

file_idstring required

File id to register with the complete call after the PUT succeeds.

put_urlstring required

Signed URL; PUT the raw JSONL bytes to it.

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status