Skip to main content
GET /v1/files Retrieve a list of files belonging to your account. Files are returned in descending order of creation time.

Query Parameters

This endpoint does not currently support pagination or filtering.

Example Request

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

Response

{
  "data": [
    {
      "bytes": 425708,
      "created_at": 1758171802,
      "filename": "test image.png",
      "id": "634314ed-c796-4abe-82bf-4d772cd70187",
      "object": "file",
      "purpose": "fine-tune"
    },
    {
      "bytes": 627991,
      "created_at": 1758102300,
      "expires_after": 86400,
      "filename": "Lecture 1 Introduction.pdf",
      "id": "6c8f3fa3-80e1-4245-9e41-222985a938fa",
      "object": "file",
      "purpose": "fine-tune"
    }
  ]
}
I