QUiCK Public API documentation
HU EN

Authentication

Token-based authentication: creating an API token and using the Quick-Company-Id header.

Every QUiCK API call is authenticated. Authentication is API token based: the token travels in the Authorization header on every request, prefixed with Token.

Using the token

GET /1/partners/ HTTP/1.1
Host: api.quick.zenheads.hu
Authorization: Token XXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Accept: application/json

If the header is missing or the token is invalid, the response is 401 Unauthorized. If the token is valid but lacks permission for the company or the operation, the response is 403 Forbidden.

The token is bound to one company

Every token belongs to exactly one company (the company whose settings you created it in). That is why most calls do not need you to state which company you mean — the API infers it from the token.

Identifying your application — X-Application

If your integration has a name (e.g. a webshop, an accounting tool, a BI system), send it in the optional X-Application header on every request:

GET /1/partners/ HTTP/1.1
Host: api.quick.zenheads.hu
Authorization: Token XXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X-Application: my-integration-name

It is not used for authentication or authorization and has no effect on the response — it only helps us tell which application is calling the API when we look into an issue or a usage pattern. There is no fixed list of values; any short, stable name identifying your integration is fine.

Company scope — Quick-Company-Id

Some /2/ endpoints accept an optional Quick-Company-Id header that selects the target company explicitly:

GET /2/expense-types/ HTTP/1.1
Host: api.quick.zenheads.hu
Authorization: Token XXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Quick-Company-Id: 4821

Your company id is returned by GET /2/company-info/ (see below).

Creating an API token

Tokens are created in the QUiCK app, under company settings. The Administrator role is required.

  1. Sign in to the QUiCK app, then click the company name in the top right to open the company switcher.
  2. In the My companies list, click the gear icon next to the company — this opens its settings.
  3. Scroll to the API Tokens section and click Create new API token.
  4. Give the token a descriptive name reflecting where you use it (for example „Webshop sync" or „Power BI report").
  5. Click Create.
  6. The token is shown only once, at creation time. Click Copy token and store it somewhere safe.

The token is shown only once

We display the full token value only when it is created. If you lose it you cannot look it up again — delete it and create a new one. Never send it by email and never share it with others.

Reading company information

With a token in hand, GET /2/company-info/ returns the base data of the token's company — including the id you may need for the Quick-Company-Id header.

curl https://api.quick.zenheads.hu/2/company-info/ \
  -H "Authorization: Token $QUICK_API_TOKEN"
{
  "id": 4821,
  "name": "Riport Applications Kft.",
  "tax_account_number": "12345678-2-42",
  "default_currency_name": "HUF",
  "expense_email": "expenses@example.com",
  "document_email": "documents@example.com",
  "advanced_accounting": true,
  "enable_accounting_id": true,
  "enable_vat_period": true
}

Storing the API token

Pick the store that matches your environment — the token must never reach version control or a client-side bundle.

export QUICK_API_TOKEN="XXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Working with multiple companies

If your integration serves several companies, create a separate token per company (each in that company's settings). You route calls to the right company by selecting the matching token; the Quick-Company-Id header is only needed when you want to bind a request to a specific company explicitly and have the API verify it.

Compromised token

If you suspect a token has leaked (public repository, log file, email), delete it immediately in the QUiCK app (Company settings → API Tokens → Delete) and create a new one. Deletion takes effect straight away.