API Credentials
uses a key pair: Public Key and Secret Key. Both are generated in the Security menu of the dashboard: Security.Public Key
The Public Key is used by the channel connection SDK (@hubmessage/connect). With it, you can connect channels 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 all APIs. It must be sent in theAuthorization header as a Bearer token in every request.
Example usage:
Summary
| Key | Usage | Where to use | Can expose in frontend? |
|---|---|---|---|
| Public Key | Channel connection SDK | Frontend or backend | Yes |
| Secret Key | All API calls (channels, templates, messages) | Backend only | No |
Next steps
Create a channel
Create your first channel to start sending messages.
Connect channel via SDK
Integrate the connection flow into your system.