Skip to navigation

Make your first request

Get a token and make a read-only call with curl.

Set API_HOST to the API domain assigned to your integration and export your credentials as environment variables. These examples use jq to read the token.

Platform API

1

Get an access token

TOKEN=$(curl -s "https://$API_HOST/api/v1/platform/token" \
-H "Authorization: Bearer $API_KEY" | jq -r .token)
2

Check connectivity

GET /api/v1/platform/ping confirms that the token is valid and that your address is allowed.

curl "https://$API_HOST/api/v1/platform/ping" \
-H "Authorization: Bearer $TOKEN"
{ "message": "pong" }

Company API

1

Get an access token

TOKEN=$(curl -s -X POST "https://$API_HOST/api/v1/access-token" \
-H "Authorization: Bearer $API_KEY" | jq -r .token)
2

List your allocation types

Any ReadOnly or Admin key can call this.

curl "https://$API_HOST/api/v1/allocationTypes" \
-H "Authorization: Bearer $TOKEN"
{ "allocationTypes": ["ClassRef", "DepartmentRef"] }

Next steps