---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Get File Info

Get file information for a list of file IDs.

Returns file information for a list of file IDs: each file's `filename`, `content_type`, `size`, and `id`.

## When to use it

Use it to check the files behind a knowledge object, or the result of an upload.

## Required parameters

* `ids_list` (path): the file IDs to look up.

## Response

A successful call returns `200 OK` with a JSON array of `FileInfo` objects.

**Related:** [Upload files for knowledge](https://docs.superwise.ai/reference/upload_files), [Create a knowledge object](https://docs.superwise.ai/reference/create_knowledge), [Get a knowledge object](https://docs.superwise.ai/reference/get_knowledge_by_id)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/knowledge/file_info/{ids_list}": {
      "get": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Get File Info",
        "description": "Get file information for a list of file IDs.",
        "operationId": "get_file_info",
        "parameters": [
          {
            "name": "ids_list",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ids List"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileInfo"
                  },
                  "title": "Response Get File Info"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "FileInfo": {
        "properties": {
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "content_type": {
            "$ref": "#/components/schemas/SupportedContentType"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "id": {
            "type": "string",
            "format": "uuid4",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "filename",
          "content_type",
          "size",
          "id"
        ],
        "title": "FileInfo"
      },
      "SupportedContentType": {
        "type": "string",
        "enum": [
          "application/pdf",
          "text/plain"
        ],
        "title": "SupportedContentType"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```