List tasks
GET/v2/tasks
Fetches multiple task records. The records can be filtered, paged, and sorted according to the respective parameters.
Request
Query Parameters
IDs of tasks to fetch.
Filters tasks by the user to which they are assigned.
Filters tasks by the person to which they are associated.
Filters tasks by the account to which they are associated.
Filters tasks by their current state. Valid current_states include: ['scheduled', 'completed'].
Filters tasks by their task type. Valid task_types include: ['call', 'email', 'general'].
Filters tasks by time interval. Valid time_intervals include: ['overdue', 'today', 'tomorrow', 'this_week', 'next_week'].
Filters tasks by time interval. Valid time_intervals include: ['today', 'yesterday', 'this_week', 'previous_week', 'this_month'].
Filters tasks by idempotency key.
Filters tasks by locale of the person to which they are associated.
Filters tasks by source.
Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are greater than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are less than the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are less than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are greater than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are less than the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are less than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are greater than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are less than the provided iso8601 timestamp. The comparison is done using microsecond precision.
Returns all matching records that are less than or equal to the provided iso8601 timestamp. The comparison is done using microsecond precision.
Key to sort on, must be one of: due_date, due_at, utc_offset, company, updated_at, completed_at, salesloft.prioritizers/rhythm. Defaults to due_date
Direction to sort in, must be one of: ASC, DESC. Defaults to ASC
How many records to show per page in the range [1, 100]. Defaults to 25
The current page to fetch results from. Defaults to 1
Whether to include total_pages and total_count in the metadata. Defaults to false
Specifies whether the max limit of 10k records should be applied to pagination counts. Affects the total_count and total_pages data
Responses
- 200
Success
- application/json
- Schema
- Example (from schema)
Schema
ID of Task
Datetime of when the Task was created
Datetime of when the Task was last updated
A description of the task recorded for person at completion time
Date of when the Task is due, ISO-8601 date format required
Datetime of when the Task is due, can be null. ISO-8601 datetime format required
Subject line of the task
The state of the task. Valid states are: scheduled, completed
person object
The person to be contacted
opportunity object
The opportunity associated with task
user object
User who is assigned the task
created_by_user object
User who created the task
The type of the task. Valid types are: call, email, general
Datetime of when the user will be reminded of the task, ISO-8601 datetime format required
Datetime of when the the task will expire, ISO-8601 datetime format required
Datetime of when the task was completed, ISO-8601 datetime format required
completed_by object
User who completed the task
{
"id": 1,
"created_at": "2024-01-01T00:00:00.000000+00:00",
"updated_at": "2024-01-01T00:00:00.000000+00:00",
"description": "Ask John Wick about his dog.",
"due_date": "2025-01-01",
"due_at": "2024-01-01T00:00:00.000000+00:00",
"subject": "Call John Wick",
"current_state": "scheduled",
"person": {
"id": 1,
"_href": "https://api.salesloft.com/v2/people/1"
},
"opportunity": {
"id": 1,
"_href": "https://api.salesloft.com/v2/opportunities/1"
},
"user": {
"id": 1,
"_href": "https://api.salesloft.com/v2/users/1"
},
"created_by_user": {
"id": 1,
"_href": "https://api.salesloft.com/v2/users/1"
},
"task_type": "call",
"remind_at": "2024-01-01T00:00:00.000000+00:00",
"expires_after": "2024-01-01T00:00:00.000000+00:00",
"completed_at": "2024-01-01T00:00:00.000000+00:00",
"completed_by": {
"id": 1,
"_href": "https://api.salesloft.com/v2/users/1"
}
}