# Make

Source: https://smartpdf.ru/en/developers/docs/make

## With an agent — the MCP Client app

Make has an **MCP Client** app (open beta) with the “Call a tool” and “Execute an action with AI” modules. To connect: **+ New MCP Server** → URL `https://mcp.smartpdf.ru/mcp` → **API Key / Access token** — your `sk_live_…` key.

The app is in beta, so the REST API is more reliable for permanent scenarios.

## Without an agent — the HTTP module

1. **HTTP → Make a request**: `POST https://api.smartpdf.ru/v1/upload`, multipart/form-data body, field `file` — the file from the previous module; `X-API-Key` header.
2. `POST https://api.smartpdf.ru/v1/pdf/<operation>` — JSON with the `file_id` from the step 1 response.
3. Repeat `GET https://api.smartpdf.ru/v1/tasks/{task_id}` (the **Repeater** and **Sleep** modules) until the status is `done` — or receive a [webhook](https://smartpdf.ru/en/developers/docs/webhooks) with the **Webhooks → Custom webhook** module.
4. `GET https://api.smartpdf.ru/v1/tasks/{task_id}/download` and download `download_url` with the **HTTP → Get a file** module.

Operation parameters are in the [Operations](https://smartpdf.ru/en/developers/docs/operations) section.
