Skip to main content
The TasksResource provides methods to list and retrieve tasks associated with projects.

List tasks

Retrieve a paginated list of tasks with optional filtering.
const response = await avala.tasks.list({
  project: "project_uid",
  status: "completed",
  limit: 50
});

Parameters

project
string
Filter by project UID
status
string
Filter by task status
limit
number
Maximum number of results to return
cursor
string
Cursor for pagination

Returns

items
Task[]
Array of task objects
nextCursor
string | null
Cursor for the next page of results
previousCursor
string | null
Cursor for the previous page of results
hasMore
boolean
Whether there are more results available

Get a task

Retrieve a specific task by its unique identifier.
const task = await avala.tasks.get("task_uid");

Parameters

uid
string
required
The unique identifier of the task

Returns

uid
string
The unique identifier for the task
type
string | null
The type of the task
name
string | null
The name of the task
status
string | null
The current status of the task
project
string | null
The project UID this task belongs to
createdAt
string | null
The timestamp when the task was created
updatedAt
string | null
The timestamp when the task was last updated

Build docs developers (and LLMs) love