Authorization header:
Make a key
In Kai, go to Settings → API and select Create API key. Only an owner or an admin can make a key. Kai shows the full key one time. Kai stores only a SHA-256 hash of the secret half, so nobody can read the key again, not even Kai support. If you lose a key, create another one and revoke the old one.Permissions
A key holds the permissions that you select when you make it. Each endpoint names the permission that it needs.
A write permission includes its read permission.
contacts:write therefore
also reads contacts, because every write answers with the record that it
wrote. messages:send includes conversations:read and templates:read,
because a send answers with the conversation and the message that it made.
These permissions are not the roles that people hold in Kai. A key has no
role and no seat. Give a key the smallest set of permissions that its job
needs.