Genai integration

List files (Gemini format)

GET/genai/v1beta/files

Lists uploaded files in Google Gemini API format.

Query Parameters

pageSize?integer

Maximum number of files to return

pageToken?string

Page token for pagination

Response Body

application/json

application/json

application/json

curl -X GET "http://localhost:8080/genai/v1beta/files"
{
  "files": [
    {
      "name": "string",
      "displayName": "string",
      "mimeType": "string",
      "sizeBytes": "string",
      "createTime": "2019-08-24T14:15:22Z",
      "updateTime": "2019-08-24T14:15:22Z",
      "expirationTime": "2019-08-24T14:15:22Z",
      "sha256Hash": "string",
      "uri": "string",
      "state": "STATE_UNSPECIFIED",
      "error": {
        "code": 0,
        "message": "string"
      },
      "videoMetadata": {
        "videoDuration": "string"
      }
    }
  ],
  "nextPageToken": "string"
}
{
  "error": {
    "code": 0,
    "message": "string",
    "status": "string",
    "details": [
      {
        "@type": "string",
        "fieldViolations": [
          {
            "description": "string"
          }
        ]
      }
    ]
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "status": "string",
    "details": [
      {
        "@type": "string",
        "fieldViolations": [
          {
            "description": "string"
          }
        ]
      }
    ]
  }
}