Quick start

This page shows you how to make your first API call to Tuum. Follow these four steps to authenticate and start exploring.

1

Get your credentials

Contact the Tuum team or your organisation's designated representative to receive your username and password.

2

Identify the base URL

Select the base URL for your target environment. Tuum uses different subdomains for different APIs.

For the sandbox environment, use:

Auth API
https://auth-api.sandbox.tuumplatform.com
Person API
https://person-api.sandbox.tuumplatform.com
circle-exclamation
3

Authenticate

Use the base URL and your credentials to authenticate by calling the authentication APIarrow-up-right endpoint.

Request bash
curl -X POST 'https://auth-api.sandbox.tuumplatform.com/api/v1/employees/authorise' \
-H 'Content-Type: application/json' \
--data-raw '{
"username": "your_username",
"password": "your_password"
}'

Upon a successful authentication, you will receive a JWTarrow-up-right.

Response
{
    "errors": null,
    "validationErrors": null,
    "data": {
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHBpcnlEVGltZSI6IjIwMjMtMDMtMDhUMDg6NDg6NDkiLCJyb2xlcyI6WyJBRE1JTiJdLCJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHAiOjE2NzgyNjUzMjl9.G7rqNTJbeyMdMy1ZGwu1G7JRSvwAg084IiBYhOEz4I8"
    }
}
circle-exclamation
4

Start making API calls

Include your JWT in the x-auth-token header for all API calls.

To create a person record, call the create personarrow-up-right API endpoint.

If your call is successful, you will receive the following response.

Next steps

Decide what you would like to try next:

  • Explore the Employee API to see RBAC in action:

  curl -X GET 'https://employee-api.sandbox.tuumplatform.com/api/v2/employees/{employeeId}' \
    --header 'x-auth-token: your-jwt-token'

Discover additional sample calls for the Employee API in the API cookbookarrow-up-right, or browse all endpoints in the API explorerarrow-up-right.

  • Retrieve a person record you created:

  curl -X GET 'https://person-api.sandbox.tuumplatform.com/api/v2/persons/{personId}' \
    --header 'x-auth-token: your-jwt-token'

Discover additional sample calls for the Person API in the API cookbookarrow-up-right, or browse all endpoints in the API explorerarrow-up-right.

Last updated

Was this helpful?