App API: all modules

The App API gives an API key or an AI assistant the same endpoints the eFaktúra app uses: quotes, recurring invoices, inventory, Autopark, Attendance, Payroll (read only), eÚčto and more. That is over 1,500 endpoints under one prefix, /v1/agent/app.

A Czech company on efaktura.cz uses https://api.efaktura.cz — see Czech Republic.

What it is

/v1/agent/app/<path> runs the app endpoint /v1/<path>. For example /v1/agent/app/quotes/:id runs /v1/quotes/:id. The same validation, company data isolation, audit trail, period locks, module checks and plan lock apply as in the app.

The App API mirrors the app and can change with it. The curated /v1/agent/* endpoints (invoices, Peppol, customers, bank and more) remain the stable contract. Call those when you need a long-lived shape.
ModulePath prefixes
faquotes, recurring, sequences, reminders, invoice-templates, bundles, products, price-lists, cash, obligations, reports, audit-log
sklad (inventory)inventory
autoparkautopark
dochadzka (attendance)attendance
mzdy (payroll)payroll (read only)
euctoeucto (journal, chart of accounts, statements, periods, assets, VAT)

Who may call it

User keys and AI assistant connections over MCP. The effective permission is the intersection of the key's scopes and the company member's role. A key with quote:read cannot write a quote, even when its owner is an admin.

SituationResponse
Partner key403 PARTNER_KEY_NOT_SUPPORTED. Partners use /v1/agent/*.
Member with employee-portal access only403 PORTAL_ONLY_MEMBERSHIP
Missing X-Organization-Id header403 (the key must carry a company context)
Module is not active for the company403 (for example Inventory in a company without the Sklad module)

The API is available from the Pro plan, like the rest of the API. Restricted plans allow read scopes only. The scope list is in API keys and scopes.

Endpoint catalog

GET /v1/agent/app/catalog lists every endpoint. Filter by module (module) and by part of the path (q). The catalog needs only a valid key with a company context.

curl -H "X-API-Key: $API_KEY" -H "X-Organization-Id: $ORG_ID" \
  "https://api.efaktura.sk/v1/agent/app/catalog?module=fa&q=quotes"
{
  "data": [
    {
      "method": "GET",
      "path": "/v1/agent/app/quotes/:id",
      "module": "fa",
      "permissions": [{ "mode": "all", "permissions": ["quote:read"] }],
      "allowed": true
    }
  ],
  "count": 1
}

permissions says what the endpoint requires: with all every listed permission is needed, with any one is enough. allowed is true when this key, with its member's role, may call the endpoint.

Calling an endpoint

Call the catalog path as listed, with the method and body the app uses. The body is JSON, up to 30 MB.

# GET: quote detail
curl -H "X-API-Key: $API_KEY" -H "X-Organization-Id: $ORG_ID" \
  https://api.efaktura.sk/v1/agent/app/quotes/$QUOTE_ID

# POST: new quote (the app's POST /v1/quotes)
curl -X POST -H "X-API-Key: $API_KEY" -H "X-Organization-Id: $ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "contactId": "550e8400-e29b-41d4-a716-446655440000",
    "subject": "Office refurbishment",
    "items": [
      { "name": "Installation", "quantity": "2", "unit": "h", "unitPriceExVat": "60.00" }
    ]
  }' \
  https://api.efaktura.sk/v1/agent/app/quotes

Customer prices for a B2B e-shop

GET /v1/agent/app/price-lists/prices returns the active products with their price for one customer (contactId) or one price list (priceListId), exactly as an invoice prices them: fixed prices, price tiers by category and the list discount. Pass exactly one of the two. Optional search, category, quantity (the quantity for band prices, default 1), limit (1 to 200, default 50) and offset. The key needs the product:read scope, the company the Pro plan.

curl -H "X-API-Key: $API_KEY" -H "X-Organization-Id: $ORG_ID" \
  "https://api.efaktura.sk/v1/agent/app/price-lists/prices?contactId=$CONTACT_ID&limit=200"
{
  "data": [
    {
      "productId": "…",
      "sku": "PL-100",
      "name": "Plastic board",
      "category": "Plastics",
      "unit": "pcs",
      "currency": "EUR",
      "vatRate": "23.00",
      "sellingPrice": "10.0000",
      "price": "8.5000",
      "priceWithVat": "10.46",
      "origin": "rule",
      "priceListId": "…",
      "priceListName": "Wholesale"
    }
  ],
  "meta": { "title": "…", "total": 1, "offset": 0, "limit": 200 }
}

price is the price without VAT, origin says what set it: item (fixed price), rule (price tier), list_discount (list discount) or null (selling price).

Permissions and modules

Every endpoint requires the permissions shown in the catalog. The company must have the module active, otherwise you get 403. A locked plan applies as it does in the app. Module scopes (quote:*, attendance:*, ledger:read and others) are described in API keys and scopes.

What the App API refuses

WhatHow
Scopes a key never holds (changing members, billing and deleting the company, signing filings to slovensko.sk, approving and editing payroll)400 when a key is created or edited; dropped from older keys
Payroll changes (write, approve)403 TWO_FACTOR_REQUIRED. Through a key, payroll is read only.
Endpoints served by the app only: the Autopark subscription, a person's own attendance, the mobile app and punching, device pairing, carrier and GPS provider credentials404 Tento endpoint nie je dostupný cez API
An app endpoint without a permission checkThe same 404, and it is not in the catalog

Errors

Errors have the same shape as the rest of the API. An invalid body returns 400 VALIDATION_ERROR with the fields in details:

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "...",
    "details": [{ "field": "items.0.name", "message": "Názov položky je povinný" }]
  }
}

More codes are in Error codes.

Personal data in logs

Request and response bodies of any /v1/agent/app/* call are not stored in the call log, because the modules hold personal data (birth numbers, employees, drivers). The log holds the text [not logged: personal data] instead. Method, path, status code and duration are still logged.

AI assistants (MCP)

The MCP server has two tools: find_app_endpoints searches the catalog and call_app_endpoint calls an endpoint. Deleting and irreversible steps need the user's confirmation. Details are in MCP server for AI assistants.