Skip to content
Skip to article

API and integrations

Connect your warehouse program to Autobaza with an API key: who needs it, how to create a key, which permissions exist and how to keep it safe.

2 min read
On this page

The API is for yards that already keep stock in their own program and do not want to type anything twice. Your program (or its vendor) can read and send parts and vehicles straight into Autobaza and, optionally, read orders. If you keep stock in Excel, the import is enough; see the import and export article.

Who needs it

  • You have a warehouse program or ERP and its vendor can build an integration.
  • You change stock several times a day (prices, quantities, sold parts).
  • You want orders passed into your system automatically.

How to create a key

  1. Open “API i integracije”

    Postavke → “API i integracije”. Only the owner manages keys, and it is not possible in assisted mode.

  2. “Novi API ključ”

    Enter a name (for example “Program za skladište”), choose the permissions and confirm with your password.

  3. Copy the key

    You see the key only once. Copy it immediately and store it somewhere safe.

  4. Give it to your vendor

    Send the key together with the link to “Dokumentacija API-ja” (API documentation).

Key permissions

PermissionWhat it allows
Read parts and vehiclesViewing your parts and donor vehicles.
Add, change and delete partsManaging parts by your own code.
Add and change vehiclesManaging donor vehicles.
Read orders with buyer dataBuyers’ names, contact details and addresses.

Usage and limits

The key is sent in the header Authorization: Bearer abk_…. The limit is 120 requests per minute per key. Parts are identified by your own code (external_id, 1 to 64 characters), as in the import, so the same piece is not duplicated. New parts are created as drafts by default. You can have at most 5 active keys. The technical documentation (in English) is at /api-docs.

bash
curl -H "Authorization: Bearer abk_..." \
  "https://autobaza.hr/api/v1/parts?limit=20"

Security

  • Give each system its own key so you can revoke one without interrupting the others.
  • You see “Zadnje korišten” (last used) for every key. Revoke unused keys.
  • “Opozovi” (revoke) immediately cuts off every program using that key.
  • Never email a key or commit it to a public repository.
I lost the key.

It cannot be shown again. Revoke it and create a new one.

Can my employee create a key?

No, only the store owner.

Can the API publish a part immediately?

You can set the status to draft, active or paused. Active listings need a connected Stripe account.

API documentationPaths, examples and every field (in English).