Skip to the page
Showing help for:
Showing help for:

Step by step

Create an API key

Give your own system, such as your website, a key to Kila's API with only the access it needs. Kila shows the key once, and you can revoke it at any time.

Who can do it
Owner and Administrator
Find it
Administration, then Integrations and API, or search integrations in Kila
Time
3 minutes

An API key lets a system of yours, such as your website or accounting tools, talk to Kila for your business. “Each key belongs to this business and carries only the scopes you choose.” The API comes with the Growth and Enterprise plans.

  1. Open Integrations and API, then the API keys tab

    Tap Create key.

    The API keys tab at Baraza Supplies, with Create key marked 1.The API keys tab at Baraza Supplies, with Create key marked 1.
  2. Name the key

    “Give it a name you will recognise and only the scopes it needs.” Name it after what will use it, such as Website stock sync.

    Steps 2 to 4 in one dialog.
    Create an API key: the name Website stock sync (2), the scopes with products:read ticked (3), and Create key (4).Create an API key: the name Website stock sync (2), the scopes with products:read ticked (3), and Create key (4).
  3. Tick only the scopes it needs

    Each scope is one kind of access, shown with its code: Read products and prices (products:read), Read stock levels, Read customers, Create customers and Read sales and receipts. Kila starts with the first one ticked.

  4. Tap Create key

    Kila shows the key in a window of its own, such as Website stock sync is ready.

  5. Copy the key

    Shown once: “Copy it now and keep it somewhere safe. Kila stores only a fingerprint, so it cannot be shown again.” Tap Copy and paste it where your system keeps its settings.

    Steps 5 and 6. The key is hidden here: never share yours.
    Website stock sync is ready: Shown once, the key itself hidden in this picture, Copy (5) and I have copied it (6).Website stock sync is ready: Shown once, the key itself hidden in this picture, Copy (5) and I have copied it (6).
  6. Confirm you have copied it, then tap Done

    Switch on I have copied it: “Done unlocks once you confirm.”

The key is listed with the start of it, its scopes, when it was Last used (Never until your system calls Kila) and how many Requests it has made.

The API keys list: Website stock sync, by Peter Kariuki, its scopes, last used Never, 0 requests, Active, with Revoke marked 7.The API keys list: Website stock sync, by Peter Kariuki, its scopes, last used Never, 0 requests, Active, with Revoke marked 7.

Webhooks send your system news from Kila: “Kila posts signed JSON to these URLs when events happen.” On the Webhooks tab, tap Add endpoint, type your server’s URL (“Use https in production.”) and tick the Events it should receive, such as sale.completed, then tap Save. Kila shows the endpoint’s signing secret once, the same way as a key. Each endpoint then has Send test event, Deliveries, Edit and Rotate secret, and a switch to disable it.

Add a webhook endpoint: the URL of Baraza Supplies' system (1), the events with sale.completed ticked, and Save (2).Add a webhook endpoint: the URL of Baraza Supplies' system (1), the events with sale.completed ticked, and Save (2).

Tap Revoke next to it. Kila asks Revoke Website stock sync?: “Anything using this key stops working at once. This cannot be undone; create a new key if you need one.”

Kila shows:

Key revoked

Calls with it are refused from now on.

The tabs say API and webhooks are not on your plan: “Connect your website, ERP or reporting tools with the API module. It is listed under Plan and modules; ask Kila to add it.”

Needs a manager

API keys are for owners and administrators. The audit log’s Security tab counts any Rejected API key.

Last checked on Kila on .

Did this help?

Still stuck?

Email Kila support. Say what you were trying to do and copy the message Kila showed you, word for word.

Contact support

Choose your business

The Help Centre then shows the steps and words for your kind of business. Your choice stays on this device.