> 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.files

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

```json
{
  "operationId": "chats.files",
  "parameters": [
    {
      "name": "chatId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "minLength": 1
      }
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "files": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "size": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "contentType": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sentAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "from": {
                      "type": "string",
                      "enum": [
                        "prompt",
                        "minded"
                      ]
                    },
                    "madeSeq": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "open": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "size",
                    "contentType",
                    "sentAt",
                    "from",
                    "open"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "files"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "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"
    }
  }
}
```
