Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Files

Download a file's raw JSONL content

Streams the file bytes. 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.

GET
/v1/files/{id}/content
AuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer vl_….

In: header

Path Parameters

id*string

Response Body

application/octet-stream

application/json

application/json

curl -X GET "https://example.com/v1/files/string/content"
"string"
{
  "error": {
    "message": "string",
    "type": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "code": "string"
  }
}

Command line

The orl CLI wraps this endpoint:

orl files content get <id>