ZarklyX is now in early access. Be the first agency to try.
ZarklyX

How to read the API integration guide ?

A tour of the integration guide that sits behind the Guide button on the API keys screen, including why the three-tab toggle rewrites the whole page instead of filtering it, and why a lead can be refused even though every field marked required was filled in.

Last updated October 23, 2026

What this screen is for ?

This is the instruction manual for the keys you generate on the API keys screen. It explains how an outside website or system - your own public website, a client portal, a helpdesk you have built - sends information into ZarklyX and gets told when something changes.

How to get here: open Sales & Marketing > API Keys from the left menu, or Settings > API Keys, then click Guide at the top right. Back to API Keys at the top right of the guide brings you back.

There are no fields to fill in and nothing to save. Everything here is reading material. The only three things you can do are switch tab, jump to a part of the page using the list on the left, and copy a block of text to your clipboard. No key is created or changed on this screen.

The one thing that surprises people: the three buttons at the top are not filters. They are three separate manuals for three separate things, and clicking one rewrites the entire page underneath - the list on the left, the counts, the setup box, the warnings, and whole sections that only exist on one tab. It also always opens on the first tab, Lead capture (CRM), no matter which tab you were looking at on the API keys screen before you clicked Guide.

This page is written for whoever is going to do the connecting. If that is not you, the useful job here is working out which of the three tabs applies and handing that over.

The three tabs, and what each one covers

The toggle under the heading has three buttons:

  • Lead capture (CRM) - a form on your own website dropping a new lead straight into your CRM. This is the shortest tab by a long way: one single entry.
  • Tickets API - reading and writing tickets from a system of your own. This tab covers tickets, change requests, attachments and drafts, and adds two long explanation sections at the top.
  • Webhooks - ZarklyX telling your system the moment something changes, instead of your system asking over and over. This is the biggest tab: eight explanation sections before the technical entries start.

Because each tab is a different manual, there is no way to see two at once and nothing carries over when you switch. If a colleague describes something on this page that you cannot find, the first question is which tab they were on.

The Response codes table right at the bottom is the only part that is identical on all three tabs. It is a short list of what the replies mean, and it is the bit people actually need once something has stopped working. Worth knowing one line of it in advance: a not found reply and a not yours reply are deliberately made to look the same, so a missing record and a record belonging to someone else cannot be told apart from the outside.

Finding your way around - the list on the left

The narrow card down the left is the contents list. On a wide screen it stays put as you scroll; on a narrow one it sits above the content instead.

Reading it from the top:

  • A count of how many calls the tab you are on covers. It changes when you switch tab, because it only ever counts the current tab.
  • The explanation sections, if the tab has any. Lead capture has none, so on that tab this part is simply absent.
  • A dividing line, then the groups of technical entries, each with a small number on the right saying how many calls are in that group.
  • Response codes at the very bottom.

Clicking any of these scrolls you down the same page. It does not open anything new, which means your browser's back button will not undo a jump - it takes you off the guide altogether. Scroll back up, or click another entry in the list.

Getting started - the box that changes under you

The first card is called Getting started, and almost everything in it is different on each tab. Three parts are worth understanding even if you are not the one writing the code.

The address. At the top, with a copy button beside it. Every call is built on top of it. A key only works against the address it was issued from, so a key made for testing will not work against the live system. Moving a finished integration from testing to live means generating a new key, and on the Webhooks tab it also means registering again from scratch.

What has to be sent. Lead capture needs the key on its own, which is why it is the one thing that can run inside a web page. The Tickets and Webhooks tabs need the key and its secret, and both are meant to be sent from your own server, never from a page in somebody's browser.

The coloured warning. A different one on each tab, and each is there for a real reason:

  • On Lead capture - a key sitting in a web page is visible to anyone who looks at that page. Its allowed-domain list is the only thing protecting it, so set one when you generate the key.
  • On Tickets API - the key has full read and write access to one client's tickets. Anyone who can see it has that same access.
  • On Webhooks - there are two different secrets in play and they are easily confused, and a Webhooks key covers the whole company rather than one client.

Last in the card is the ceiling on how often you can call: 60 times a minute on Lead capture, 120 on Tickets and Webhooks, counted per key. Go over it and calls are refused until the minute is up. On the Webhooks tab that ceiling applies only to your own calls out; events being pushed to you are not counted.

Reading one of the technical entries

Below the explanations, every tab ends with the same kind of list. Each entry is one thing you can ask ZarklyX to do, and they all follow the same layout:

  • A coloured tag saying what kind of action it is, then the address, then a copy button. That button copies the whole address, base included, so what lands on your clipboard is longer than what you see on screen.
  • A one-line description of what it does.
  • A table of the information you have to send: the name, what sort of value it is, a red required or grey optional badge, and a notes column.
  • Worked examples of what you send and what comes back, side by side on a wide screen, each with its own copy button and the reply marked with a green code. Where there is no example reply, just the code is shown.
  • Notes underneath, each with a small information icon.

Here is the trap in that table, and it is the most expensive one on the page: the required badge does not tell the whole story. On Lead capture only the name carries it, yet a lead with nothing but a name is still refused - an email address or a contact number has to be there too, and that rule appears only in the notes column beside those two rows. Read the notes column, not just the badges.

Two more from the same entry's notes, both easy to miss. Any extra information you send that is not in the table is not thrown away: it is kept on the lead as an additional field, with no setting up needed anywhere. And if you call lead capture from your own server and include the secret, the allowed-domain check is skipped entirely - so the same key behaves differently depending on where it is called from.

The two extra sections on the Tickets tab

The Tickets tab opens with two sections that do not exist on the other tabs.

Two-way live sync, marked Recommended, is the pattern to follow if you are building a portal of your own - a university portal, a client dashboard, an internal system. Three numbered cards describe the loop: your system sends tickets in, ZarklyX tells your system when staff change one, and your system pushes that straight to whoever is watching the screen so nothing has to be reloaded. A checklist in the middle is the part worth reading even if you skip the rest, because it sends you to two different screens: the API keys screen for the key and secret, and the Webhooks screen for the callback address and its events. Doing only the first half gets you a system that can send but never hears back.

Tenant routing and custom fields is for anyone serving several branches, institutes, stores or departments through one connection. You attach whatever extra details you like to a ticket, and two things happen with them. Your staff see them in the ticket's Additional details panel, labelled with exactly the wording you sent, and contact numbers there become clickable. And when the ticket later changes, those same details come back to you unchanged, which is how your system knows which branch an update belongs to without having to ask.

One rule from this tab that catches people: a Tickets key is tied to one client, and which client is taken from the key itself. If you send that detail with the request, it is ignored. That is deliberate - it is what stops one client's key reaching another client's tickets.

The Webhooks tab, and why it starts by talking you out of it

The first thing on this tab says you probably do not need any of this, and that is honest advice rather than modesty. The Webhooks screen in Settings does the same job from the browser with no key and no code at all: it registers the address, sends a test, shows the log of what happened and replaces the secret. The route described here is for when you want that done automatically - one address per customer, or rebuilt from scratch across environments. Even then, three of the six steps still have to be done by hand either way.

The rest of the tab is worth skimming for the traps, because they are where setups fail:

  • Three credentials, and the middle one is yours. A table spells out which two ZarklyX issues and which one you invent yourself. The one you invent is checked once, when the connection is first switched on. One of the ZarklyX ones is checked forever after, on every single event. Getting the first wrong blocks the setup; getting the second wrong blocks everything after it.
  • One value is shown only once. When the connection is created, the secret that proves events really came from ZarklyX appears once and never again. Store it then or start over.
  • Asking for all ticket events does not include the test. The shortcut for every event of a kind only covers that kind, and the test ping is not one of them. The Webhooks screen adds it for you; doing it by code, you have to add it yourself, and if you forget, your test will report success while nothing ever arrives.
  • Failures switch the connection off. Each attempt is given ten seconds, then retried five times over roughly the next six hours. Fifteen failures in a row disable the connection altogether, and a single success resets that count. Re-enabling runs the whole switch-on check again.
  • Redirects are never followed, and the same event can arrive twice. Register the final address, not one that bounces. And expect an occasional repeat, so a repeat must not do the work twice.

This tab ends with its own troubleshooting table, laid out as symptom against cause and fix. It is the single most useful part of the guide once something has stopped working, and it is easy to miss because it sits a long way down.

If something does not work

A few things that commonly catch people out on this screen.

  • The page looks nothing like what a colleague described - you are on a different tab. The three buttons at the top are three separate manuals, not filters.
  • You clicked Guide while looking at the Tickets keys, but got Lead capture - the guide always opens on the first tab. Switch it yourself.
  • The list on the left has only two lines - that is the Lead capture tab. It has one entry and no explanation sections.
  • The count of calls changed without you doing anything - it counts the tab you are on, and you switched tab.
  • Your browser's back button did not undo a jump from the left-hand list - those jumps only scroll the page, so back leaves the guide entirely. Scroll up or click another entry.
  • There is no button here to create a key - there is not meant to be. Use Back to API Keys at the top right and generate it there.
  • A lead is refused even though every red required field was filled - an email address or a contact number is needed as well. That rule is in the notes column, not on a badge.
  • The same key works from your server but not from your website - the allowed-domain list. The domain check is skipped when the secret is sent, so a server call can succeed where a browser call fails.
  • Everything comes back refused although the key is valid - it is the wrong kind of key for the tab you are reading. A Tickets or lead capture key cannot manage webhook connections.
  • Calls were working and are suddenly refused - you went over the per-minute ceiling. It is 60 a minute on Lead capture and 120 on the other two. Wait a minute.
  • Something you know exists comes back as not found - not found and not yours are deliberately indistinguishable. Check the record really belongs to the client that key is tied to.
  • A key that worked in testing does nothing on the live system - keys belong to the address that issued them. Generate a new one, and on Webhooks register again as well.
  • The client detail you sent was ignored - that is correct. A Tickets key is tied to one client and the key decides, not the request.
  • A test reports success but nothing arrives - the connection was not subscribed to the test event. Asking for all events of a kind does not include it.
  • Events stopped arriving after a quiet spell - fifteen failures in a row switch the connection off. Fix the receiving end, then switch it back on, which re-runs the original check.
  • What you pasted is longer than what was on screen - the copy button beside an address copies the full address including the base part.