Fetch a task
GET/v2/tasks/:id
Fetches a task, by ID only.
Request
Path Parameters
Task ID
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"
}
}