Files

Download a file's raw JSONL content

Changed on

Streams a file's raw bytes as application/octet-stream, for a batch input file you uploaded, a result file, or a batch create's rejections file. Use it to fetch batch results: the batch object's output_file_id (successful records) and error_file_id (failed records) each point at a JSONL file of {custom_id, response | error} lines. A create's rejected_records_file_id points at a JSONL file of BatchRecordRejection lines, one per record the create rejected.

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

get/v1/files/{id}/content

Request

  • Base URL
    https://inference.openrelay.inc
  • URL
    https://inference.openrelay.inc/v1/files/{id}/content
  • Auth
    HTTP bearer

Path parameters

idstring required

Response

The file's raw JSONL bytes

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