Skip to main content
GET /v1/files/{file_id} Returns metadata for a specific file.

Path Parameters

ParameterTypeRequiredDescription
file_idstringYesThe ID of the file to use.

Example Request

curl https://api.gravixlayer.com/v1/files/file-abc123def456 \
  -H "Authorization: Bearer $GRAVIXLAYER_API_KEY"

Response

{
  "bytes": 425708,
  "created_at": 1758171802,
  "filename": "test image.png",
  "id": "634314ed-c796-4abe-82bf-4d772cd70187",
  "object": "file",
  "purpose": "fine-tune"
}
I