> Minded’s MCP server is https://mcp.minded.com: connect an agent to it with a Minded API key to hand work to Minded.

# chats.file

`GET https://app.minded.com/v1/chats/{chatId}/files/{fileId}`

```json
{
  "operationId": "chats.file",
  "parameters": [
    {
      "name": "chatId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "minLength": 1
      }
    },
    {
      "name": "fileId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "minLength": 1
      }
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "string",
            "format": "binary",
            "contentEncoding": "binary"
          }
        }
      }
    },
    "default": {
      "description": "Refused: the HTTP status says why (400 the input, 401 the key or token, 402 no usage, 403 access, a hook or the role, 404 not there, 409 a conflict, 429 too many calls)",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "code",
              "status",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "A stable name for the refusal, e.g. FORBIDDEN"
              },
              "status": {
                "type": "integer"
              },
              "message": {
                "type": "string",
                "description": "What happened, in plain words, ready to show the member"
              },
              "data": {
                "type": "object",
                "description": "When there is one: billingUrl, usageLimitsUrl, or retryAfter (seconds)"
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://app.minded.com/v1"
    }
  ],
  "security": [
    {
      "apiKey": []
    },
    {
      "runToken": [],
      "runChat": []
    }
  ],
  "securitySchemes": {
    "apiKey": {
      "type": "http",
      "scheme": "bearer",
      "description": "A member’s Minded API key"
    },
    "runToken": {
      "type": "http",
      "scheme": "bearer",
      "description": "A run’s own token, which its sandbox holds as MINDED_RUN_TOKEN. It works only while the turn it was given for runs"
    },
    "runChat": {
      "type": "apiKey",
      "in": "header",
      "name": "x-minded-chat-id",
      "description": "The chat the run’s token was given for, which its sandbox holds as MINDED_CHAT_ID"
    }
  }
}
```
