# Pipeline CRM

> Manage deals, people, companies, activities and tasks in Pipeline CRM.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/pipelinecrm

## Actions

### Create activity

Add an activity (a note) to a deal, person or company.

**Inputs**

- Text (`content`, text, required): What the activity says.
- Title (`title`, text): A short title.
- Deal (`deal_id`, number): The deal it's about.
- Person (`person_id`, number): The person it's about.
- Company (`company_id`, number): The company it's about.
- Category ID (`note_category_id`, number): The ID of the activity's category, such as a call or a meeting.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "company_id": 3310,
    "content": "Discussed seat count and timing.",
    "created_at": "2026-09-01 14:22:07",
    "deal_id": 4521,
    "id": 9903,
    "note_category": {
      "id": 2,
      "name": "Call"
    },
    "note_category_id": 2,
    "person_id": 8802,
    "primary_association_type": "Deal",
    "title": "Call with Jane about the renewal",
    "updated_at": "2026-09-01 14:22:07",
    "user_id": 13
  }
}
```

### Create company

Add a company.

**Inputs**

- Name (`name`, text, required): The company's name.
- Email (`email`, text): The company's email address.
- Website (`web`, text): The company's website.
- Phone (`phone1`, text): The company's main phone number.
- Address (`address_1`, text): The first line of its address.
- City (`city`, text): Its city.
- State (`state`, text): Its state or province.
- Postal code (`postal_code`, text): Its postal code.
- Country (`country`, text): Its country.
- Owner (`owner_id`, number): The user who owns the company.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "address_1": "500 Market St",
    "address_2": "Suite 100",
    "city": "San Francisco",
    "country": "USA",
    "created_at": "2026-09-01 14:22:07",
    "email": "hello@acme.example",
    "id": 3310,
    "name": "Acme Corporation",
    "owner": {
      "full_name": "Sam Okafor",
      "id": 13
    },
    "owner_id": 13,
    "phone1": "+1 415 555 0100",
    "postal_code": "94105",
    "state": "CA",
    "tags": [
      {
        "id": 3,
        "name": "Enterprise"
      }
    ],
    "updated_at": "2026-09-01 14:22:07",
    "web": "https://acme.example"
  }
}
```

### Create deal

Add a deal.

**Inputs**

- Name (`name`, text, required): The deal's name.
- Description (`summary`, text): What the deal is about.
- Value (`value`, number): What the deal is worth, in its currency.
- Stage (`deal_stage_id`, number): The stage the deal is in.
- Owner (`user`, number): The user who owns the deal.
- Company (`company_id`, number): The company the deal is with.
- Main contact (`primary_contact_id`, number): The person who is the deal's main contact.
- Expected close date (`expected_close_date`, date): When you expect the deal to close.
- Probability (`probability`, number): The chance the deal closes, 0 to 100. 0 or 100 closes the deal. From 0 to 100.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "company": {
      "id": 3310,
      "name": "Acme Corporation"
    },
    "company_id": 3310,
    "created_at": "2026-09-01 14:22:07",
    "currency": {
      "code": "USD",
      "name": "US Dollar",
      "symbol": "$"
    },
    "deal_stage": {
      "id": 3,
      "name": "Proposal sent",
      "percent": 50
    },
    "deal_stage_id": 3,
    "expected_close_date": "2026-10-15",
    "id": 4521,
    "is_archived": false,
    "name": "Acme Corporation - Q4 renewal",
    "next_task_due": "2026/09/08",
    "next_task_name": "Send revised quote",
    "owner": {
      "full_name": "Sam Okafor",
      "id": 13
    },
    "person_ids": [
      8802
    ],
    "primary_contact": {
      "full_name": "Jane Rivera",
      "id": 8802
    },
    "primary_contact_id": 8802,
    "probability": 60,
    "source": {
      "id": 5,
      "name": "Website"
    },
    "status": 1,
    "summary": "Renewal of the 120-seat plan; legal review in progress.",
    "tags": [
      {
        "id": 3,
        "name": "Enterprise"
      }
    ],
    "updated_at": "2026-09-01 14:22:07",
    "user_id": 13,
    "value": "12000.0"
  }
}
```

### Create person

Add a person as a contact or a lead.

**Inputs**

- First name (`first_name`, text): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text): Their main email address.
- Phone (`phone`, text): Their main phone number.
- Mobile (`mobile`, text): Their mobile number.
- Job title (`position`, text): Their job title.
- Type (`type`, text): Whether they're a contact or a lead. Changing it converts the record. One of: `Contact`, `Lead`.
- Company (`company_id`, number): The company they work for.
- Company name (`company_name`, text): The name of the company they work for. Pipeline creates it if no company has that name.
- Lead status (`lead_status_id`, number): Their lead status.
- Owner (`user`, number): The user who owns the record.
- Notes (`summary`, text): Notes about them.
- Work city (`work_city`, text): Their work city.
- Work country (`work_country`, text): Their work country.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "company": {
      "id": 3310,
      "name": "Acme Corporation"
    },
    "company_id": 3310,
    "created_at": "2026-09-01 14:22:07",
    "deals": [
      {
        "id": 4521,
        "name": "Acme renewal"
      }
    ],
    "email": "jane.rivera@acme.example",
    "first_name": "Jane",
    "full_name": "Jane Rivera",
    "id": 8802,
    "last_name": "Rivera",
    "lead_source": {
      "id": 5,
      "name": "Website"
    },
    "lead_status": {
      "id": 2,
      "name": "Qualified"
    },
    "mobile": "+1 415 555 0177",
    "owner": "Sam Okafor",
    "phone": "+1 415 555 0142",
    "position": "Head of Operations",
    "summary": "Owns the renewal decision; prefers email.",
    "type": "Contact",
    "unsubscribed": false,
    "updated_at": "2026-09-01 14:22:07",
    "user_id": 13,
    "work_city": "Denver",
    "work_country": "United States",
    "work_state": "Colorado"
  }
}
```

### Create task or event

Add a task or a calendar event, optionally linked to a deal, company or person.

**Inputs**

- Kind (`type`, text, required): A task (with a due date) or an event (with a start and end). One of: `CalendarTask` (Task), `CalendarEvent` (Event).
- Name (`name`, text, required): What the task or event is.
- Details (`description`, text): More about it.
- Due date (`due_date`, date): When the task is due. Tasks only.
- Starts (`start_time`, date and time): When the event starts. Events only.
- Ends (`end_time`, date and time): When the event ends. Events only.
- All day (`all_day`, true/false): Whether it lasts all day.
- Linked to (`association_type`, text): What kind of record it's about. One of: `Deal` (A deal), `Company` (A company), `Person` (A person).
- Record ID (`association_id`, number): The ID of the deal, company or person it's about.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "all_day": false,
    "association_id": 4521,
    "association_type": "Deal",
    "category_id": 2,
    "complete": false,
    "created_at": "2026-09-01 14:22:07",
    "description": "Include the 3-year option.",
    "due_date": "2026-09-08",
    "end_time": "2026-09-08 15:30:00",
    "id": 5602,
    "name": "Send revised quote",
    "owner_id": 13,
    "start_time": "2026-09-08 15:00:00",
    "type": "CalendarTask",
    "updated_at": "2026-09-01 14:22:07"
  }
}
```

### Delete activity

Delete an activity.

**Inputs**

- Activity ID (`id`, number, required): The ID of the activity to delete.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {}
}
```

### Delete company

Delete a company.

**Inputs**

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

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {}
}
```

### Delete deal

Delete a deal.

**Inputs**

- Deal (`id`, number, required): The deal to delete.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {}
}
```

### Delete person

Delete a person.

**Inputs**

- Person (`id`, number, required): The person to delete.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {}
}
```

### Delete task or event

Delete a task or calendar event.

**Inputs**

- Task or event ID (`id`, number, required): The ID of the task or event to delete.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {}
}
```

### Get company

Get one company by its ID.

**Inputs**

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

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "address_1": "500 Market St",
    "address_2": "Suite 100",
    "city": "San Francisco",
    "country": "USA",
    "created_at": "2026-09-01 14:22:07",
    "email": "hello@acme.example",
    "id": 3310,
    "name": "Acme Corporation",
    "owner": {
      "full_name": "Sam Okafor",
      "id": 13
    },
    "owner_id": 13,
    "phone1": "+1 415 555 0100",
    "postal_code": "94105",
    "state": "CA",
    "tags": [
      {
        "id": 3,
        "name": "Enterprise"
      }
    ],
    "updated_at": "2026-09-01 14:22:07",
    "web": "https://acme.example"
  }
}
```

### Get deal

Get one deal by its ID.

**Inputs**

- Deal (`id`, number, required): The deal to get.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "company": {
      "id": 3310,
      "name": "Acme Corporation"
    },
    "company_id": 3310,
    "created_at": "2026-09-01 14:22:07",
    "currency": {
      "code": "USD",
      "name": "US Dollar",
      "symbol": "$"
    },
    "deal_stage": {
      "id": 3,
      "name": "Proposal sent",
      "percent": 50
    },
    "deal_stage_id": 3,
    "expected_close_date": "2026-10-15",
    "id": 4521,
    "is_archived": false,
    "name": "Acme Corporation - Q4 renewal",
    "next_task_due": "2026/09/08",
    "next_task_name": "Send revised quote",
    "owner": {
      "full_name": "Sam Okafor",
      "id": 13
    },
    "person_ids": [
      8802
    ],
    "primary_contact": {
      "full_name": "Jane Rivera",
      "id": 8802
    },
    "primary_contact_id": 8802,
    "probability": 60,
    "source": {
      "id": 5,
      "name": "Website"
    },
    "status": 1,
    "summary": "Renewal of the 120-seat plan; legal review in progress.",
    "tags": [
      {
        "id": 3,
        "name": "Enterprise"
      }
    ],
    "updated_at": "2026-09-01 14:22:07",
    "user_id": 13,
    "value": "12000.0"
  }
}
```

### Get person

Get one person by their ID.

**Inputs**

- Person (`id`, number, required): The person to get.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "company": {
      "id": 3310,
      "name": "Acme Corporation"
    },
    "company_id": 3310,
    "created_at": "2026-09-01 14:22:07",
    "deals": [
      {
        "id": 4521,
        "name": "Acme renewal"
      }
    ],
    "email": "jane.rivera@acme.example",
    "first_name": "Jane",
    "full_name": "Jane Rivera",
    "id": 8802,
    "last_name": "Rivera",
    "lead_source": {
      "id": 5,
      "name": "Website"
    },
    "lead_status": {
      "id": 2,
      "name": "Qualified"
    },
    "mobile": "+1 415 555 0177",
    "owner": "Sam Okafor",
    "phone": "+1 415 555 0142",
    "position": "Head of Operations",
    "summary": "Owns the renewal decision; prefers email.",
    "type": "Contact",
    "unsubscribed": false,
    "updated_at": "2026-09-01 14:22:07",
    "user_id": 13,
    "work_city": "Denver",
    "work_country": "United States",
    "work_state": "Colorado"
  }
}
```

### List activities

List one page of the activities on a deal, person or company. Give at least one of them.

**Inputs**

- Deal (`deal_id`, number): List the activities on this deal.
- Person (`person_id`, number): List the activities on this person.
- Company (`company_id`, number): List the activities on this company.
- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many records a page holds, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "company_id": 3310,
        "content": "Discussed seat count and timing.",
        "created_at": "2026-09-01 14:22:07",
        "deal_id": 4521,
        "id": 9903,
        "note_category": {
          "id": 2,
          "name": "Call"
        },
        "note_category_id": 2,
        "person_id": 8802,
        "primary_association_type": "Deal",
        "title": "Call with Jane about the renewal",
        "updated_at": "2026-09-01 14:22:07",
        "user_id": 13
      }
    ],
    "pagination": {
      "page": 1,
      "pages": 4,
      "per_page": 200,
      "total": 670
    }
  }
}
```

### List companies

List one page of companies, filtered and sorted as you choose.

**Inputs**

- Name starts with (`name`, text): Only companies whose name starts with this.
- Owner (`owner`, number): Only companies owned by this user.
- Customer (`is_customer`, text): Only customers, or only companies that aren't. One of: `Yes` (Customers), `No` (Not customers).
- City starts with (`city`, text): Only companies whose city starts with this.
- Created in (`created_period`, text): Only companies created in this period. One of: `today`, `yesterday`, `this_week` (This week), `last_week` (Last week), `this_month` (This month), `last_month` (Last month), `this_quarter` (This quarter), `last_quarter` (Last quarter), `this_year` (This year), `last_year` (Last year), and 3 more.
- Created on or after (`created_from`, date): Only companies created on or after this day.
- Created on or before (`created_to`, date): Only companies created on or before this day.
- Changed in (`modified_period`, text): Only companies changed in this period. One of: `today`, `yesterday`, `this_week` (This week), `last_week` (Last week), `this_month` (This month), `last_month` (Last month), `this_quarter` (This quarter), `last_quarter` (Last quarter), `this_year` (This year), `last_year` (Last year), and 3 more.
- Changed on or after (`modified_from`, date): Only companies changed on or after this day.
- Changed on or before (`modified_to`, date): Only companies changed on or before this day.
- Sort by (`sort`, text): A column to sort companies by, such as company_name. Put - in front for largest or newest first.
- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many records a page holds, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "address_1": "500 Market St",
        "address_2": "Suite 100",
        "city": "San Francisco",
        "country": "USA",
        "created_at": "2026-09-01 14:22:07",
        "email": "hello@acme.example",
        "id": 3310,
        "name": "Acme Corporation",
        "owner": {
          "full_name": "Sam Okafor",
          "id": 13
        },
        "owner_id": 13,
        "phone1": "+1 415 555 0100",
        "postal_code": "94105",
        "state": "CA",
        "tags": [
          {
            "id": 3,
            "name": "Enterprise"
          }
        ],
        "updated_at": "2026-09-01 14:22:07",
        "web": "https://acme.example"
      }
    ],
    "pagination": {
      "page": 1,
      "pages": 4,
      "per_page": 200,
      "total": 670
    }
  }
}
```

### List deal stages

List the stages deals move through, with their IDs.

**Inputs**

- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many records a page holds, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "deal_pipeline_id": 1,
        "id": 3,
        "name": "Proposal",
        "percent": 45
      }
    ],
    "pagination": {
      "page": 1,
      "pages": 4,
      "per_page": 200,
      "total": 670
    }
  }
}
```

### List deals

List one page of deals, filtered and sorted as you choose.

**Inputs**

- Name contains (`name`, text): Only deals whose name contains this.
- Stage (`stage`, number): Only deals in this stage.
- Owner (`owner`, number): Only deals owned by this user.
- Pipeline ID (`pipeline`, number): Only deals in the pipeline with this ID.
- Company name contains (`company_name`, text): Only deals whose company's name contains this.
- Main contact (`primary_contact`, number): Only deals whose main contact is this person.
- Archived (`archived`, text): Only archived deals, or only deals that aren't. One of: `Yes` (Archived), `No` (Not archived).
- Value at least (`value_from`, number): Only deals worth at least this much.
- Value at most (`value_to`, number): Only deals worth at most this much.
- Created in (`created_period`, text): Only deals created in this period. One of: `today`, `yesterday`, `this_week` (This week), `last_week` (Last week), `this_month` (This month), `last_month` (Last month), `this_quarter` (This quarter), `last_quarter` (Last quarter), `this_year` (This year), `last_year` (Last year), and 3 more.
- Created on or after (`created_from`, date): Only deals created on or after this day.
- Created on or before (`created_to`, date): Only deals created on or before this day.
- Changed in (`modified_period`, text): Only deals changed in this period. One of: `today`, `yesterday`, `this_week` (This week), `last_week` (Last week), `this_month` (This month), `last_month` (Last month), `this_quarter` (This quarter), `last_quarter` (Last quarter), `this_year` (This year), `last_year` (Last year), and 3 more.
- Changed on or after (`modified_from`, date): Only deals changed on or after this day.
- Changed on or before (`modified_to`, date): Only deals changed on or before this day.
- Expected to close on or after (`expected_close_from`, date): Only deals expected to close on or after this day.
- Expected to close on or before (`expected_close_to`, date): Only deals expected to close on or before this day.
- Sort by (`sort`, text): A column to sort deals by, such as deal_value or deal_name. Put - in front for largest or newest first.
- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many records a page holds, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "company": {
          "id": 3310,
          "name": "Acme Corporation"
        },
        "company_id": 3310,
        "created_at": "2026-09-01 14:22:07",
        "currency": {
          "code": "USD",
          "name": "US Dollar",
          "symbol": "$"
        },
        "deal_stage": {
          "id": 3,
          "name": "Proposal sent",
          "percent": 50
        },
        "deal_stage_id": 3,
        "expected_close_date": "2026-10-15",
        "id": 4521,
        "is_archived": false,
        "name": "Acme Corporation - Q4 renewal",
        "next_task_due": "2026/09/08",
        "next_task_name": "Send revised quote",
        "owner": {
          "full_name": "Sam Okafor",
          "id": 13
        },
        "person_ids": [
          8802
        ],
        "primary_contact": {
          "full_name": "Jane Rivera",
          "id": 8802
        },
        "primary_contact_id": 8802,
        "probability": 60,
        "source": {
          "id": 5,
          "name": "Website"
        },
        "status": 1,
        "summary": "Renewal of the 120-seat plan; legal review in progress.",
        "tags": [
          {
            "id": 3,
            "name": "Enterprise"
          }
        ],
        "updated_at": "2026-09-01 14:22:07",
        "user_id": 13,
        "value": "12000.0"
      }
    ],
    "pagination": {
      "page": 1,
      "pages": 4,
      "per_page": 200,
      "total": 670
    }
  }
}
```

### List lead statuses

List the lead statuses you can give people, with their IDs.

**Inputs**

- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many records a page holds, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "hex_color": "9b9b9b",
        "id": 2,
        "name": "In touch"
      }
    ],
    "pagination": {
      "page": 1,
      "pages": 4,
      "per_page": 200,
      "total": 670
    }
  }
}
```

### List people

List one page of people, filtered and sorted as you choose.

**Inputs**

- Name contains (`name`, text): Only people whose first or last name contains this.
- Email contains (`email`, text): Only people whose email address contains this.
- Company name contains (`company_name`, text): Only people whose company's name contains this.
- Type (`type`, text): Only contacts, or only leads. One of: `Contact` (Contacts), `Lead` (Leads).
- Lead status (`lead_status`, number): Only people with this lead status.
- Owner (`owner`, number): Only people owned by this user.
- Created in (`created_period`, text): Only people created in this period. One of: `today`, `yesterday`, `this_week` (This week), `last_week` (Last week), `this_month` (This month), `last_month` (Last month), `this_quarter` (This quarter), `last_quarter` (Last quarter), `this_year` (This year), `last_year` (Last year), and 3 more.
- Created on or after (`created_from`, date): Only people created on or after this day.
- Created on or before (`created_to`, date): Only people created on or before this day.
- Changed in (`modified_period`, text): Only people changed in this period. One of: `today`, `yesterday`, `this_week` (This week), `last_week` (Last week), `this_month` (This month), `last_month` (Last month), `this_quarter` (This quarter), `last_quarter` (Last quarter), `this_year` (This year), `last_year` (Last year), and 3 more.
- Changed on or after (`modified_from`, date): Only people changed on or after this day.
- Changed on or before (`modified_to`, date): Only people changed on or before this day.
- Sort by (`sort`, text): A column to sort people by, such as person_last_name. Put - in front for largest or newest first.
- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many records a page holds, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "company": {
          "id": 3310,
          "name": "Acme Corporation"
        },
        "company_id": 3310,
        "created_at": "2026-09-01 14:22:07",
        "deals": [
          {
            "id": 4521,
            "name": "Acme renewal"
          }
        ],
        "email": "jane.rivera@acme.example",
        "first_name": "Jane",
        "full_name": "Jane Rivera",
        "id": 8802,
        "last_name": "Rivera",
        "lead_source": {
          "id": 5,
          "name": "Website"
        },
        "lead_status": {
          "id": 2,
          "name": "Qualified"
        },
        "mobile": "+1 415 555 0177",
        "owner": "Sam Okafor",
        "phone": "+1 415 555 0142",
        "position": "Head of Operations",
        "summary": "Owns the renewal decision; prefers email.",
        "type": "Contact",
        "unsubscribed": false,
        "updated_at": "2026-09-01 14:22:07",
        "user_id": 13,
        "work_city": "Denver",
        "work_country": "United States",
        "work_state": "Colorado"
      }
    ],
    "pagination": {
      "page": 1,
      "pages": 4,
      "per_page": 200,
      "total": 670
    }
  }
}
```

### List tasks and events

List one page of tasks and calendar events, filtered as you choose.

**Inputs**

- Kind (`type_of`, text): Only tasks, or only events. One of: `task` (Tasks), `event` (Events).
- Done only (`completed`, true/false): Only tasks and events that are done.
- Not done only (`incomplete`, true/false): Only tasks and events that aren't done.
- Late only (`late`, true/false): Only items that are late.
- Company (`company_id`, number): Only items linked to this company, directly or through its people and deals.
- Changed in (`modified_period`, text): Only items changed in this period. One of: `today`, `yesterday`, `this_week` (This week), `last_week` (Last week), `this_month` (This month), `last_month` (Last month), `this_quarter` (This quarter), `last_quarter` (Last quarter), `this_year` (This year), `last_year` (Last year), and 3 more.
- Changed on or after (`modified_from`, date): Only items changed on or after this day.
- Changed on or before (`modified_to`, date): Only items changed on or before this day.
- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many records a page holds, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "all_day": false,
        "association_id": 4521,
        "association_type": "Deal",
        "category_id": 2,
        "complete": false,
        "created_at": "2026-09-01 14:22:07",
        "description": "Include the 3-year option.",
        "due_date": "2026-09-08",
        "end_time": "2026-09-08 15:30:00",
        "id": 5602,
        "name": "Send revised quote",
        "owner_id": 13,
        "start_time": "2026-09-08 15:00:00",
        "type": "CalendarTask",
        "updated_at": "2026-09-01 14:22:07"
      }
    ],
    "pagination": {
      "page": 1,
      "pages": 4,
      "per_page": 200,
      "total": 670
    }
  }
}
```

### List users

List the users in your Pipeline account, with their IDs.

**Inputs**

- Email (`email`, text): Only the user with exactly this email address.
- Admins only (`admins_only`, true/false): Only account administrators.
- Include inactive (`include_inactive`, true/false): Also list users who are no longer active.
- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many records a page holds, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "email": "sam.okafor@northwind.example",
        "first_name": "Sam",
        "full_name": "Sam Okafor",
        "id": 13,
        "is_account_admin": false,
        "last_name": "Okafor",
        "team_id": 1234,
        "time_zone": "America/Denver"
      }
    ],
    "pagination": {
      "page": 1,
      "pages": 4,
      "per_page": 200,
      "total": 670
    }
  }
}
```

### Update company

Change a company's details. Fields you leave empty stay as they are.

**Inputs**

- Company (`id`, number, required): The company to change.
- Name (`name`, text): The company's name.
- Email (`email`, text): The company's email address.
- Website (`web`, text): The company's website.
- Phone (`phone1`, text): The company's main phone number.
- Address (`address_1`, text): The first line of its address.
- City (`city`, text): Its city.
- State (`state`, text): Its state or province.
- Postal code (`postal_code`, text): Its postal code.
- Country (`country`, text): Its country.
- Owner (`owner_id`, number): The user who owns the company.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "address_1": "500 Market St",
    "address_2": "Suite 100",
    "city": "San Francisco",
    "country": "USA",
    "created_at": "2026-09-01 14:22:07",
    "email": "hello@acme.example",
    "id": 3310,
    "name": "Acme Corporation",
    "owner": {
      "full_name": "Sam Okafor",
      "id": 13
    },
    "owner_id": 13,
    "phone1": "+1 415 555 0100",
    "postal_code": "94105",
    "state": "CA",
    "tags": [
      {
        "id": 3,
        "name": "Enterprise"
      }
    ],
    "updated_at": "2026-09-01 14:22:07",
    "web": "https://acme.example"
  }
}
```

### Update deal

Change a deal, such as its stage or value. Fields you leave empty stay as they are.

**Inputs**

- Deal (`id`, number, required): The deal to change.
- Name (`name`, text): The deal's name.
- Description (`summary`, text): What the deal is about.
- Value (`value`, number): What the deal is worth, in its currency.
- Stage (`deal_stage_id`, number): The stage the deal is in.
- Owner (`user`, number): The user who owns the deal.
- Company (`company_id`, number): The company the deal is with.
- Main contact (`primary_contact_id`, number): The person who is the deal's main contact.
- Expected close date (`expected_close_date`, date): When you expect the deal to close.
- Probability (`probability`, number): The chance the deal closes, 0 to 100. 0 or 100 closes the deal. From 0 to 100.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "company": {
      "id": 3310,
      "name": "Acme Corporation"
    },
    "company_id": 3310,
    "created_at": "2026-09-01 14:22:07",
    "currency": {
      "code": "USD",
      "name": "US Dollar",
      "symbol": "$"
    },
    "deal_stage": {
      "id": 3,
      "name": "Proposal sent",
      "percent": 50
    },
    "deal_stage_id": 3,
    "expected_close_date": "2026-10-15",
    "id": 4521,
    "is_archived": false,
    "name": "Acme Corporation - Q4 renewal",
    "next_task_due": "2026/09/08",
    "next_task_name": "Send revised quote",
    "owner": {
      "full_name": "Sam Okafor",
      "id": 13
    },
    "person_ids": [
      8802
    ],
    "primary_contact": {
      "full_name": "Jane Rivera",
      "id": 8802
    },
    "primary_contact_id": 8802,
    "probability": 60,
    "source": {
      "id": 5,
      "name": "Website"
    },
    "status": 1,
    "summary": "Renewal of the 120-seat plan; legal review in progress.",
    "tags": [
      {
        "id": 3,
        "name": "Enterprise"
      }
    ],
    "updated_at": "2026-09-01 14:22:07",
    "user_id": 13,
    "value": "12000.0"
  }
}
```

### Update person

Change a person's details. Fields you leave empty stay as they are.

**Inputs**

- Person (`id`, number, required): The person to change.
- First name (`first_name`, text): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text): Their main email address.
- Phone (`phone`, text): Their main phone number.
- Mobile (`mobile`, text): Their mobile number.
- Job title (`position`, text): Their job title.
- Type (`type`, text): Whether they're a contact or a lead. Changing it converts the record. One of: `Contact`, `Lead`.
- Company (`company_id`, number): The company they work for.
- Company name (`company_name`, text): The name of the company they work for. Pipeline creates it if no company has that name.
- Lead status (`lead_status_id`, number): Their lead status.
- Owner (`user`, number): The user who owns the record.
- Notes (`summary`, text): Notes about them.
- Work city (`work_city`, text): Their work city.
- Work country (`work_country`, text): Their work country.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "company": {
      "id": 3310,
      "name": "Acme Corporation"
    },
    "company_id": 3310,
    "created_at": "2026-09-01 14:22:07",
    "deals": [
      {
        "id": 4521,
        "name": "Acme renewal"
      }
    ],
    "email": "jane.rivera@acme.example",
    "first_name": "Jane",
    "full_name": "Jane Rivera",
    "id": 8802,
    "last_name": "Rivera",
    "lead_source": {
      "id": 5,
      "name": "Website"
    },
    "lead_status": {
      "id": 2,
      "name": "Qualified"
    },
    "mobile": "+1 415 555 0177",
    "owner": "Sam Okafor",
    "phone": "+1 415 555 0142",
    "position": "Head of Operations",
    "summary": "Owns the renewal decision; prefers email.",
    "type": "Contact",
    "unsubscribed": false,
    "updated_at": "2026-09-01 14:22:07",
    "user_id": 13,
    "work_city": "Denver",
    "work_country": "United States",
    "work_state": "Colorado"
  }
}
```

### Update task or event

Change a task or event, or mark it done. Fields you leave empty stay as they are.

**Inputs**

- Task or event ID (`id`, number, required): The ID of the task or event to change.
- Name (`name`, text): What the task or event is.
- Details (`description`, text): More about it.
- Due date (`due_date`, date): When the task is due. Tasks only.
- Starts (`start_time`, date and time): When the event starts. Events only.
- Ends (`end_time`, date and time): When the event ends. Events only.
- All day (`all_day`, true/false): Whether it lasts all day.
- Done (`complete`, true/false): Whether it's done.

**Outputs**

- `data` (object): The response from Pipeline CRM.

**Example output**

```json
{
  "data": {
    "all_day": false,
    "association_id": 4521,
    "association_type": "Deal",
    "category_id": 2,
    "complete": false,
    "created_at": "2026-09-01 14:22:07",
    "description": "Include the 3-year option.",
    "due_date": "2026-09-08",
    "end_time": "2026-09-08 15:30:00",
    "id": 5602,
    "name": "Send revised quote",
    "owner_id": 13,
    "start_time": "2026-09-08 15:00:00",
    "type": "CalendarTask",
    "updated_at": "2026-09-01 14:22:07"
  }
}
```
