Get events on a resource
Returns the full record for all events that have occurred since the sync token was created.
A GET request to the endpoint /[path_to_resource]/events can be made in lieu of including the resource ID in the data for the request.
Asana limits a single sync token to 100 events. If more than 100 events exist for a given resource, has_more: true will be returned in the response, indicating that there are more events to pull.
Note: The resource returned will be the resource that triggered the event. This may be different from the one that the events were requested for. For example, a subscription to a project will contain events for tasks contained within the project.
Request
- Base URL: https://app.asana.com/api/1.0
- URL: https://app.asana.com/api/1.0/events
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.asana.com/-/oauth_authorize, token URL https://app.asana.com/-/oauth_token)
Query parameters
This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include. Properties can include nested fields. To learn more, see the input/output options guide.
Response
Successfully retrieved events.
Example response
{
"data": [
{
"user": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"resource": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task"
},
"type": "task",
"action": "changed",
"parent": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task"
},
"created_at": "2012-02-22T02:06:58.147Z",
"change": {
"field": "assignee",
"action": "changed",
"new_value": {
"gid": "12345",
"resource_type": "user"
},
"added_value": {
"gid": "12345",
"resource_type": "user"
},
"removed_value": {
"gid": "12345",
"resource_type": "user"
}
}
}
],
"sync": "de4774f6915eae04714ca93bb2f5ee81",
"has_more": true
}Changes
No recorded changes to this operation across all 51 revisions of this API.