Browse the docs
Developers / Docs / Jobs & files
Get file
Gets a file uploaded with upload_file: its type and URL.
Paste it into any AI assistant. The shortcuts open with the prompt typed in; nothing is sent until you press enter.
At a glance
- REST
GET https://api.clippie.ai/v1/files/:id
- MCP tool
get_file
- Scope
read
- Cost
- Free. Works with a read-only key.
Parameters
id- In:
- path
- Type:
- string
- Required:
- Yes
- Description:
- file_… 1-80 chars.
Example
curl
curl "https://api.clippie.ai/v1/files/file_abc123" \
-H "Authorization: Bearer $CLIPPIE_API_KEY"get-file.mjs
const auth = { Authorization: `Bearer ${process.env.CLIPPIE_API_KEY}` };
const res = await fetch('https://api.clippie.ai/v1/files/file_abc123', { headers: auth });
if (!res.ok) throw new Error((await res.json()).error.message);
console.log(await res.json());Response
200 with JSON. The full response schema is in the OpenAPI spec.
From an MCP client
Your AI calls get_file with the same fields as JSON arguments. See MCP server to connect one.
tools/call
{
"name": "get_file",
"arguments": {
"id": "file_abc123"
}
}