API Credentials
Unlike Z-API which uses theClient-Token header, Omni Z-API 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 Omni Z-API 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 Omni Z-API APIs. It must be sent in theAuthorization header as a Bearer token.
Example usage in API calls: