Skip to content
← Help

Connect a program with an API key

Give Zapier, your website or a developer's program a key to read and write your clients, jobs, leads and visits, only as far as you allow.

Solo Your account and your data

Sample business
The API keys tab of Webhooks & API, listing a Zapier key and a website booking key with what each may do, who issued it and whether it has been used

An API key lets a program you choose work with your records, so nobody has to copy them across. Zapier can add every new lead as a client. Your website can book visits straight onto your calendar. A script a developer wrote can read your jobs each night. You decide what each key can do, you can see what it has done, and you can stop it at any moment.

Give a program a key

On the Tools page, open Webhooks & API, and on its API keys tab choose New key.

  1. Name it for what will use it, like Zapier or Website booking. The name can be up to 60 characters. Anything the key adds or changes is recorded under this name, so the history of a client it added reads Zapier (API key).
  2. Check what it can do, under What this key can do. The next section explains each box.
  3. Press Create key. You might be asked for your password first, as you are before any change to who can reach your account.

For Zapier, open Zapier on the Tools page and press Key for Zapier instead. It’s the same form, named Zapier, with exactly what the Zapier app uses already checked: clients, jobs, leads and visits to read and write, and webhooks. Invoices aren’t checked, because the app never reads one. What happens to an invoice reaches Zapier through its webhooks. Change anything you like. It’s an ordinary key, listed here too and marked Zapier. A second Zapier account gets Zapier 2, because 2 working keys never share a name. Once it’s made, paste it into Zapier when Zapier asks you to connect SMG Tools. Connect SMG Tools to Zapier has the rest.

The key is shown once. Copy it into the program that will use it, or send it to the developer building one, and press I have copied it. If it’s lost, revoke it and make another. Nobody, including us, can show it to you again.

Keys are part of Solo, Crew and Scale. On Free, every key you made is kept and shown as paused. A program using one is told the plan doesn’t include the API. Once the business is back on a paid plan, the same key works on its next request. The one thing a paused key can still do is remove a webhook it subscribed to, so turning off a Zap on Free leaves nothing behind. A business can have 20 working keys at once.

Choose what a key can do

Each kind of record has its own checkbox, so a key can do exactly what its program needs and nothing more:

Records Read Write
Clients See them Add them and change their details
Jobs See them Create them, change them and move their status
Leads See them Add them and move them along
Visits See them Book, reschedule and cancel them
Invoices See them, with their payments and balance —
Inventory See how many of each part every shop and van has, and each part’s reorder point and fill-to level —
Purchasing See purchase orders, their lines and what of each has come in —
Webhooks — Subscribe to events, remove what it subscribed to, and see the last few times an event happened

Checking Write checks Read with it, because a program can’t change what it can’t see.

A program with Webhooks checked can also ask for the last 3 times an event happened in your business, exactly as it would have been sent them. That way whoever sets it up, in Zapier for example, tests it with your own records instead of made-up ones. Asking sends nothing anywhere and adds nothing to a webhook’s log. A program that reads clients can look one up by email or phone before adding it. That way a client already in your book is found instead of entered twice. A program that reads jobs can find a job by its number.

A key sees your whole business, the way a Manager does. What it writes goes through the same rules as your own work, with the same effects. A job it completes runs your automations for a completed job. A visit it books, moves or cancels tells your client, just as one you booked would. A key never charges a card, refunds, deletes a client, a job or anything else you made, or sends an invoice or a proposal. Invoices can only be read, so money only moves through your console and your customers’ own pages. Purchase orders can only be read too. An order is sent, approved and received in the console.

To change what a key can do, make a new key with the right boxes checked and revoke the old one.

See what a key has been doing

Each key on the list shows what it can do, who issued it and when, the last 4 characters of the key, and when it was last used, or Never used.

Press Recent calls to see its log: when each call was made, what it asked for, and how it was answered. The log covers the last 30 days, up to the last 500 calls. Nothing it sent or was sent is kept, so no customer’s details are in the log. A run of refusals usually means the program is asking for something its key isn’t allowed to do.

Rename or revoke a key

From the menu beside a key:

  • Rename changes its name, and the history of what it already wrote shows the new one. A client or lead it added keeps the name it came in under, beside Integration.
  • Revoke stops it the moment you confirm, and the program is told its key was revoked. The key stays on the list as Revoked, so the records it made still say who made them. You may be asked for your password first.

Revoke a key when you stop using the program, when somebody who had it leaves, or whenever it may have leaked. Anyone holding a key can do what it allows, so keep it as you would a password.

If a program subscribed to a webhook with its key, that webhook keeps sending after you revoke the key. It stops when you delete it on the same page. See Have other software told what happened.

Who can manage keys

Only an Owner issues, renames and revokes keys. A Manager sees the keys, what each can do and their recent calls, but changes nothing. Field members don’t see Webhooks & API’s page.

Hand the key to a developer

Everything a developer needs is at API for developers: every address, field and scope, the errors, paging and limits, with an example for each. A program sends the key with every request to https://smg-api.smgtools.com/v1. Each key can make 120 requests a minute, and your business 600 a minute across all its keys.

This page describes API Keys and the Public API. It is written from that feature’s record and covers what has shipped, never what is planned.