Skip to content

Authentication ​

Authenticate with Situate using API keys. An API key belongs to a user or service account, and requests made with it run with that account's permissions. Use a service account with only the access the caller needs.

Creating an API Key ​

  1. In the Object Browser, expand User and Service Accounts, right-click the account, and select Edit.

    Account menu
  2. In Add/Edit Service Account, on the Identities and Credentials tab, click +.

    Add/Edit Service Account
  3. In Add/Edit Identities and Credentials, set Identity Type to Situate API Key. Situate generates a key and shows it in the API Key field.

    Add/Edit Identities and Credentials - Situate API Key
  4. Copy the key before you click OK. Once saved, the key isn't shown again; if you lose it, edit the identity and click Generate New Key to replace it.

  5. Click OK in Add/Edit Service Account to save the account.

See Identities for more about API keys.

Using the Key ​

Pass the key as the value in the X-API-Key header.

bash
curl -k -v -H "Content-Type: application/json" \
  -H 'X-API-Key: YOUR_API_KEY' \
  -X GET https://localhost/situate/workflows

Workload Automation and Orchestration