# Get file

URL: https://clippie.ai/developers/docs/get-file

Gets a file uploaded with upload_file: its type and URL.

## At a glance

| Property | Value |
| --- | --- |
| REST | `GET https://api.clippie.ai/v1/files/:id` |
| MCP tool | `get_file` |
| Scope | `read` |
| Cost | Free. Works with a read-only key. |

## Parameters

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `id` | path | string | Yes |  | file_… 1-80 chars. |

## Example

curl:

```bash
curl "https://api.clippie.ai/v1/files/file_abc123" \
  -H "Authorization: Bearer $CLIPPIE_API_KEY"
```

get-file.mjs:

```js
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](https://api.clippie.ai/v1/openapi.json).

## From an MCP client

Your AI calls `get_file` with the same fields as JSON arguments. See [MCP server](https://clippie.ai/developers/docs.md#mcp) to connect one.

tools/call:

```json
{
  "name": "get_file",
  "arguments": {
    "id": "file_abc123"
  }
}
```
