Tutorial · Step 17 of 20

Copy the key once

The key is displayed exactly once. The server keeps a hash and a short prefix, so a lost key is replaced, never recovered. Copy it into the integration's secret store before leaving the page.

Before you start

  • The secret store open, or the environment file you are about to edit. Somewhere for the value to land that is not a chat window.
  • The page left open after step 16. The panel exists only in the state of that page: a reload or a navigation discards it.
  • No need to write the key down by hand. Use Copy, then paste: a mistyped character produces a key that fails later, far from here.
Never paste a key in a public page
A key in client-side code, in a public repository or in a page the browser serves is readable by every visitor. The widget on a public site uses the project UID instead, and needs no key at all.

Copy the key once

The moment Create key succeeds, a highlighted panel appears above the list, headed Your new key, copy it now. Click Copy, then paste the value into your secret store.

Once it is stored and the integration can read it, click I saved the key, hide it. The panel closes and the key stays in the list as a name and a prefix.

The key after creation. The value is displayed here and nowhere else. Open this page

What you see

The panel holds the value and two actions, and it is the only place the value appears.

NameTypeDefaultDescription
Your new keyak_ + 32 charsThe full value, shown in a monospace block. It is the only moment it is ever displayed: nothing on the page can bring it back.
CopybuttonWrites the value to the clipboard. The label switches to Copied for about two seconds, then returns to Copy.
I saved the key, hide itbuttonCollapses the panel once the value is stored somewhere safe. The key keeps working; only its display is gone.

The value starts with ak_ followed by 32 alphanumeric characters. If what you copied does not have that shape, the copy failed: copy again rather than editing the string.

What you see when it worked

  1. The label under the cursor reads Copied for about two seconds, then returns to Copy.
  2. Pasting into your editor yields a single string starting with ak_, with no line break in the middle.
  3. After I saved the key, hide it, the panel disappears and the list shows the key by name, with its prefix and an ellipsis.
  4. The count next to Active includes the new key, and stays the same after a reload.

If it does not work

NameTypeDefaultDescription
Copy does nothing, and no message appearsclipboard blockedThe browser refused the clipboard write, and the page does not report it. Select the value in the block and copy it by hand, then check the ak_ prefix before storing it.
The panel is gone after a reloadpage stateThe value lives in the state of the page, not in the database. Reloading or navigating away discards it for good: the key must then be revoked and a new one issued.
The list shows a truncated keyby designOnly a 12-character prefix is stored for display, so the row ends in an ellipsis. The full value is never listed again, on this page or anywhere else.
The integration rejects the keyscope or formatEither the string lost characters while being pasted, or the route needs a scope the key does not carry. Compare the prefix with the list first, then check the scopes from step 16.

Next

The key is stored and the panel is closed. The last step installs the public widget, which uses the project UID and no key: Paste the widget snippet