Up to 9 days of trackable changes ("events") for an account can be accessed via the Subscribed Events API. For a list of all the event types tracked by Subscribed Events, please see the Knowledge Base. Note that only Account Administrators can access Subscribed Events.
Some actions performed in Kantata OX can generate multiple events. For instance, approving an Expense Report will generate expense_report:updated
and expense:updated
events. Note that events for the same action are not guaranteed to appear in the exact order the changes were completed.
Also note that although we try to create events within a few minutes of an action being performed, events may take some time to appear.
Additionally, events may sometimes be duplicated. Your application should handle duplicate events appropriately.
Returns up to 9 days of records for all event types, unless filter parameters have been applied.
Only records associated with the requester's Kantata OX account are returned.
This endpoint returns structured Subscribed Event objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results
array
and will be indexed by ID in the subscribed_events
top-level JSON key.
Please see our Response Format section for more information.
created_after | string <date-time> Filter for events created after a specified datetime. Events may be generated out of order or the
|
created_before | string <date-time> Filter for events created before a specified datetime. Events may be generated out of order or the
|
event_types | string Filter for records of specified event types.
Specify multiple event types in a comma-separated list, like
|
include | string Any of the below associations can be included in your request by providing the
For example, a If the subject is not available, |
most_recent | boolean If true, only the most recent event will be returned for each subject
(i.e. the most recent change that occurred for each subject). This filter cannot be used
in combination with |
most_recent_by_event_type | boolean If true, only the most recent event of each event type will be returned for each subject. For example, if a workspace was created, updated 3 times, and deleted, the following events will be
generated: 1 |
only | string Allows you to request one or more resources directly by ID. Multiple IDs can be supplied
in a comma separated list, like |
optional_fields | Array of strings Allows you to request one or more optional fields as an array. |
order | string Default: "created_at:desc" Supply Valid values: |
page | integer <int32> Default: 1 |
per_page | integer <int32> <= 200 Default: 20 |
subject_id | string Filter for events belonging to a specific subject (e.g. a user, a project, etc). When using this filter,
you must also provide a |
subject_type | string Filter for events by a specific subject type. You can pass in only one subject type for this parameter. Supported subject types: "AccountColor", "AccountLocation", "AccountMembership", "Assignment", "BudgetChangeOrder", "CostRate", "CustomField", "CustomFieldSet", "DefaultStatusSet", "EmailAddress", "Estimate", "EstimateScenario", "EstimateScenarioResource", "Expense", "ExpenseReportSubmission", "Invoice", "LineItemLock", "Organization", "OrganizationMembership", "Participation", "ProjectAccessControl", "Role", "ScheduleChangeOrder", "Skill", "SkillMembership", "StatusSet", "StatusSetOption", "Story", "StoryAllocationDay", "TimeEntry", "TimeOffEntry", "TimesheetSubmission", "User", "Vendor", "Workspace", "WorkspaceAllocation", "WorkspaceApprover", "WorkspaceGroup", "WorkspaceInvitation", "WorkspaceResource", "WorkspaceStatusSet", "Workweek", "WorkweekMembership". |
user_ids | string Filter for events triggered by specific users. Multiple IDs can be provided in a comma-separated list
(e.g. |
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "subscribed_events": {
- "property1": {
- "account_id": 0,
- "context_workspace_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "current_payload": "string",
- "event_type": "string",
- "payload_changes": "string",
- "previous_payload": "string",
- "subject_changed_at": "2019-08-24T14:15:22Z",
- "subject_id": 0,
- "subject_ref": {
- "key": "string",
- "id": "string"
}, - "subject_type": "string",
- "user_id": 0
}, - "property2": {
- "account_id": 0,
- "context_workspace_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "current_payload": "string",
- "event_type": "string",
- "payload_changes": "string",
- "previous_payload": "string",
- "subject_changed_at": "2019-08-24T14:15:22Z",
- "subject_id": 0,
- "subject_ref": {
- "key": "string",
- "id": "string"
}, - "subject_type": "string",
- "user_id": 0
}
}
}