Skip to Content
Asteria Docs
Files

Retrieve File

GET
/v1/files/{file_id}

Authorization

ApiKey
headerAuthorization<token>

Your API key (sk-ast-...)

Path Parameters

file_id*File Id

Response Body

Successful Response

application/json
  1. response

The OpenAI Files API object shape, which every SDK already parses.

id*Id
object?Object
Default"file"
bytes*Bytes
created_at*Created At

Unix seconds, as OpenAI returns it.

filename*Filename
purpose*Purpose
Example Request
curl -X GET 'https://api.asteria-labs.com/v1/files/string'
Example Response
{  "id": "string",  "object": "file",  "bytes": 0,  "created_at": 0,  "filename": "string",  "purpose": "string"}