Skip to main content
GET
/
files
/
{id}
/
content
Get File Content
curl --request GET \
  --url https://{gatewayBaseURL}/files/{id}/content \
  --header 'Authorization: Bearer <token>' \
  --header 'x-tfy-provider-name: <x-tfy-provider-name>'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-tfy-provider-name
string
required

Name of the provider

x-tfy-metadata
string

Optional metadata for the request

x-tfy-vertex-storage-bucket-name
string

Vertex AI storage bucket name

x-tfy-vertex-region
string

Vertex AI region (e.g., europe-west4)

x-tfy-provider-model
string

Provider-specific model identifier

Path Parameters

id
string
required

The ID of the file to retrieve

Response

Raw file contents. Content-Type is set by the provider.