Skip to content

Workspace and token ​

← Workspace APIs

GET /whoami ​

Returns the integration and workspace a token belongs to, and when the token expires. Call it to check that a new token works before you build against the API.

json
{
  "data": {
    "integration": { "id": 12, "name": "Example data warehouse" },
    "workspace": { "id": "8d6f1c2e-…", "code": "example" },
    "token_expires_at": "2027-11-06T10:15:00Z"
  }
}
FieldTypeMeaning
integration.idintegerThe integration's id in Engagifii.
integration.namestringThe integration's name.
workspace.idUUIDThe workspace this token reads.
workspace.codestringThe workspace's short code.
token_expires_atdate-time or nullWhen the token stops working. null means it does not expire.

GET /workspace ​

Workspace settings that change how Engagifii computes its figures. Read them if you want to reproduce Engagifii's reports from the raw data.

json
{
  "data": {
    "id": "8d6f1c2e-…",
    "timezone": { "name": "Eastern Standard Time", "iana": "America/New_York" },
    "currency": "USD",
    "training_credit_rule": "highest"
  }
}
FieldTypeMeaning
idUUIDThe workspace id. Same as workspace.id from /whoami.
timezoneobject or nullThe workspace's time zone. Engagifii's money reports (aged receivables, credit-note balances, booked revenue) count days in this time zone, so "as of 31 March" means the end of 31 March here, not in UTC. null if the workspace has none set.
timezone.namestringThe time zone as stored in Engagifii, for example Eastern Standard Time.
timezone.ianastring or nullThe matching IANA name, for example America/New_York. null for a time zone outside the US list Engagifii maps.
currencystringAlways USD.
training_credit_rulestringHow a person's training credits are totalled. See below.

training_credit_rule values ​

For each person, course and credit type, Engagifii counts:

ValueWhat is counted
firstThe first credit earned. This is the default when the workspace has no setting.
highestThe highest credit.
latestThe most recent credit.
every_creditEvery credit earned.

See /training-credits and /course-credits.