API Credentials
Unlike Z-API which uses theClient-Token header, works with a key pair: Public Key and Secret Key.
To generate your credentials, go to the Security menu in the dashboard: Security.
Public Key
The Public Key is used exclusively by the channel connection SDK. With it, you can connect channels (such as WhatsApp, Telegram, etc.) directly within your system, without needing to access the dashboard.The Public Key can be exposed in your application’s frontend, as it has limited permissions for channel connection only.
Secret Key
The Secret Key is used for authentication in APIs. It must be sent in theAuthorization header as a Bearer token.
Example usage in API calls:
Summary
| Key | Usage | Can expose in frontend? |
|---|---|---|
| Public Key | Channel connection SDK | Yes |
| Secret Key | API calls (Authorization header) | No, backend only |