Download a file

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.usehearsay.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "integrations MCP server": {
    "url": "https://docs.usehearsay.com/mcp"
  }
}

Close
GET /common/file/{fileId}

Downloads a file by id. No auth. Usually answers 307 with a redirect to a signed storage URL of the original; otherwise streams the bytes. Returns 404 when the stored original is missing.

Path parameters

  • fileId string Required

    Id of the file

Responses

  • 200 application/octet-stream

    The file bytes, streamed when no signed URL is available. Not wrapped in the JSON envelope.

  • 307

    Usual answer: redirect (Location header) to a short-lived signed storage URL of the original file.

GET /common/file/{fileId}
curl \
 --request GET 'http://api.example.com/common/file/{fileId}'