---
title: "Get file"
method: GET
path: "/partner/app/{appId}/bizai/agent_config/files/{fileId}"
tags: ["Knowledge — Files"]
---

# Get file

`GET /partner/app/{appId}/bizai/agent_config/files/{fileId}`

## Request

- Base URL: `https://partner.gupshup.io`
- URL: `https://partner.gupshup.io/partner/app/{appId}/bizai/agent_config/files/{fileId}`
- Auth: API key in header `Authorization`

## Response `200`

The file record.

- KnowledgeFile: **Per Meta reference**. The returned `file_name` may have its extension appended.
  - `id` string, required: Meta resource id.
  - `file_name` string, required

## Other responses

- `400`: The id is not a pfbid. Rejected on format before any lookup.
- `401`: Missing, invalid, or foreign-app token. Raised by Partner Portal before any forwarding.
- `429`: Per-app rate limit exceeded. Retry after the 60-second window.

---

[API](https://skmtc.dev/gupshup/apis/partner-portal-meta-business-agent-bizai-api.md) - [All operations](https://skmtc.dev/gupshup/apis/partner-portal-meta-business-agent-bizai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gupshup/apis/partner-portal-meta-business-agent-bizai-api/revisions/4c52185f2153?raw)
