SmartPDF Operations API

The operations API from SmartPDF — 47 operation(s) for operations.

GitHub OpenAPI

Operations 47

POST /v1/pdf/to-word Pdf To Word #
POST /v1/pdf/word-to-pdf Word To Pdf #
POST /v1/pdf/merge Merge Pdf #
POST /v1/pdf/compress Compress Pdf #
POST /v1/pdf/sign Sign Pdf #
POST /v1/pdf/jpg-to-pdf Jpg To Pdf #
POST /v1/pdf/photo-to-pdf Photo To Pdf #
POST /v1/pdf/pptx-to-pdf Pptx To Pdf #
POST /v1/pdf/xlsx-to-pdf Xlsx To Pdf #
POST /v1/pdf/html-to-pdf Html To Pdf #
POST /v1/pdf/to-jpg Pdf To Jpg #
POST /v1/pdf/to-pptx Pdf To Pptx #
POST /v1/pdf/to-excel Pdf To Excel #
POST /v1/pdf/split Split Pdf #
POST /v1/pdf/ocr Ocr Pdf #
POST /v1/pdf/rotate Rotate Pdf #
POST /v1/pdf/delete-pages Delete Pages #
POST /v1/pdf/extract-pages Extract Pages #
POST /v1/pdf/reorder-pages Reorder Pages #
POST /v1/pdf/protect Protect Pdf #
POST /v1/pdf/unlock Unlock Pdf #
POST /v1/pdf/watermark Watermark Pdf #
POST /v1/pdf/add-page-numbers Add Page Numbers #
POST /v1/pdf/to-txt Pdf To Txt #
POST /v1/pdf/flatten Flatten Pdf #
POST /v1/pdf/to-png Pdf To Png #
POST /v1/pdf/crop Crop Pdf #
POST /v1/pdf/edit Edit Pdf #
POST /v1/pdf/redact Redact Pdf #
POST /v1/pdf/find-personal-data Find Personal Data #
POST /v1/pdf/to-markdown Pdf To Markdown #
POST /v1/pdf/grayscale Grayscale Pdf #
POST /v1/pdf/to-pdfa Pdf To Pdfa #
POST /v1/pdf/repair Repair Pdf #
POST /v1/pdf/djvu-to-pdf Djvu To Pdf #
POST /v1/pdf/heic-to-jpg Heic To Jpg #
POST /v1/pdf/compress-image Compress Image #
POST /v1/pdf/resize-image Resize Image #
POST /v1/pdf/rotate-image Rotate Image #
POST /v1/pdf/crop-image Crop Image #
POST /v1/pdf/word-to-jpg Word To Jpg #
POST /v1/pdf/image-to-text Image To Text #
POST /v1/pdf/png-to-jpg Png To Jpg #
POST /v1/pdf/jpg-to-png Jpg To Png #
POST /v1/pdf/webp-to-jpg Webp To Jpg #
POST /v1/pdf/fb2-to-pdf Fb2 To Pdf #
POST /v1/pdf/epub-to-pdf Epub To Pdf #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/smartpdf-ru:smartpdf-ru-operations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

smartpdf-ru-operations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SmartPDF Operations API
  description: 'Все операции асинхронные: `POST /v1/pdf/…` возвращает `task_id`, статус — `GET /v1/tasks/{task_id}`.

    Авторизация — заголовок `X-API-Key` с ключом из кабинета (раздел «API и MCP»).

    Запрос оплачивается с баланса API аккаунта (общий для всех ключей и MCP) по единицам: единица — каждые

    начатые 10 МБ входа (файл до 10 МБ — 1 единица, 25 МБ — 3; у объединения считается сумма файлов). Тяжёлые

    операции — ещё и по страницам, берётся большее: распознавание текста (OCR) — единица за каждые 10 страниц

    (до 100 страниц за раз, больше — `422` без списания), PDF в Word / Excel / PowerPoint / JPG — за каждые

    50 страниц (JPG 300 dpi — за 25). Цена единицы и ставки — `GET /v1/pricing/api` (`request_price`,

    `page_rates`); цену меняют в админке, поэтому не зашивайте её в код. На тарифе

    Бизнес сначала расходуются 500 включённых обычных запросов месяца. Нет денег на балансе или исчерпан

    лимит ключа — `402` с объяснением, ничего не списано. Ошибка обработки возвращает оплату автоматически.

    Остаток — `GET /v1/api-keys/balance` (`balance`, `spent_month`, `request_price`, `included_remaining`),

    списанное — `charge` и `charge_units` в `GET /v1/account/operations`. Пополнение, лимиты ключей,

    перевыпуск и удаление — в кабинете (раздел «API и MCP»).


    ## Вебхуки


    Передайте в запросе операции `webhook_url` (только https) — по завершении SmartPDF отправит на него

    `POST` с JSON: `event` (`task.done` / `task.failed`), `task_id`, `operation_type`, `status`, `timestamp`,

    `download_url` и `filename` (для `task.done`, ссылка действует 1 час) или `error_message`.

    Имя результата — `_smartpdf.` (оно же в заголовке `Content-Disposition`).

    Ответьте кодом 2xx; иначе будет ещё 3 попытки (через 10, 30 и 90 секунд). Редиректы не выполняются.


    Заголовки: `X-SmartPDF-Event`, `X-SmartPDF-Delivery` (id операции, одинаков у повторов — по нему

    отсекайте дубли) и `X-SmartPDF-Signature: t=,v1=`.


    **Проверка подписи.** Секрет — кабинет → «API и MCP» (там же выпускается новый, старый сразу

    перестаёт действовать).

    Подпись — HMAC-SHA256 от строки `.` в hex. Сравнивайте в постоянном

    времени и отклоняйте запросы старше 5 минут.


    ```python

    import hashlib, hmac, time


    def verify(secret: str, body: bytes, header: str) -> bool:

    parts = dict(p.split("=", 1) for p in header.split(","))

    ts = int(parts["t"])

    if abs(time.time() - ts) > 300:

    return False

    expected = hmac.new(secret.encode(), f"{ts}.".encode() + body, hashlib.sha256).hexdigest()

    return hmac.compare_digest(expected, parts["v1"])

    ```


    ```javascript

    const crypto = require("crypto");


    function verify(secret, rawBody, header) {

    const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));

    if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;

    const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.`).update(rawBody).digest("hex");

    return expected.length === parts.v1.length &&

    crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));

    }

    ```'
  version: 1.0.0
servers:
- url: https://api.smartpdf.ru
tags:


# --- truncated at 32 KB (97 KB total) ---
# Full source: https://artifacts.apis.io/smartpdf-ru/openapi/smartpdf-ru-operations-api-openapi.yml