# Bonsai

> Manage your Bonsai clients, deals, projects, tasks, time and invoices.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/bonsai

## Actions

### Comment on task

Post a comment on a task, which notifies the people following it.

**Inputs**

- Task (`task_id`, text, required): The ID of the task to comment on.
- Comment (`body_text`, text, required): What the comment says.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "author_member_id": 1,
      "body_plain_text": "Looks good to me.",
      "commentable_id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
      "commentable_type": "Task",
      "created_at": "2026-01-15T10:30:00Z",
      "id": 42,
      "kind": "single"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Create company

Add a client company to your Bonsai CRM.

**Inputs**

- Name (`name`, text, required): The company's name.
- Description (`description`, text): Notes about the company.
- Industry (`industry`, text): The industry the company works in. One of: `arts_and_entertainment` (Arts and entertainment), `business_and_consumer_services` (Business and consumer services), `community_and_society` (Community and society), `computers_electronics_and_technology` (Computers, electronics and technology), `e_commerce_and_shopping` (E-commerce and shopping), `finance`, `food_and_drink` (Food and drink), `gambling`, `games`, `health`, and 14 more.
- Company size (`company_size`, text): How many people work there. One of: `size_1_10` (1 to 10), `size_11_50` (11 to 50), `size_51_200` (51 to 200), `size_201_1000` (201 to 1,000), `size_1000_plus` (More than 1,000).
- Source (`source`, text): How you found this client. One of: `organic_search` (Organic search), `paid_search` (Paid search), `email_marketing` (Email marketing), `organic_social` (Organic social), `referrals`, `other_campaigns` (Other campaigns), `direct_traffic` (Direct traffic), `offline_sources` (Offline sources), `paid_social` (Paid social), `ai_referrals` (AI referrals).
- Main contact (`default_contact_id`, number): The contact who is this company's main point of contact.
- Domains (`domains`, list): Website domains that belong to the company, such as acme.com.
- LinkedIn (`linkedin`, text): Link to the company's LinkedIn page.
- Instagram (`instagram`, text): Link to the company's Instagram profile.
- X (`twitter`, text): Link to the company's X profile.
- Facebook (`facebook`, text): Link to the company's Facebook page.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "avatar_url": "https://example.com/record/1",
      "company_size": "size_11_50",
      "created_at": "2026-01-15T10:30:00Z",
      "default_contact_id": 1,
      "description": "Long-standing client.",
      "domains": [
        "Example"
      ],
      "facebook": "https://www.facebook.com/acme",
      "id": 42,
      "industry": "finance",
      "instagram": "https://www.instagram.com/acme",
      "linkedin": "https://www.linkedin.com/company/acme",
      "name": "Acme Corp",
      "source": "referrals",
      "twitter": "https://x.com/acme",
      "url": "https://example.com/record/1"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Create contact

Add a person to your Bonsai CRM, linked to a company if you choose one.

**Inputs**

- Name (`name`, text, required): The person's full name.
- Email (`email`, text, required): Their email address. It must not belong to another contact.
- Job title (`job_title`, text): Their job title.
- Phone number (`phone_number`, text): Their phone number.
- Company (`company_id`, number): The company they work at.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "company_ids": [
        1
      ],
      "created_at": "2026-01-15T10:30:00Z",
      "default_company_id": 1,
      "email": "jordan@acme.com",
      "id": 42,
      "job_title": "Operations lead",
      "name": "Acme Corp",
      "phone_number": "+1 555 0100",
      "url": "https://example.com/record/1"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Create deal

Add a deal with a client to your sales pipeline.

**Inputs**

- Title (`title`, text, required): What the deal is called.
- Company (`company_id`, number, required): The client company the deal is with.
- Contact (`contact_id`, number): A contact at that company to attach. Bonsai uses the company's main contact when left empty.
- Owner (`assignee_member_id`, number): The team member who owns the deal. Leave empty for an unassigned deal.
- Stage (`board_group_id`, text): The pipeline stage to put the deal in. Bonsai uses the first stage when left empty.
- Value (`deal_value`, text): What the deal is worth, such as 2500.00.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "assignee_member_id": 1,
      "assignee_member_name": "Example",
      "board_group_id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
      "close_date": "2026-01-15",
      "company_name": "Example",
      "contact_ids": [
        1
      ],
      "currency": "USD",
      "deal_number": "D-918",
      "deal_value": "2500.00",
      "id": 42,
      "probability": 50,
      "status": "In Progress",
      "title": "Website redesign",
      "url": "https://example.com/record/1"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Create project

Start a project for a client company.

**Inputs**

- Title (`title`, text, required): What the project is called.
- Company (`company_id`, number, required): The client company the project is for.
- Billing (`billing_type`, text, required): How the project bills the client. One of: `time` (Hourly), `fixed_fee` (Fixed fee), `retainer`, `not_billable` (Not billable).
- Fee (`billing_fee`, text): The agreed fee, such as 1500.00. Needed for a fixed fee or retainer; leave empty otherwise.
- Retainer cycle (`billing_cycle`, text): How often a retainer bills. Needed for a retainer only. One of: `weekly`, `monthly`, `quarterly`, `biannually` (Twice a year), `yearly`.
- Currency (`currency`, text): The three-letter currency code the project bills in, such as USD. Bonsai uses the client's currency when left empty.
- Start date (`start_date`, date): The day work starts. Bonsai uses today when left empty.
- Finish date (`finish_date`, date): The day work ends.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "billing_cycle": "monthly",
      "billing_fee": "1500.00",
      "billing_type": "time",
      "board_group_id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
      "budget": {
        "amount": "10.0",
        "calculation_base": "billable_time",
        "calculation_mode": "fee",
        "current_cycle": {
          "closing_date": "2026-01-15",
          "consumed_amount": "300.00",
          "consumed_percentage": 25,
          "opening_date": "2026-01-15"
        },
        "expenses_calculation_base": "all",
        "id": 42,
        "over_budget_notification": "enabled",
        "over_budget_notification_threshold": "80.0",
        "reset_frequency": "never"
      },
      "company_id": 1,
      "company_name": "Example",
      "currency": "USD",
      "finish_date": "2026-01-15",
      "id": 42,
      "number": "T-12",
      "public_url_token": "x4n2",
      "sequence": 3,
      "start_date": "2026-01-15",
      "title": "Website redesign",
      "url": "https://example.com/record/1"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Create task

Add a task, on a project or deal or on its own.

**Inputs**

- Title (`title`, text, required): What the task is called.
- Project (`project_id`, number): The project the task belongs to.
- Deal (`deal_id`, number): The deal the task belongs to.
- Parent task (`parent_task_uuid`, text): The task to put this one under as a subtask. Leave the project empty when you set this.
- Assignee (`assignee_member_id`, number): The team member the task is for.
- Priority (`priority`, text): How urgent the task is. One of: `urgent`, `high`, `medium`, `low`.
- Start date (`start_date`, date): The day work on the task starts.
- Due date (`due_date`, date): The day the task is due.
- Description (`description`, text): What the task involves. Simple HTML such as <p> and <strong> is kept.
- Estimate in minutes (`time_estimate_in_minutes`, number): How long the task should take, in minutes. At least 1.
- Status (`task_status_id`, text): The board column to put the task in. Bonsai uses To Do when left empty.
- Billable (`billable`, true/false): Whether time tracked on the task can be billed.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "assignee_id": 1,
      "assignee_member_id": 1,
      "assignee_member_name": "Example",
      "billable": true,
      "company_tags": [
        {
          "id": 42,
          "name": "Acme Corp"
        }
      ],
      "completed_at": "2026-01-15T10:30:00Z",
      "creator_member_id": 1,
      "deal_id": 1,
      "description_html": "Example",
      "description_plain_text": "Example",
      "due_date": "2026-01-15",
      "number": "T-12",
      "parent_task_uuid": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
      "priority": "high",
      "project_id": 1,
      "project_title": "Example",
      "start_date": "2026-01-15",
      "task_status": {
        "color": "#3b82f6",
        "id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
        "position": 1,
        "state": "active",
        "status": "In Progress"
      },
      "time_estimate_in_minutes": 90,
      "title": "Website redesign",
      "url": "https://example.com/record/1",
      "uuid": "0b6d9f3e-2c41-4a8e-9f0d-7e5a1c2b3d4e"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Delete task

Delete a task. Bonsai sends back how it looked before it was deleted.

**Inputs**

- Task (`uuid`, text, required): The ID of the task to delete.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "assignee_id": 1,
      "assignee_member_id": 1,
      "assignee_member_name": "Example",
      "billable": true,
      "company_tags": [
        {
          "id": 42,
          "name": "Acme Corp"
        }
      ],
      "completed_at": "2026-01-15T10:30:00Z",
      "creator_member_id": 1,
      "deal_id": 1,
      "description_html": "Example",
      "description_plain_text": "Example",
      "due_date": "2026-01-15",
      "number": "T-12",
      "parent_task_uuid": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
      "priority": "high",
      "project_id": 1,
      "project_title": "Example",
      "start_date": "2026-01-15",
      "task_status": {
        "color": "#3b82f6",
        "id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
        "position": 1,
        "state": "active",
        "status": "In Progress"
      },
      "time_estimate_in_minutes": 90,
      "title": "Website redesign",
      "url": "https://example.com/record/1",
      "uuid": "0b6d9f3e-2c41-4a8e-9f0d-7e5a1c2b3d4e"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Get company

Get one company by its ID.

**Inputs**

- Company (`id`, number, required): The company to get.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "avatar_url": "https://example.com/record/1",
      "company_size": "size_11_50",
      "created_at": "2026-01-15T10:30:00Z",
      "default_contact_id": 1,
      "description": "Long-standing client.",
      "domains": [
        "Example"
      ],
      "facebook": "https://www.facebook.com/acme",
      "id": 42,
      "industry": "finance",
      "instagram": "https://www.instagram.com/acme",
      "linkedin": "https://www.linkedin.com/company/acme",
      "name": "Acme Corp",
      "source": "referrals",
      "twitter": "https://x.com/acme",
      "url": "https://example.com/record/1"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Get contact

Get one contact by their ID.

**Inputs**

- Contact (`id`, number, required): The contact to get.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "company_ids": [
        1
      ],
      "created_at": "2026-01-15T10:30:00Z",
      "default_company_id": 1,
      "email": "jordan@acme.com",
      "id": 42,
      "job_title": "Operations lead",
      "name": "Acme Corp",
      "phone_number": "+1 555 0100",
      "url": "https://example.com/record/1"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Get task

Get one task by its ID, with its description.

**Inputs**

- Task (`uuid`, text, required): The task's ID.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "assignee_id": 1,
      "assignee_member_id": 1,
      "assignee_member_name": "Example",
      "billable": true,
      "company_tags": [
        {
          "id": 42,
          "name": "Acme Corp"
        }
      ],
      "completed_at": "2026-01-15T10:30:00Z",
      "creator_member_id": 1,
      "deal_id": 1,
      "description_html": "Example",
      "description_plain_text": "Example",
      "due_date": "2026-01-15",
      "number": "T-12",
      "parent_task_uuid": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
      "priority": "high",
      "project_id": 1,
      "project_title": "Example",
      "start_date": "2026-01-15",
      "task_status": {
        "color": "#3b82f6",
        "id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
        "position": 1,
        "state": "active",
        "status": "In Progress"
      },
      "time_estimate_in_minutes": 90,
      "title": "Website redesign",
      "url": "https://example.com/record/1",
      "uuid": "0b6d9f3e-2c41-4a8e-9f0d-7e5a1c2b3d4e"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List companies

List the client companies in your CRM, or search them by name.

**Inputs**

- Name (`name`, text): Only companies whose name has a word starting with this text.
- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "archived_at": "2026-01-15T10:30:00Z",
        "avatar_url": "https://example.com/record/1",
        "company_size": "size_11_50",
        "created_at": "2026-01-15T10:30:00Z",
        "default_contact_id": 1,
        "description": "Long-standing client.",
        "domains": [
          "Example"
        ],
        "facebook": "https://www.facebook.com/acme",
        "id": 42,
        "industry": "finance",
        "instagram": "https://www.instagram.com/acme",
        "linkedin": "https://www.linkedin.com/company/acme",
        "name": "Acme Corp",
        "source": "referrals",
        "twitter": "https://x.com/acme",
        "url": "https://example.com/record/1"
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List contacts

List the people in your CRM, or search them by name, email or company.

**Inputs**

- Name (`name`, text): Only contacts whose name contains this text.
- Email (`email`, text): Only contacts whose email address contains this text.
- Companies (`company_id`, list): Only contacts linked to these companies.
- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "archived_at": "2026-01-15T10:30:00Z",
        "company_ids": [
          1
        ],
        "created_at": "2026-01-15T10:30:00Z",
        "default_company_id": 1,
        "email": "jordan@acme.com",
        "id": 42,
        "job_title": "Operations lead",
        "name": "Acme Corp",
        "phone_number": "+1 555 0100",
        "url": "https://example.com/record/1"
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List deals

List the deals in your pipeline, or search them by title, owner or stage.

**Inputs**

- Title (`title`, text): Only deals whose title has a word starting with this text.
- Deal number (`deal_number`, text): Only deals whose reference starts with this text.
- Owners (`assignee_member_id`, list): Only deals owned by these team members.
- Stages (`board_group_id`, list): Only deals in these pipeline stages.
- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "archived_at": "2026-01-15T10:30:00Z",
        "assignee_member_id": 1,
        "assignee_member_name": "Example",
        "board_group_id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
        "close_date": "2026-01-15",
        "company_name": "Example",
        "contact_ids": [
          1
        ],
        "currency": "USD",
        "deal_number": "D-918",
        "deal_value": "2500.00",
        "id": 42,
        "probability": 50,
        "status": "In Progress",
        "title": "Website redesign",
        "url": "https://example.com/record/1"
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List invoices

List your invoices, newest first, with their line items.

**Inputs**

- Invoice numbers (`invoice_number`, list): Only invoices with these exact numbers.
- Projects (`project_id`, list): Only invoices for these projects.
- Companies (`company_id`, list): Only invoices for these client companies.
- Contacts (`contact_id`, list): Only invoices addressed to these contacts.
- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "client_email": "alex@example.com",
        "client_name": "Example",
        "company_id": 1,
        "contact_id": 1,
        "created_at": "2026-01-15T10:30:00Z",
        "currency": "USD",
        "discount_amount": "0.00",
        "due_date": "2026-01-15",
        "due_date_option": "after_x_days",
        "id": 42,
        "invoice_items": [
          {
            "amount": "10.0",
            "description": "Long-standing client.",
            "id": 42,
            "name": "Acme Corp",
            "rate": "120.00",
            "total": "1200.00",
            "unit_type": "hours"
          }
        ],
        "invoice_number": "INV-1042",
        "issued_date": "2026-01-15",
        "kind": "single",
        "project_id": 1,
        "public_url_token": "x4n2",
        "recurrence_active": true,
        "repeat_finish_date": "2026-01-15",
        "repeat_interval": "monthly",
        "sent_date": "2026-01-15",
        "series_id": 1,
        "status": "In Progress",
        "subtotal": "1200.00",
        "tax_amount": "0.00",
        "title": "Website redesign",
        "total_amount": "1200.00",
        "url": "https://example.com/record/1"
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List pipeline stages

List the stages of your deal and project boards, such as Won or Lost.

**Inputs**

- Name (`name`, text): Only stages whose name contains this text.
- Board (`resource_type`, text): Which board's stages to list. Leave empty for both. One of: `Deal` (Deals), `Project` (Projects).
- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "color": "#3b82f6",
        "deal_probability": "50.0",
        "id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
        "name": "Acme Corp",
        "position": 1,
        "resource_type": "Deal",
        "state": "active"
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List projects

List your projects, or search them by title, stage or status.

**Inputs**

- Title (`title`, text): Only projects whose title has a word starting with this text.
- Status (`status`, text): Which projects to list. Bonsai lists active ones when left empty. One of: `active`, `completed`, `archived`, `not_archived` (Not archived), `all`.
- Stages (`board_group_id`, list): Only projects in these board stages.
- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "billing_cycle": "monthly",
        "billing_fee": "1500.00",
        "billing_type": "time",
        "board_group_id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
        "budget": {
          "amount": "10.0",
          "calculation_base": "billable_time",
          "calculation_mode": "fee",
          "current_cycle": {
            "closing_date": "2026-01-15",
            "consumed_amount": "300.00",
            "consumed_percentage": 25,
            "opening_date": "2026-01-15"
          },
          "expenses_calculation_base": "all",
          "id": 42,
          "over_budget_notification": "enabled",
          "over_budget_notification_threshold": "80.0",
          "reset_frequency": "never"
        },
        "company_id": 1,
        "company_name": "Example",
        "currency": "USD",
        "finish_date": "2026-01-15",
        "id": 42,
        "number": "T-12",
        "public_url_token": "x4n2",
        "sequence": 3,
        "start_date": "2026-01-15",
        "title": "Website redesign",
        "url": "https://example.com/record/1"
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List task statuses

List the columns of your task board, such as To Do, In Progress and Done.

**Inputs**

- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "color": "#3b82f6",
        "id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
        "position": 1,
        "state": "active",
        "status": "In Progress"
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List tasks

List tasks, filtered by project, assignee, status, priority or due date.

**Inputs**

- Title (`title`, text): Only tasks whose title contains this text.
- Projects (`project_id`, list): Only tasks on these projects.
- Deals (`deal_id`, list): Only tasks on these deals.
- Statuses (`task_status_id`, list): Only tasks in these board columns, whether active, completed or archived.
- Priorities (`priority`, list): Only tasks with these priorities. One or more of: `urgent`, `high`, `medium`, `low`.
- Show (`scope`, text): Which tasks to list. Bonsai lists active ones when left empty. One of: `active`, `completed`, `archived`, `all`, `upcoming_and_overdue` (Upcoming and overdue), `unplanned` (Without dates), `planned` (With dates), `my_tasks` (Mine).
- Due (`due`, text): Only tasks due in this window. Don't combine it with the due dates. One of: `today`, `overdue`, `today_or_overdue` (Today or overdue), `this_week` (This week), `this_month` (This month), `upcoming`.
- Due on or after (`due_from`, date): Only tasks due on or after this day.
- Due on or before (`due_to`, date): Only tasks due on or before this day.
- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "archived_at": "2026-01-15T10:30:00Z",
        "assignee_id": 1,
        "assignee_member_id": 1,
        "assignee_member_name": "Example",
        "billable": true,
        "company_tags": [
          {
            "id": 42,
            "name": "Acme Corp"
          }
        ],
        "completed_at": "2026-01-15T10:30:00Z",
        "creator_member_id": 1,
        "deal_id": 1,
        "due_date": "2026-01-15",
        "number": "T-12",
        "parent_task_uuid": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
        "priority": "high",
        "project_id": 1,
        "project_title": "Example",
        "start_date": "2026-01-15",
        "task_status": {
          "color": "#3b82f6",
          "id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
          "position": 1,
          "state": "active",
          "status": "In Progress"
        },
        "time_estimate_in_minutes": 90,
        "title": "Website redesign",
        "url": "https://example.com/record/1",
        "uuid": "0b6d9f3e-2c41-4a8e-9f0d-7e5a1c2b3d4e"
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List team members

List the people in your Bonsai account, with the IDs used to assign work.

**Inputs**

- Name (`name`, text): Only members whose name contains this text.
- Projects (`project_id`, list): Only members assigned to these projects.
- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "company_member_id": 7,
        "confirmed_at": "2026-01-15T10:30:00Z",
        "deactivated_at": "2026-01-15T10:30:00Z",
        "declined_at": "2026-01-15T10:30:00Z",
        "email": "jordan@acme.com",
        "name": "Acme Corp",
        "permission_profile": "Owner",
        "role": "Designer",
        "user_id": 15
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### List time entries

List logged time, newest first, filtered by date, person, project or client.

**Inputs**

- From (`date_from`, date): Only time logged on or after this day.
- To (`date_to`, date): Only time logged on or before this day.
- Team members (`owner_member_id`, list): Only time logged for these team members.
- Projects (`project_id`, list): Only time logged on these projects.
- Companies (`company_id`, list): Only time logged on these clients' projects.
- Billing status (`billing_status`, list): Only entries in these billing states. Needs permission to see billing. One or more of: `billed`, `unbilled` (Not billed yet), `non_billable` (Not billable).
- Page (`page_number`, number): Which page of results to get, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to get per page, up to 100. Bonsai sends 25 when left empty. From 1 to 100.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "billable_amount": "120.00",
        "billing_status": "unbilled",
        "created_at": "2026-01-15T10:30:00Z",
        "currency": "USD",
        "date": "2026-01-15",
        "formatted_time": "01:00:00",
        "key": "te_8f2k1m",
        "non_billable": true,
        "notes": "Design review",
        "owner_member_id": 1,
        "project_id": 1,
        "rate": "120.00",
        "seconds": 3600,
        "status": "In Progress",
        "task_uuid": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60"
      }
    ],
    "meta": {
      "pagination": {
        "has_more": false,
        "page": 1,
        "page_size": 25
      },
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Log time

Log time worked, on a project or task.

**Inputs**

- Seconds (`seconds`, number, required): How long the work took, in seconds. An hour is 3600. At least 1.
- Date (`date`, date, required): The day the work was done.
- Project (`project_id`, number): The project to log time on. Ignored when you choose a task.
- Task (`task_uuid`, text): The ID of the task to log time on. The project comes with it.
- Notes (`notes`, text): What the time was spent on.
- Hourly rate (`rate`, text): The hourly rate to bill, such as 120.00. Only used if you can set billing.
- Not billable (`non_billable`, true/false): Leave this entry out of billing. Only used if you can set billing.
- Team member (`owner_member_id`, number): Who the time is for. Bonsai uses you when left empty.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "billable_amount": "120.00",
      "billing_status": "unbilled",
      "created_at": "2026-01-15T10:30:00Z",
      "currency": "USD",
      "date": "2026-01-15",
      "formatted_time": "01:00:00",
      "key": "te_8f2k1m",
      "non_billable": true,
      "notes": "Design review",
      "owner_member_id": 1,
      "project_id": 1,
      "rate": "120.00",
      "seconds": 3600,
      "status": "In Progress",
      "task_uuid": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Update company

Change a company's details. Fields you leave empty keep their current value.

**Inputs**

- Company (`id`, number, required): The company to change.
- Name (`name`, text): The company's name.
- Description (`description`, text): Notes about the company.
- Industry (`industry`, text): The industry the company works in. One of: `arts_and_entertainment` (Arts and entertainment), `business_and_consumer_services` (Business and consumer services), `community_and_society` (Community and society), `computers_electronics_and_technology` (Computers, electronics and technology), `e_commerce_and_shopping` (E-commerce and shopping), `finance`, `food_and_drink` (Food and drink), `gambling`, `games`, `health`, and 14 more.
- Company size (`company_size`, text): How many people work there. One of: `size_1_10` (1 to 10), `size_11_50` (11 to 50), `size_51_200` (51 to 200), `size_201_1000` (201 to 1,000), `size_1000_plus` (More than 1,000).
- Source (`source`, text): How you found this client. One of: `organic_search` (Organic search), `paid_search` (Paid search), `email_marketing` (Email marketing), `organic_social` (Organic social), `referrals`, `other_campaigns` (Other campaigns), `direct_traffic` (Direct traffic), `offline_sources` (Offline sources), `paid_social` (Paid social), `ai_referrals` (AI referrals).
- Main contact (`default_contact_id`, number): The contact who is this company's main point of contact.
- Domains (`domains`, list): Website domains that belong to the company, such as acme.com.
- LinkedIn (`linkedin`, text): Link to the company's LinkedIn page.
- Instagram (`instagram`, text): Link to the company's Instagram profile.
- X (`twitter`, text): Link to the company's X profile.
- Facebook (`facebook`, text): Link to the company's Facebook page.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "avatar_url": "https://example.com/record/1",
      "company_size": "size_11_50",
      "created_at": "2026-01-15T10:30:00Z",
      "default_contact_id": 1,
      "description": "Long-standing client.",
      "domains": [
        "Example"
      ],
      "facebook": "https://www.facebook.com/acme",
      "id": 42,
      "industry": "finance",
      "instagram": "https://www.instagram.com/acme",
      "linkedin": "https://www.linkedin.com/company/acme",
      "name": "Acme Corp",
      "source": "referrals",
      "twitter": "https://x.com/acme",
      "url": "https://example.com/record/1"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Update deal

Change a deal, or move it to another stage to mark it won or lost.

**Inputs**

- Deal (`id`, number, required): The deal to change.
- Title (`title`, text): The deal's new title.
- Company (`company_id`, number): Move the deal to this client company.
- Contacts (`contact_ids`, list): The contacts on the deal. This replaces the contacts it has now.
- Owner (`assignee_member_id`, number): The team member who owns the deal.
- Stage (`board_group_id`, text): The pipeline stage to move the deal to.
- Value (`deal_value`, text): What the deal is worth, such as 2500.00.
- Probability (`probability`, number): The chance of winning the deal, as a percentage from 0 to 100. From 0 to 100.
- Close date (`close_date`, date): The day the deal is expected to close.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "assignee_member_id": 1,
      "assignee_member_name": "Example",
      "board_group_id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
      "close_date": "2026-01-15",
      "company_name": "Example",
      "contact_ids": [
        1
      ],
      "currency": "USD",
      "deal_number": "D-918",
      "deal_value": "2500.00",
      "id": 42,
      "probability": 50,
      "status": "In Progress",
      "title": "Website redesign",
      "url": "https://example.com/record/1"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Update project

Change a project's title, dates, billing or board stage.

**Inputs**

- Project (`id`, number, required): The project to change.
- Title (`title`, text): The project's new title.
- Start date (`start_date`, date): The day work starts.
- Finish date (`finish_date`, date): The day work ends.
- Billing (`billing_type`, text): How the project bills the client. One of: `time` (Hourly), `fixed_fee` (Fixed fee), `retainer`, `not_billable` (Not billable).
- Fee (`billing_fee`, text): The agreed fee, such as 1500.00, for a fixed fee or retainer.
- Retainer cycle (`billing_cycle`, text): How often a retainer bills. One of: `weekly`, `monthly`, `quarterly`, `biannually` (Twice a year), `yearly`.
- Stage (`board_group_id`, text): The board stage to move the project to.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "billing_cycle": "monthly",
      "billing_fee": "1500.00",
      "billing_type": "time",
      "board_group_id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
      "budget": {
        "amount": "10.0",
        "calculation_base": "billable_time",
        "calculation_mode": "fee",
        "current_cycle": {
          "closing_date": "2026-01-15",
          "consumed_amount": "300.00",
          "consumed_percentage": 25,
          "opening_date": "2026-01-15"
        },
        "expenses_calculation_base": "all",
        "id": 42,
        "over_budget_notification": "enabled",
        "over_budget_notification_threshold": "80.0",
        "reset_frequency": "never"
      },
      "company_id": 1,
      "company_name": "Example",
      "currency": "USD",
      "finish_date": "2026-01-15",
      "id": 42,
      "number": "T-12",
      "public_url_token": "x4n2",
      "sequence": 3,
      "start_date": "2026-01-15",
      "title": "Website redesign",
      "url": "https://example.com/record/1"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Update task

Change a task, or move it to another column to complete it.

**Inputs**

- Task (`uuid`, text, required): The ID of the task to change.
- Title (`title`, text): What the task is called.
- Project (`project_id`, number): The project the task belongs to.
- Deal (`deal_id`, number): The deal the task belongs to.
- Assignee (`assignee_member_id`, number): The team member the task is for.
- Priority (`priority`, text): How urgent the task is. One of: `urgent`, `high`, `medium`, `low`.
- Start date (`start_date`, date): The day work on the task starts.
- Due date (`due_date`, date): The day the task is due.
- Description (`description`, text): What the task involves. Simple HTML such as <p> and <strong> is kept.
- Estimate in minutes (`time_estimate_in_minutes`, number): How long the task should take, in minutes. At least 1.
- Status (`task_status_id`, text): The board column to put the task in. Choose Done to complete it.
- Billable (`billable`, true/false): Whether time tracked on the task can be billed.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "2026-01-15T10:30:00Z",
      "assignee_id": 1,
      "assignee_member_id": 1,
      "assignee_member_name": "Example",
      "billable": true,
      "company_tags": [
        {
          "id": 42,
          "name": "Acme Corp"
        }
      ],
      "completed_at": "2026-01-15T10:30:00Z",
      "creator_member_id": 1,
      "deal_id": 1,
      "description_html": "Example",
      "description_plain_text": "Example",
      "due_date": "2026-01-15",
      "number": "T-12",
      "parent_task_uuid": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
      "priority": "high",
      "project_id": 1,
      "project_title": "Example",
      "start_date": "2026-01-15",
      "task_status": {
        "color": "#3b82f6",
        "id": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60",
        "position": 1,
        "state": "active",
        "status": "In Progress"
      },
      "time_estimate_in_minutes": 90,
      "title": "Website redesign",
      "url": "https://example.com/record/1",
      "uuid": "0b6d9f3e-2c41-4a8e-9f0d-7e5a1c2b3d4e"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```

### Update time entry

Change a time entry, or mark it billed.

**Inputs**

- Time entry (`key`, text, required): The time entry's ID.
- Seconds (`seconds`, number): How long the work took, in seconds. At least 1.
- Date (`date`, date): The day the work was done.
- Project (`project_id`, number): The project to log the time on.
- Task (`task_uuid`, text): The ID of the task to log the time on.
- Notes (`notes`, text): What the time was spent on.
- Hourly rate (`rate`, text): The hourly rate to bill, such as 120.00.
- Not billable (`non_billable`, true/false): Leave this entry out of billing.
- Billing status (`billing_status`, text): Mark the entry billed, or not billed yet. Needs permission to set billing. One of: `billed`, `unbilled` (Not billed yet).
- Team member (`owner_member_id`, number): Who the time is for.

**Outputs**

- `data` (object): The response.

**Example output**

```json
{
  "data": {
    "data": {
      "billable_amount": "120.00",
      "billing_status": "unbilled",
      "created_at": "2026-01-15T10:30:00Z",
      "currency": "USD",
      "date": "2026-01-15",
      "formatted_time": "01:00:00",
      "key": "te_8f2k1m",
      "non_billable": true,
      "notes": "Design review",
      "owner_member_id": 1,
      "project_id": 1,
      "rate": "120.00",
      "seconds": 3600,
      "status": "In Progress",
      "task_uuid": "3f8e2a10-5c4b-4d2e-9a7f-1b2c3d4e5f60"
    },
    "meta": {
      "request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
    }
  }
}
```
