Skip to content
  • There are no suggestions because the search field is empty.

Manage API keys in HappySignals

Create, regenerate and delete API keys that let other tools get data from HappySignals.

An API key lets another tool get data from HappySignals, for example a reporting dashboard in Power BI. API means application programming interface: the way one system requests data from another. Admins can create and manage API keys themselves in Settings.

Before you start

  • You need the Administrator role in HappySignals. Other roles see the message "You need admin rights to manage integrations".
  • Use a desktop browser. Settings are not available on mobile devices.
  • Have a password manager or secrets vault ready. HappySignals shows the key only once.

Open the API keys page

  1. Select your name in the top-right corner, then select Settings.

    The user menu open in the top-right corner, with Settings highlighted

  2. In the left menu, under Integrations, select API keys.

    The API keys page with the Create API key button highlighted, and API keys selected under Integrations in the left menu

The page lists your API keys with their Name, Expires and Created dates. If there are no keys yet, the page shows only the help text.

Create an API key

  1. Select Create API key.

  2. In Name, describe where the key is used, for example "Power BI dashboard". The name can have up to 200 characters.

  3. Optional: in Expires (optional), select the last day the key works. The key stops working at the end of that day. If you leave the field empty, the key never expires. To clear a date, select it again.

    The Create API key window with the Name and Expires (optional) fields

  4. Select Create.

  5. In the API key created window, select the copy icon and store the key in your password manager or secrets vault. To see the key, select Show key.

    The API key created window with the masked key, the copy icon and the Done button

  6. Select Done.

Result: The key shows in the list. You cannot see the key again after you close the window. If you lose it, regenerate it.

Share the key only through a secure channel, for example a password manager. Do not send it by email or chat.

Use the API key

Encode the API key in Base64 and send it as a Bearer token in the Authorization header of each request:

Authorization: Bearer <Base64-encoded API key>

API keys work with these APIs:

API What it returns Endpoints
Response API Survey responses, either all of them or for one questionnaire GET /api/v2/responses
GET /api/v2/questionnaires/<slug>/responses
Audit Log API Audit log entries GET /api/v3/auditlog/

For the request and response format of the Response API, see HappySignals API.

Regenerate an API key

Regenerate a key when you lost it or think someone else has it. Regenerating keeps the name and expiry date and replaces the key.

  1. On the API keys page, select the actions menu (…) on the row of the key.

    The actions menu of an API key, with Regenerate key and Delete

  2. Select Regenerate key, then select Regenerate to confirm.

  3. In the API key regenerated window, copy and store the new key, then select Done.

  4. Update every tool that used the old key.

The old key stops working immediately.

You cannot regenerate an expired key. Delete it and create a new key instead.

Delete an API key

  1. On the API keys page, select the actions menu (…) on the row of the key.
  2. Select Delete, then select Delete to confirm.

Tools that use the key lose access immediately. You cannot undo this.

You cannot edit the name or the expiry date of a key. To change them, create a new key, update your tools, then delete the old key.

Troubleshooting

You see Cause Do this
"You need admin rights to manage integrations" You do not have the Administrator role. Ask an admin in your organization to create the key, or to give you the role.
"Your session has expired. Reload the page and try again." Your login session ended. Reload the page and sign in again.
"This API key has expired and cannot be regenerated. Delete it and create a new key instead." The expiry date of the key has passed. Delete the key and create a new one.
Regenerate key is missing from the actions menu The key has expired. Delete the key and create a new one.
The API rejects requests with a key that you just created The key is not Base64-encoded, or it was copied incompletely. Copy the key again from your password manager, encode it in Base64 and send it as shown in Use the API key above.
The list shows "Expired" next to a date The key passed its expiry date and no longer works. Create a new key.

Related articles