LooonaDocslooona.com ↗

Self-host & build › Developers › API keys

API keys

Create a secret key so your own server can send responses to Looona.

An API key lets your own server send responses to Looona, without a form. Admins find keys in Developers, under API keys.

Create a key

  1. Open the window

    Click Create a key.

  2. Name it

    For example, "Production server".

  3. Limit it, if you like

    Under Advanced, Can send to is All destinations by default. Only some limits it to the destinations you tick.

  4. Copy it

    Click Create key, then Copy. It starts with sk_.

    A new API key shown once, hidden here, with Copy.A new API key shown once, hidden here, with Copy.

The key is shown once. Looona keeps no readable copy: if you lose it, create a new key.

Your server sends it in the X-API-KEY header. See Send responses with the API.

Keep it secret

A key is a password for your workspace's inbox. Keep it on your server, never in a web page or an app people download.

Manage a key

Each key's ⋯ menu offers:

  • Edit…: its name and where it can send.
  • Disable: it stops working until you click Turn back on.
  • Revoke…: it stops working for good. This can't be undone.
  • Delete…: it leaves the list, and anything still using it stops working.

Keys marked Public

Keys made before Looona 2 could be public, meant for a web page. They still work, and show a Public tag. Forms replace them: disable a public key once your site uses a form.