Skip to content
UneeqUneeqUneeq Docs

Getting started

The Uneeq External API lets your own systems manage your organization in Uneeq: its users, teams and training scenarios, and the results of training sessions.

You need the Organization admin role in Uneeq to create an API key.

  1. Create an API key. In Uneeq, open Organization, then the API Keys section, and select Create API Key. Give the key a name and a description, then select Create. Copy the key from the list and store it somewhere safe. You can copy it again from the list later.

  2. Copy your connection details. The same section shows the Connection URL (https://training.uneeq.io/api) and the Organization ID. Every request uses both: paths in these docs are added to the Connection URL.

  3. Set them as environment variables, so you can paste the examples in these docs as they are:

    Terminal window
    export UNEEQ_API_URL="https://training.uneeq.io/api"
    export UNEEQ_ORG_ID="your-organization-id"
    export UNEEQ_API_KEY="your-api-key"

    Every request example in the API reference uses these too. The Fetch examples read them from the environment, so run them with Node in the same shell.

  4. List your organization’s tags. This request doesn’t change anything, so it’s a safe first call:

    Request
    curl --request GET \
    --url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/tags" \
    --header "Authorization: Bearer $UNEEQ_API_KEY"

    If we respond with 200 and a JSON list (or null when your organization has no tags), your key and organization ID are working.

  • Every path starts with /external/v1/organization/{organizationID}.
  • Send the API key in the Authorization header as a bearer token. See Authentication.
  • Request and response bodies are JSON. Send Content-Type: application/json with a body. Some successful responses, such as a delete, have no body.
  • IDs for teams, users and scenarios are UUIDs. Send them in lower case.
  • Lists that take a page number start at page 1.

We add to the API over time, so build your integration to accept additions:

  • Ignore response fields you don’t know. We add new fields to existing responses. Don’t use a strict JSON parser that rejects unknown properties.
  • Expect new enum values. For example, scenario_type can gain new values. Handle the values you know and skip the rest without failing.
  • Don’t rely on field order. A field that is left out when it’s empty can start to appear.

Before we remove an endpoint or a field, we mark it deprecated in the API reference, and it keeps working until the removal date stated there.

Unknown fields in a request body are ignored, except on the endpoints that create and update training scenarios: they return 400 for a field they don’t know, so a misspelled name can’t change what is created.

  • Authentication: keys, the organization ID and what a key can do.
  • Rate limits: how many requests you can send.
  • Errors: the error format and status codes.
  • API reference: every endpoint, with request and response details.