Empowering HR API

Connect your systems to Empowering HR case management. Automate case creation, read case data, and integrate HR workflows into your own applications.

Base URL https://api.empoweringhr.com

Base URL

All API requests are made against one of the environments below. Use UAT for development and testing, then switch to production when you're ready to go live.

EnvironmentAPI Base URLAuth Server
UAThttps://api.uat.empoweringhr.comhttps://auth.uat.empoweringhr.com
Productionhttps://api.empoweringhr.comhttps://auth.empoweringhr.com

All requests must use HTTPS. Plaintext HTTP requests are rejected.

Get the ClientAdmin role

Before you can generate API credentials, you need the ClientAdmin role assigned to your account. This role grants access to the API Credentials section in the admin portal.

How to request

  1. Submit a ticket

    Go to the AdviserPlus support portal and raise a request for the ClientAdmin role to be assigned to your account.

  2. Wait for confirmation

    Once the role has been assigned, you'll be able to see the API Credentials tab in the admin portal.

  3. Generate credentials

    Follow the steps in the next section to create your first API credential.

Generate API credentials

API credentials are managed through the admin portal. Each credential is a client ID and secret pair that your systems use to authenticate against the Empowering HR API.

View existing credentials

Navigate to the admin portal and select the API Credentials tab. You'll see all credentials for your organisation with their name, client ID, creation date, expiry, and status.

API Credentials list showing all credentials with their name, client ID, created date, expiry date, and status
The API Credentials tab lists all credentials for your organisation. Active credentials show a green badge; revoked ones show red.

Create a new credential

  1. Open the creation dialog

    Click the + New Credential button in the top right corner.

  2. Enter a name and expiry

    Give the credential a descriptive name that identifies the system or integration it belongs to — for example, Payroll Integration or HR Dashboard. Choose an expiry period from the dropdown, or leave it without an expiry if the integration should run indefinitely.

    Generate New Credential dialog with fields for credential name and expiry period
    Enter a name that describes the system this credential is for. The expiry dropdown controls when the secret key will stop working.
  3. Save the secret key immediately

    After clicking Generate Credential, you'll see your new Credential ID and Secret Key. Copy both values and store them securely.

    The secret key is shown only once. It cannot be retrieved after you close this dialog. If you lose it, you'll need to revoke the credential and create a new one.
    Credential created dialog showing the Credential ID and Secret Key with copy buttons
    Copy both the Credential ID and Secret Key using the copy buttons. Pass these to your developer to configure the integration.

    Click I've saved my secret key when you've stored the values securely. These are the client_id and client_secret you'll use in the authentication step below.

Revoke a credential

If a credential is compromised or no longer needed, revoke it from the credentials list by clicking Revoke Access next to the credential.

Revoke Access confirmation dialog warning that the integration will stop working immediately
Revoking a credential takes effect immediately. Any integration using the credential will stop working until you generate a new one and update the integration's configuration.
Revoking is permanent. To restore access, generate a new credential and update your integration with the new client ID and secret.

Authenticate

The API uses OAuth 2.0 Client Credentials to authenticate machine-to-machine requests. You exchange your client ID and secret for a short-lived access token, then pass that token in every API request.

Keep your secret safe Your client secret is shown once when the credential is created and cannot be retrieved again. Store it in a secrets manager or vault — never commit it to source control or log it.

How it works

  1. Request a token

    Send your credentials to the token endpoint. You'll receive a JWT access token.

  2. Call the API

    Include the token in the Authorization header of every request.

  3. Refresh when expired

    Tokens expire after 1 hour. Request a new one before or when you receive a 401 response.

Request an access token

Make a POST request to the identity server's token endpoint with your credentials.

Request

curl -X POST https://auth.empoweringhr.com/connect/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials&\
client_id=YOUR_CLIENT_ID&\
client_secret=YOUR_CLIENT_SECRET&\
scope=processengineapiaccess"
using var httpClient = new HttpClient();

var response = await httpClient.PostAsync(
    "https://auth.empoweringhr.com/connect/token",
    new FormUrlEncodedContent(new Dictionary<string, string>
    {
        ["grant_type"]    = "client_credentials",
        ["client_id"]     = "YOUR_CLIENT_ID",
        ["client_secret"] = "YOUR_CLIENT_SECRET",
        ["scope"]         = "processengineapiaccess"
    }));

var json = await response.Content.ReadFromJsonAsync<JsonElement>();
var accessToken = json.GetProperty("access_token").GetString();
import requests

response = requests.post(
    "https://auth.empoweringhr.com/connect/token",
    data={
        "grant_type":    "client_credentials",
        "client_id":     "YOUR_CLIENT_ID",
        "client_secret": "YOUR_CLIENT_SECRET",
        "scope":         "processengineapiaccess",
    }
)

access_token = response.json()["access_token"]

Parameters

grant_type string required
Always client_credentials.
client_id string required
The client ID returned when the credential was created.
client_secret string required
The client secret shown once at credential creation.
scope string required
Always processengineapiaccess.

Response

200 OK
{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type":   "Bearer",
  "expires_in":  3600,
  "scope":       "processengineapiaccess"
}
FieldDescription
access_tokenA signed JWT. Include this in API requests.
token_typeAlways Bearer.
expires_inToken lifetime in seconds. Typically 3600 (1 hour).
scopeThe granted scope.

Use the token

Pass the access token in the Authorization header on every API call.

HTTP
GET /api/case-topics HTTP/1.1
Host: api.empoweringhr.com
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
Cache your token Request a new token only when the current one is expired or about to expire. A single token can be reused for all requests within its lifetime.

Your first API call

Once you have an access token, make your first call by retrieving the list of case topics available to your organisation. Case topics are the categories under which cases can be raised — for example, Absence, Disciplinary, or Grievance.

GET /api/case-topics

Returns the case topics enabled for your organisation.

Request

curl https://api.empoweringhr.com/api/case-topics \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", accessToken);

var response = await client.GetAsync(
    "https://api.empoweringhr.com/api/case-topics");

response.EnsureSuccessStatusCode();

var topics = await response.Content
    .ReadFromJsonAsync<List<CaseTopic>>();

foreach (var topic in topics)
    Console.WriteLine($"{topic.Id}: {topic.Name}");

record CaseTopic(string Id, string Name);
response = requests.get(
    "https://api.empoweringhr.com/api/case-topics",
    headers={"Authorization": f"Bearer {access_token}"}
)

topics = response.json()
for topic in topics:
    print(f"{topic['id']}: {topic['name']}")

Query parameters

employeeId string optional
Filter topics to those available at a specific employee's access level. When omitted, returns all enabled topics for your organisation.

Response

200 OK
[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "Absence"
  },
  {
    "id": "7cb2e4a1-8d3f-4b1e-9c5a-6d2f8e4b3a1c",
    "name": "Disciplinary"
  },
  {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "Grievance"
  }
]
FieldTypeDescription
idstringUnique identifier for the case topic.
namestringDisplay name of the topic.
What's next? Once you can retrieve case topics, you have a working integration. Explore the full API reference in the interactive Swagger documentation to see every available endpoint, request schema, and response model — and try calls directly from your browser.

Error responses

The API uses standard HTTP status codes and returns errors in RFC 7807 Problem Details format. Every error response includes a machine-readable status field and a human-readable detail message.

Error format

JSON
{
  "type":   "https://tools.ietf.org/html/rfc7231#section-6.5.3",
  "title":  "Forbidden",
  "status": 403,
  "detail": "Insufficient permissions."
}
FieldTypeDescription
typestringURI reference identifying the problem type.
titlestringShort summary of the problem.
statusintegerHTTP status code.
detailstringExplanation specific to this occurrence. Use this for troubleshooting.

HTTP status codes

Success

CodeMeaningWhen you'll see it
200OKRequest succeeded. Response body contains the requested data.
201CreatedResource was created. Response body contains the new resource.
204No ContentRequest succeeded. No response body.

Client errors

CodeMeaningWhat to do
400 Bad Request The request body is malformed or a required field is missing. Check the detail field for which parameter failed validation.
401 Unauthorized The access token is missing, expired, or invalid. Request a new token and retry.
403 Forbidden The token is valid but lacks the required role for this endpoint. Check that your credential has the correct permissions.
404 Not Found The requested resource does not exist. Verify the ID or path.
409 Conflict The request conflicts with the current state of the resource. For example, attempting to revoke an already-revoked credential.
422 Unprocessable Entity The request body is well-formed but semantically invalid. Check the detail field for the specific validation failure.

Server errors

CodeMeaningWhat to do
500 Internal Server Error Something went wrong on our side. Retry with exponential backoff. If the error persists, contact Empowering HR support.

Common authentication errors

These are the most frequent errors during integration setup. Each example shows the exact response you'll receive.

Missing token

401 Unauthorized
{
  "type":   "https://tools.ietf.org/html/rfc7231#section-6.3.1",
  "title":  "Unauthorized",
  "status": 401,
  "detail": "Missing authorization token"
}

The Authorization header is absent. Add Authorization: Bearer YOUR_TOKEN to the request.

Expired token

401 Unauthorized
{
  "type":   "https://tools.ietf.org/html/rfc7231#section-6.3.1",
  "title":  "Unauthorized",
  "status": 401,
  "detail": "Token has expired"
}

The token's exp claim is in the past. Request a new token from the token endpoint.

Wrong role

403 Forbidden
{
  "type":   "https://tools.ietf.org/html/rfc7231#section-6.5.3",
  "title":  "Forbidden",
  "status": 403,
  "detail": "Insufficient permissions. Required one of the following roles: ExternalMachineClient"
}

The token is valid but the client doesn't have the required role. This usually means the credential was not provisioned correctly. Contact your Empowering HR administrator.

Invalid credentials at token endpoint

If the token request itself fails (before you call the API), the identity server returns a standard OAuth 2.0 error:

400 Bad Request
{
  "error": "invalid_client"
}

The client ID or secret is wrong. Verify you're using the correct credentials for this environment.

Token lifecycle

Access tokens are short-lived by design. Handle them correctly to avoid unnecessary token requests and failed API calls.

PropertyValue
Token typeJWT (JSON Web Token), signed with RS256
Lifetime3600 seconds (1 hour)
Clock skew tolerance5 minutes
Refresh tokensNot issued. Request a new access token when the current one expires.

Recommended pattern

Cache the token in memory and track the expiry time. Request a new token when the cached one is expired or within a short buffer of expiring.

C# — Token cache
public class TokenProvider
{
    private string? _token;
    private DateTime _expiresAt = DateTime.MinValue;
    private static readonly TimeSpan Buffer = TimeSpan.FromMinutes(2);

    public async Task<string> GetTokenAsync()
    {
        if (_token is not null && DateTime.UtcNow < _expiresAt - Buffer)
            return _token;

        // Request a new token (see authentication section)
        var response = await RequestTokenAsync();

        _token = response.AccessToken;
        _expiresAt = DateTime.UtcNow.AddSeconds(response.ExpiresIn);

        return _token;
    }
}
Do not decode the token to check claims The token's internal structure is an implementation detail. Use the expires_in value from the token response to manage expiry. Token claims and format may change without notice.