API access

Create and manage API keys so your own systems can talk to a Trigz agent through the Conversation API.

Updated

The Conversation API lets your own app or system send customer messages to a Trigz agent, which answers them as it would on any other channel. This page covers who can use it and how to create, connect and look after API keys.

Who can use it

  • The Conversation API comes with the Scale plan. Enterprise plans can include it too: ask our team.
  • Only admins see API Keys, under Manage in the menu.
  • If you move to a smaller plan, keys you already have keep working, but you can't create new ones.

Create a key

  1. Open API Keys under Manage.
  2. Under Generate a new key, type a Key label that says where the key is used, for example "Production integration".
  3. Select Create API Key.
  4. Copy the key straight away and store it somewhere safe. For security, Trigz shows the secret only once.

Connect it to an agent

Each key appears as an External API channel named after its label. When you set up a Store Assistant or Trigz Answers agent, turn that channel on in the Connect step. You can also turn it on later in the agent's Where (agent name) works section.

Like every channel, an External API channel is answered by one agent. To reach two agents through the API, create a key for each.

Look after your keys

The Active API keys list shows each key's Key prefix, when it was Created and when it was Last used.

  • Rotate gives the key a new secret. The old secret stops working at once, so update your system with the new one.
  • Delete removes the key. It stops working immediately for every system that uses it.
  • Keep only the keys you need. A key that says Never used is a good one to remove.

API keys don't take up one of your plan's integration slots.

Request details

To get the request and response details for your integration, contact us or book a demo. Tell us what your system does and which agent it should reach.

If something goes wrong

  • Creating a key fails. Check in Billing that your account is on Scale.
  • You lost the secret. It can't be shown again. Select Rotate, then put the new secret in your system.
  • A key may have leaked. Select Delete or Rotate now. Both stop the old secret straight away.
  • Requests stopped working after a rotate. Your system still uses the old secret. Replace it with the new one.
  • The agent doesn't answer API messages. Check that the agent is on and that its External API channel is turned on.

Still stuck? Contact us or read the FAQ.