Bonsai

App · 26 actions

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

Actions

ActionWhat it does
Comment on taskPost a comment on a task, which notifies the people following it.
Create companyAdd a client company to your Bonsai CRM.
Create contactAdd a person to your Bonsai CRM, linked to a company if you choose one.
Create dealAdd a deal with a client to your sales pipeline.
Create projectStart a project for a client company.
Create taskAdd a task, on a project or deal or on its own.
Delete taskDelete a task.
Get companyGet one company by its ID.
Get contactGet one contact by their ID.
Get taskGet one task by its ID, with its description.
List companiesList the client companies in your CRM, or search them by name.
List contactsList the people in your CRM, or search them by name, email or company.
List dealsList the deals in your pipeline, or search them by title, owner or stage.
List invoicesList your invoices, newest first, with their line items.
List pipeline stagesList the stages of your deal and project boards, such as Won or Lost.
List projectsList your projects, or search them by title, stage or status.
List task statusesList the columns of your task board, such as To Do, In Progress and Done.
List tasksList tasks, filtered by project, assignee, status, priority or due date.
List team membersList the people in your Bonsai account, with the IDs used to assign work.
List time entriesList logged time, newest first, filtered by date, person, project or client.
Log timeLog time worked, on a project or task.
Update companyChange a company's details.
Update dealChange a deal, or move it to another stage to mark it won or lost.
Update projectChange a project's title, dates, billing or board stage.
Update taskChange a task, or move it to another column to complete it.
Update time entryChange a time entry, or mark it billed.

Comment on task

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

Inputs

Tasktask_idtextRequired
The ID of the task to comment on.
Commentbody_texttextRequired
What the comment says.

Outputs

dataobject
The response.
Example output
{
  "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

NamenametextRequired
The company's name.
Descriptiondescriptiontext
Notes about the company.
Industryindustrytext
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 sizecompany_sizetext
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).
Sourcesourcetext
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 contactdefault_contact_idnumber
The contact who is this company's main point of contact.
Domainsdomainslist
Website domains that belong to the company, such as acme.com.
LinkedInlinkedintext
Link to the company's LinkedIn page.
Instagraminstagramtext
Link to the company's Instagram profile.
Xtwittertext
Link to the company's X profile.
Facebookfacebooktext
Link to the company's Facebook page.

Outputs

dataobject
The response.
Example output
{
  "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

NamenametextRequired
The person's full name.
EmailemailtextRequired
Their email address. It must not belong to another contact.
Job titlejob_titletext
Their job title.
Phone numberphone_numbertext
Their phone number.
Companycompany_idnumber
The company they work at.

Outputs

dataobject
The response.
Example output
{
  "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

TitletitletextRequired
What the deal is called.
Companycompany_idnumberRequired
The client company the deal is with.
Contactcontact_idnumber
A contact at that company to attach. Bonsai uses the company's main contact when left empty.
Ownerassignee_member_idnumber
The team member who owns the deal. Leave empty for an unassigned deal.
Stageboard_group_idtext
The pipeline stage to put the deal in. Bonsai uses the first stage when left empty.
Valuedeal_valuetext
What the deal is worth, such as 2500.00.

Outputs

dataobject
The response.
Example output
{
  "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

TitletitletextRequired
What the project is called.
Companycompany_idnumberRequired
The client company the project is for.
Billingbilling_typetextRequired
How the project bills the client.One of: time (Hourly), fixed_fee (Fixed fee), retainer, not_billable (Not billable).
Feebilling_feetext
The agreed fee, such as 1500.00. Needed for a fixed fee or retainer; leave empty otherwise.
Retainer cyclebilling_cycletext
How often a retainer bills. Needed for a retainer only.One of: weekly, monthly, quarterly, biannually (Twice a year), yearly.
Currencycurrencytext
The three-letter currency code the project bills in, such as USD. Bonsai uses the client's currency when left empty.
Start datestart_datedate
The day work starts. Bonsai uses today when left empty.
Finish datefinish_datedate
The day work ends.

Outputs

dataobject
The response.
Example output
{
  "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

TitletitletextRequired
What the task is called.
Projectproject_idnumber
The project the task belongs to.
Dealdeal_idnumber
The deal the task belongs to.
Parent taskparent_task_uuidtext
The task to put this one under as a subtask. Leave the project empty when you set this.
Assigneeassignee_member_idnumber
The team member the task is for.
Priorityprioritytext
How urgent the task is.One of: urgent, high, medium, low.
Start datestart_datedate
The day work on the task starts.
Due datedue_datedate
The day the task is due.
Descriptiondescriptiontext
What the task involves. Simple HTML such as <p> and <strong> is kept.
Estimate in minutestime_estimate_in_minutesnumber
How long the task should take, in minutes.At least 1.
Statustask_status_idtext
The board column to put the task in. Bonsai uses To Do when left empty.
Billablebillabletrue/false
Whether time tracked on the task can be billed.

Outputs

dataobject
The response.
Example output
{
  "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

TaskuuidtextRequired
The ID of the task to delete.

Outputs

dataobject
The response.
Example output
{
  "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

CompanyidnumberRequired
The company to get.

Outputs

dataobject
The response.
Example output
{
  "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

ContactidnumberRequired
The contact to get.

Outputs

dataobject
The response.
Example output
{
  "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

TaskuuidtextRequired
The task's ID.

Outputs

dataobject
The response.
Example output
{
  "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

Namenametext
Only companies whose name has a word starting with this text.
Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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

Namenametext
Only contacts whose name contains this text.
Emailemailtext
Only contacts whose email address contains this text.
Companiescompany_idlist
Only contacts linked to these companies.
Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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

Titletitletext
Only deals whose title has a word starting with this text.
Deal numberdeal_numbertext
Only deals whose reference starts with this text.
Ownersassignee_member_idlist
Only deals owned by these team members.
Stagesboard_group_idlist
Only deals in these pipeline stages.
Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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 numbersinvoice_numberlist
Only invoices with these exact numbers.
Projectsproject_idlist
Only invoices for these projects.
Companiescompany_idlist
Only invoices for these client companies.
Contactscontact_idlist
Only invoices addressed to these contacts.
Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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

Namenametext
Only stages whose name contains this text.
Boardresource_typetext
Which board's stages to list. Leave empty for both.One of: Deal (Deals), Project (Projects).
Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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

Titletitletext
Only projects whose title has a word starting with this text.
Statusstatustext
Which projects to list. Bonsai lists active ones when left empty.One of: active, completed, archived, not_archived (Not archived), all.
Stagesboard_group_idlist
Only projects in these board stages.
Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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

Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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

Titletitletext
Only tasks whose title contains this text.
Projectsproject_idlist
Only tasks on these projects.
Dealsdeal_idlist
Only tasks on these deals.
Statusestask_status_idlist
Only tasks in these board columns, whether active, completed or archived.
Prioritiesprioritylist
Only tasks with these priorities.One or more of: urgent, high, medium, low.
Showscopetext
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).
Dueduetext
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 afterdue_fromdate
Only tasks due on or after this day.
Due on or beforedue_todate
Only tasks due on or before this day.
Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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

Namenametext
Only members whose name contains this text.
Projectsproject_idlist
Only members assigned to these projects.
Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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

Fromdate_fromdate
Only time logged on or after this day.
Todate_todate
Only time logged on or before this day.
Team membersowner_member_idlist
Only time logged for these team members.
Projectsproject_idlist
Only time logged on these projects.
Companiescompany_idlist
Only time logged on these clients' projects.
Billing statusbilling_statuslist
Only entries in these billing states. Needs permission to see billing.One or more of: billed, unbilled (Not billed yet), non_billable (Not billable).
Pagepage_numbernumber
Which page of results to get, starting at 1.At least 1.
Page sizepage_sizenumber
How many records to get per page, up to 100. Bonsai sends 25 when left empty.From 1 to 100.

Outputs

dataobject
The response.
Example output
{
  "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

SecondssecondsnumberRequired
How long the work took, in seconds. An hour is 3600.At least 1.
DatedatedateRequired
The day the work was done.
Projectproject_idnumber
The project to log time on. Ignored when you choose a task.
Tasktask_uuidtext
The ID of the task to log time on. The project comes with it.
Notesnotestext
What the time was spent on.
Hourly rateratetext
The hourly rate to bill, such as 120.00. Only used if you can set billing.
Not billablenon_billabletrue/false
Leave this entry out of billing. Only used if you can set billing.
Team memberowner_member_idnumber
Who the time is for. Bonsai uses you when left empty.

Outputs

dataobject
The response.
Example output
{
  "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

CompanyidnumberRequired
The company to change.
Namenametext
The company's name.
Descriptiondescriptiontext
Notes about the company.
Industryindustrytext
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 sizecompany_sizetext
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).
Sourcesourcetext
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 contactdefault_contact_idnumber
The contact who is this company's main point of contact.
Domainsdomainslist
Website domains that belong to the company, such as acme.com.
LinkedInlinkedintext
Link to the company's LinkedIn page.
Instagraminstagramtext
Link to the company's Instagram profile.
Xtwittertext
Link to the company's X profile.
Facebookfacebooktext
Link to the company's Facebook page.

Outputs

dataobject
The response.
Example output
{
  "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

DealidnumberRequired
The deal to change.
Titletitletext
The deal's new title.
Companycompany_idnumber
Move the deal to this client company.
Contactscontact_idslist
The contacts on the deal. This replaces the contacts it has now.
Ownerassignee_member_idnumber
The team member who owns the deal.
Stageboard_group_idtext
The pipeline stage to move the deal to.
Valuedeal_valuetext
What the deal is worth, such as 2500.00.
Probabilityprobabilitynumber
The chance of winning the deal, as a percentage from 0 to 100.From 0 to 100.
Close dateclose_datedate
The day the deal is expected to close.

Outputs

dataobject
The response.
Example output
{
  "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

ProjectidnumberRequired
The project to change.
Titletitletext
The project's new title.
Start datestart_datedate
The day work starts.
Finish datefinish_datedate
The day work ends.
Billingbilling_typetext
How the project bills the client.One of: time (Hourly), fixed_fee (Fixed fee), retainer, not_billable (Not billable).
Feebilling_feetext
The agreed fee, such as 1500.00, for a fixed fee or retainer.
Retainer cyclebilling_cycletext
How often a retainer bills.One of: weekly, monthly, quarterly, biannually (Twice a year), yearly.
Stageboard_group_idtext
The board stage to move the project to.

Outputs

dataobject
The response.
Example output
{
  "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

TaskuuidtextRequired
The ID of the task to change.
Titletitletext
What the task is called.
Projectproject_idnumber
The project the task belongs to.
Dealdeal_idnumber
The deal the task belongs to.
Assigneeassignee_member_idnumber
The team member the task is for.
Priorityprioritytext
How urgent the task is.One of: urgent, high, medium, low.
Start datestart_datedate
The day work on the task starts.
Due datedue_datedate
The day the task is due.
Descriptiondescriptiontext
What the task involves. Simple HTML such as <p> and <strong> is kept.
Estimate in minutestime_estimate_in_minutesnumber
How long the task should take, in minutes.At least 1.
Statustask_status_idtext
The board column to put the task in. Choose Done to complete it.
Billablebillabletrue/false
Whether time tracked on the task can be billed.

Outputs

dataobject
The response.
Example output
{
  "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 entrykeytextRequired
The time entry's ID.
Secondssecondsnumber
How long the work took, in seconds.At least 1.
Datedatedate
The day the work was done.
Projectproject_idnumber
The project to log the time on.
Tasktask_uuidtext
The ID of the task to log the time on.
Notesnotestext
What the time was spent on.
Hourly rateratetext
The hourly rate to bill, such as 120.00.
Not billablenon_billabletrue/false
Leave this entry out of billing.
Billing statusbilling_statustext
Mark the entry billed, or not billed yet. Needs permission to set billing.One of: billed, unbilled (Not billed yet).
Team memberowner_member_idnumber
Who the time is for.

Outputs

dataobject
The response.
Example output
{
  "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"
    }
  }
}

On this page