OAuth apps and the Connections screen
Create an app where each person authorizes with their own account, and see or revoke what is connected.
When to use OAuth
An API key always acts as the person who created it. For a system used by several people, where each one signs in with their own account, create an OAuth app.
Create an app
- Open API and go to OAuth apps.
- Fill in Name shown on the authorization screen, Website and Redirect addresses (one per line, exact, with https; http only on localhost).
- Tick the Permissions and click Create app.
- Keep the secret shown. Change secret generates another one, and the current one stops working right away.
The flow is Authorization Code with PKCE. Technical details are in the API documentation, under Authentication.
Release it to other companies
A new app only works in the company that created it (This company only). For other companies to authorize it, click Request review: Amati checks the app before releasing it. The Website must be filled in.
The authorization screen
The person connecting sees the app name, the company and what it will be able to do, and chooses Authorize or Cancel. The app never reads emails or sees the password, and only reaches what the person can already reach in Amati.
Connections
In Connections, in the company menu, you find the Connected apps, with the date of last use. Revoke cuts access immediately. Each person sees and revokes their own connections; admins see the whole company’s.
On the same screen, admins can connect the Company WhatsApp through IntegraWhats by entering the token (when the connection is available). With it, Webmail rules and Calendar reminders go out from the company’s number.
Did not find the answer?
Log in to the panel and talk to support, or write to suporte@amati.digital.