Rest API
Get tasks
GET /api/v1/tasks
Retrieve the tasks for a website. Tasks are work items the Unless platform creates for the account team, such as knowledge suggestions from the AI, detected knowledge gaps, flagged conversations to review, and sales or retention signals.
Use cases
- Account investigation: List open tasks to understand what needs attention on an account
- Task triage: Fetch tasks before updating their state or assignee with the update endpoint
- Reporting: Count tasks per state to summarise the account’s backlog
Notes
websiteIdis required as a query parameter and should match thex-website-idheader- Filter on
state(open,doneordeleted) to reduce the result set, tasks of every state are returned otherwise - Tasks are sorted by
updatedAt, most recent first
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Your API key from account settings.
The email address of your user.
The ID of your account. You can find this in the account settings.
The ID of the workspace you want to use.
Query Parameters
Section titled “Query Parameters ”The website to list tasks for.
Only return tasks in this state.
Responses
Section titled “ Responses ”The matching tasks with a total count.
object
object
The account ID that owns this task.
Unique identifier for this task.
Short title of the task.
Longer explanation of what the task is about.
The kind of work this task represents.
Where the task originated.
Current state of the task.
Arbitrary structured payload attached to the task, depends on the task type.
object
Email address of the user the task is assigned to.
The website this task belongs to.
Unix timestamp (ms) when the task was created.
Unix timestamp (ms) when the task was last updated.
Example
{ "tasks": [ { "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "taskId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "name": "Add a refund policy article", "description": "Several visitors asked about refunds and the AI had no source to answer from.", "type": "knowledge-gap-detected", "source": "ai", "state": "open", "websiteId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "createdAt": 1640995200000, "updatedAt": 1641081600000 } ], "count": 1}Bad request - missing websiteId.
Unauthorized - invalid API key.