Create an API key and choose its permissions
Where to create the amk_ key, expiry, permissions and how to use it in the Authorization header.
Create
- In the panel, open the company menu (the Workspace card at the bottom of the side menu) and go to API. The address is /settings/api.
- Under API keys, give it a Name (e.g. Sales CRM).
- Choose the expiry in Expires: 30, 90 or 365 days, or Never.
- Tick only the Permissions the integration needs.
- Click Create key.
- Copy the key right away and keep it in a password vault. After you click I saved it, it can't be shown again.
The key starts with amk_ and acts as you, with your role. If you leave the company, it stops working. Never put the key in your website code or in the browser.
Use
Send the key in the header of every call, like this: Authorization: Bearer amk_.... The base address is https://amati.digital/api/v1.
To test, call GET /me: the response shows the key’s person, the company, the role and the permissions.
Permissions
| Permission | What it allows |
|---|---|
mail.transactional |
Send automatic emails from the company’s domains |
mail.admin |
Manage domains, mailboxes and aliases (admins only) |
mail.send |
Send emails from your mailboxes connected in Webmail |
drive.read, drive.write, drive.share |
View, save and create links in Drive |
agenda.read, agenda.write |
View calendars and busy times; create, change and cancel events |
meet.create |
Create Meet rooms |
newsletter.read, newsletter.write, newsletter.campaigns |
Newsletter contacts, lists and campaigns (admins only) |
Besides the permission, the person’s role must allow the action: for example, a Viewer can only read.
Revoke
In the key list, use Revoke. Anything using that key stops working immediately.
There is a maximum number of keys per company. If you see "Limit of … reached", delete the ones you no longer use.
Did not find the answer?
Log in to the panel and talk to support, or write to suporte@amati.digital.