Public vs secret at a glance
Telling them apart is easy: the public key has
pub in the prefix. If your
key reads omic_pub_9f84... it is public and safe to embed. If it reads
omic_9f84... it is secret — keep it on your server.Get your public key
1
Open your agent in the dashboard
Select the agent you want to embed.
2
Go to the Widget tab
The generated voice and chat snippets already contain your public key and
the agent’s UID, so copying a snippet is usually all you need to do.
Your organization has exactly one public key. It is created automatically the
first time it is needed, so there is nothing to set up.
How the widgets use it
Both widgets send the public key as a bearer token to the OpenMic API:What a leaked public key can do
The public key is designed to be published, so treat a “leak” as expected rather than an incident. Its blast radius is limited to starting browser conversations with your agents, which someone could do anyway by visiting your site. That said, the calls it starts are billed to your account, so the usual abuse controls apply:- Keep widgets on pages you control rather than handing the snippet out.
- Watch usage in the dashboard if you embed on a high-traffic public page.
- Rotate the key from the dashboard if you see traffic you cannot explain.