> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revenuebee.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# tasks

> Work on a customer, for your team or the assistant.

## tasks.create

```ts theme={null}
const [task, error] = await crm.tasks.create({
  partyId: contact.id,
  type: "call",
  title: "Walk them through the new dashboard",
  priority: "high",
  dueAt: "2026-12-01T15:00:00Z",
});
```

**partyId** `string` *required*

The CRM's id for the customer, from [`contacts.upsert`](https://docs.revenuebee.ai/sdk/upsert-contact) or
[`contacts.resolve`](https://docs.revenuebee.ai/sdk/resolve-contact).

**type** `string` *required*

One of `call`, `email`, `sms`, `whatsapp`, `meeting`, `todo`.

**title** `string` *required*

Up to 200 characters.

**priority** `string`

`low`, `normal`, `high` or `urgent`. `normal` when omitted.

**body** `string`

**dueAt** `string`

ISO 8601.

The task goes to the customer's owner.

## tasks.list

The customer's open tasks.

```ts theme={null}
const [tasks, error] = await crm.tasks.list({ partyId: contact.id });
```

## tasks.complete

```ts theme={null}
await crm.tasks.complete({ taskId: task.id });
```

**taskId** `string` *required*

The task's `id`, from `tasks.create` or `tasks.list`.

A task already completed or dismissed answers `bad_request`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.