# Agile CRM

> Manage your Agile CRM: create, find, update and tag contacts and companies, run deals through pipelines, add tasks, notes and calendar events, and start workflows when a contact, company or deal is added.

App · 30 actions. Web page: https://docs.lodol.com/docs/integrations/agile-crm

## Actions

### Add note to contact

Add a note to a contact or company.

**Inputs**

- Contact (`contact_id`, text, required): The contact, or company. Pick one, or give its ID from an earlier step.
- Subject (`subject`, text, required): The note's subject.
- Note (`description`, text): The text of the note.

**Outputs**

- `note` (object): The note

**Example output**

```json
{
  "note": {
    "contact_ids": [
      "5714000430000001"
    ],
    "created_at": "2026-10-15T09:00:00Z",
    "deal_ids": [],
    "description": "Interested in the Pro plan.",
    "id": "5714000430000005",
    "subject": "Met at the conference"
  }
}
```

### Add tags to contact

Put tags on a contact or company. Tags it has already stay; a new tag is created.

**Inputs**

- Contact (`contact_id`, text, required): The contact, or company. Pick one, or give its ID from an earlier step.
- Tags (`tags`, list, required): The tags. Pick existing ones or type new names; a new tag is created.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "company": "Acme Inc",
    "created_at": "2026-10-15T09:00:00Z",
    "custom_fields": {
      "Plan": "Pro"
    },
    "email": "jo@example.com",
    "first_name": "Jo",
    "id": "5714000430000001",
    "last_name": "Bloggs",
    "lead_score": 10,
    "name": "Jo Bloggs",
    "owner_email": "owner@example.com",
    "phone": "+15555550100",
    "star_value": 3,
    "tags": [
      "lead"
    ],
    "title": "Buyer",
    "type": "PERSON",
    "updated_at": "",
    "website": "https://example.com"
  }
}
```

### Create calendar event

Add an event to the connected user's Agile CRM calendar, optionally linked to a contact.

**Inputs**

- Title (`title`, text, required): The event's title.
- Starts (`start`, date and time, required): When the event starts.
- Ends (`end`, date and time, required): When the event ends.
- All day (`all_day`, true/false): Show it as an all-day event.
- Contact (`contact_id`, text): A contact to link it to. Pick one, or give its ID from an earlier step.

**Outputs**

- `event` (object): The event

**Example output**

```json
{
  "event": {
    "all_day": false,
    "color": "#36C",
    "contact_ids": [
      "5714000430000001"
    ],
    "created_at": "2026-10-15T09:00:00Z",
    "end_at": "2026-10-20T14:30:00Z",
    "id": "5714000430000006",
    "owner_email": "owner@example.com",
    "start_at": "2026-10-20T14:00:00Z",
    "title": "Intro call"
  }
}
```

### Create company

Add a company to Agile CRM.

**Inputs**

- Company name (`name`, text, required): The company's name.
- Website (`website`, text): The company's website.
- Email (`email`, text): The company's email address.
- Phone (`phone`, text): The company's phone number.
- Custom fields (`custom_fields`, object): Your own fields as name and value, such as Plan: Pro. The field is created if the account does not have it yet.

**Outputs**

- `company` (object): The company

**Example output**

```json
{
  "company": {
    "company": "Acme Inc",
    "created_at": "2026-10-15T09:00:00Z",
    "custom_fields": {
      "Plan": "Pro"
    },
    "email": "jo@example.com",
    "first_name": "",
    "id": "5714000430000002",
    "last_name": "",
    "lead_score": 10,
    "name": "Acme Inc",
    "owner_email": "owner@example.com",
    "phone": "+15555550100",
    "star_value": 3,
    "tags": [
      "lead"
    ],
    "title": "",
    "type": "COMPANY",
    "updated_at": "",
    "website": "https://example.com"
  }
}
```

### Create contact

Add a person to Agile CRM with their name, email, phone, company, tags, lead score and custom fields. Needs at least a name or an email.

**Inputs**

- First name (`first_name`, text): The contact's first name.
- Last name (`last_name`, text): The contact's last name.
- Email (`email`, text): The contact's email address.
- Phone (`phone`, text): The contact's phone number.
- Company name (`company`, text): The name of the company they work at.
- Job title (`title`, text): Their job title.
- Website (`website`, text): Their website.
- Tags (`tags`, list): Tags to put on the contact. A new tag is created.
- Lead score (`lead_score`, number): The lead score, a whole number from 0. At least 0.
- Star rating (`star_value`, number): The star rating, 0 to 5. From 0 to 5.
- Custom fields (`custom_fields`, object): Your own fields as name and value, such as Plan: Pro. The field is created if the account does not have it yet.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "company": "Acme Inc",
    "created_at": "2026-10-15T09:00:00Z",
    "custom_fields": {
      "Plan": "Pro"
    },
    "email": "jo@example.com",
    "first_name": "Jo",
    "id": "5714000430000001",
    "last_name": "Bloggs",
    "lead_score": 10,
    "name": "Jo Bloggs",
    "owner_email": "owner@example.com",
    "phone": "+15555550100",
    "star_value": 3,
    "tags": [
      "lead"
    ],
    "title": "Buyer",
    "type": "PERSON",
    "updated_at": "",
    "website": "https://example.com"
  }
}
```

### Create deal

Add a deal to a pipeline, optionally linked to a contact. It starts in the pipeline's first stage unless you choose one.

**Inputs**

- Name (`name`, text, required): The deal's name.
- Value (`expected_value`, number): What the deal is worth. Defaults to 0. At least 0.
- Pipeline (`pipeline_id`, text): The pipeline. Leave empty for the default pipeline.
- Stage (`milestone`, text): The stage in the pipeline. Leave empty for the pipeline's first stage.
- Probability (`probability`, number): The chance of winning, 0 to 100. From 0 to 100.
- Expected close date (`close_date`, date): When the deal is expected to close.
- Description (`description`, text): Notes on the deal.
- Owner (`owner_id`, text): The user who owns it. Leave empty for the connected user.
- Contact (`contact_id`, text): A contact to link it to. Pick one, or give its ID from an earlier step.

**Outputs**

- `deal` (object): The deal

**Example output**

```json
{
  "deal": {
    "close_date": "2026-12-01T00:00:00Z",
    "contacts": [
      {
        "id": "5714000430000001",
        "name": "Jo Bloggs"
      }
    ],
    "created_at": "2026-10-15T09:00:00Z",
    "description": "Phase one",
    "expected_value": 5000.0,
    "id": "5714000430000003",
    "milestone": "New",
    "name": "Website redesign",
    "owner_email": "owner@example.com",
    "pipeline_id": "5714000430000009",
    "probability": 20,
    "updated_at": "2026-10-15T09:00:00Z",
    "won_date": ""
  }
}
```

### Create task

Add a task, optionally linked to a contact.

**Inputs**

- Subject (`subject`, text, required): What needs doing.
- Type (`type`, text): What kind of task it is. Defaults to Other. One of: `CALL`, `EMAIL`, `FOLLOW_UP` (Follow up), `MEETING`, `MILESTONE`, `SEND`, `TWEET`, `OTHER`.
- Priority (`priority`, text): How urgent it is. Defaults to Normal. One of: `HIGH`, `NORMAL`, `LOW`.
- Due (`due`, date and time): When it is due. Defaults to a day from now.
- Status (`status`, text): Where the task stands. Completed also marks it done. One of: `YET_TO_START` (Yet to start), `IN_PROGRESS` (In progress), `COMPLETED`.
- Contact (`contact_id`, text): A contact to link it to. Pick one, or give its ID from an earlier step.
- Owner (`owner_id`, text): The user who owns it. Leave empty for the connected user.

**Outputs**

- `task` (object): The task

**Example output**

```json
{
  "task": {
    "completed_at": "",
    "contact_ids": [
      "5714000430000001"
    ],
    "created_at": "2026-10-15T09:00:00Z",
    "due_at": "2026-10-20T09:00:00Z",
    "id": "5714000430000004",
    "is_complete": false,
    "owner_email": "owner@example.com",
    "priority": "HIGH",
    "status": "YET_TO_START",
    "subject": "Call back about the quote",
    "type": "CALL"
  }
}
```

### Delete calendar event

Delete a calendar event. This cannot be undone.

**Inputs**

- Event ID (`event_id`, text, required): The event's ID, from 'Create calendar event' or 'List calendar events'.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `event_id` (text): The ID of the event deleted

**Example output**

```json
{
  "deleted": true,
  "event_id": "5714000430000006"
}
```

### Delete contact or company

Delete a contact, or a company, with its history. This cannot be undone.

**Inputs**

- Contact (`contact_id`, text, required): The contact, or company. Pick one, or give its ID from an earlier step.

**Outputs**

- `contact_id` (text): The ID of the contact or company deleted
- `deleted` (true/false): Always true once deleted

**Example output**

```json
{
  "contact_id": "5714000430000001",
  "deleted": true
}
```

### Delete deal

Delete a deal. This cannot be undone.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from 'List deals' or an earlier step.

**Outputs**

- `deal_id` (text): The ID of the deal deleted
- `deleted` (true/false): Always true once deleted

**Example output**

```json
{
  "deal_id": "5714000430000003",
  "deleted": true
}
```

### Delete note

Delete a note from a contact. This cannot be undone.

**Inputs**

- Contact (`contact_id`, text, required): The contact, or company. Pick one, or give its ID from an earlier step.
- Note ID (`note_id`, text, required): The note's ID, from 'Add note to contact' or 'List a contact's notes'.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `note_id` (text): The ID of the note deleted

**Example output**

```json
{
  "deleted": true,
  "note_id": "5714000430000005"
}
```

### Delete task

Delete a task. This cannot be undone.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, from 'List tasks' or an earlier step.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `task_id` (text): The ID of the task deleted

**Example output**

```json
{
  "deleted": true,
  "task_id": "5714000430000004"
}
```

### Find contact by email

Look a contact up by email address. 'found' says whether there is one, so a workflow can branch on it.

**Inputs**

- Email (`email`, text, required): The email address to look for.

**Outputs**

- `contact` (object): The contact, empty if none was found
- `found` (true/false): Whether a contact has this email

**Example output**

```json
{
  "contact": {
    "company": "Acme Inc",
    "created_at": "2026-10-15T09:00:00Z",
    "custom_fields": {
      "Plan": "Pro"
    },
    "email": "jo@example.com",
    "first_name": "Jo",
    "id": "5714000430000001",
    "last_name": "Bloggs",
    "lead_score": 10,
    "name": "Jo Bloggs",
    "owner_email": "owner@example.com",
    "phone": "+15555550100",
    "star_value": 3,
    "tags": [
      "lead"
    ],
    "title": "Buyer",
    "type": "PERSON",
    "updated_at": "",
    "website": "https://example.com"
  },
  "found": true
}
```

### Get contact or company

Get one contact, or one company, by its ID.

**Inputs**

- Contact (`contact_id`, text, required): The contact, or company. Pick one, or give its ID from an earlier step.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "company": "Acme Inc",
    "created_at": "2026-10-15T09:00:00Z",
    "custom_fields": {
      "Plan": "Pro"
    },
    "email": "jo@example.com",
    "first_name": "Jo",
    "id": "5714000430000001",
    "last_name": "Bloggs",
    "lead_score": 10,
    "name": "Jo Bloggs",
    "owner_email": "owner@example.com",
    "phone": "+15555550100",
    "star_value": 3,
    "tags": [
      "lead"
    ],
    "title": "Buyer",
    "type": "PERSON",
    "updated_at": "",
    "website": "https://example.com"
  }
}
```

### Get deal

Get one deal by its ID.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from 'List deals' or an earlier step.

**Outputs**

- `deal` (object): The deal

**Example output**

```json
{
  "deal": {
    "close_date": "2026-12-01T00:00:00Z",
    "contacts": [
      {
        "id": "5714000430000001",
        "name": "Jo Bloggs"
      }
    ],
    "created_at": "2026-10-15T09:00:00Z",
    "description": "Phase one",
    "expected_value": 5000.0,
    "id": "5714000430000003",
    "milestone": "New",
    "name": "Website redesign",
    "owner_email": "owner@example.com",
    "pipeline_id": "5714000430000009",
    "probability": 20,
    "updated_at": "2026-10-15T09:00:00Z",
    "won_date": ""
  }
}
```

### Get task

Get one task by its ID.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, from 'List tasks' or an earlier step.

**Outputs**

- `task` (object): The task

**Example output**

```json
{
  "task": {
    "completed_at": "",
    "contact_ids": [
      "5714000430000001"
    ],
    "created_at": "2026-10-15T09:00:00Z",
    "due_at": "2026-10-20T09:00:00Z",
    "id": "5714000430000004",
    "is_complete": false,
    "owner_email": "owner@example.com",
    "priority": "HIGH",
    "status": "YET_TO_START",
    "subject": "Call back about the quote",
    "type": "CALL"
  }
}
```

### List a contact's notes

List the notes on a contact or company.

**Inputs**

- Contact (`contact_id`, text, required): The contact, or company. Pick one, or give its ID from an earlier step.

**Outputs**

- `count` (number): How many are in this answer
- `notes` (list): The notes

**Example output**

```json
{
  "count": 1,
  "notes": [
    {
      "contact_ids": [
        "5714000430000001"
      ],
      "created_at": "2026-10-15T09:00:00Z",
      "deal_ids": [],
      "description": "Interested in the Pro plan.",
      "id": "5714000430000005",
      "subject": "Met at the conference"
    }
  ]
}
```

### List calendar events

List the calendar events that fall between two times.

**Inputs**

- From (`start`, date and time, required): Start of the range.
- Until (`end`, date and time, required): End of the range.

**Outputs**

- `count` (number): How many are in this answer
- `events` (list): The events

**Example output**

```json
{
  "count": 1,
  "events": [
    {
      "all_day": false,
      "color": "#36C",
      "contact_ids": [
        "5714000430000001"
      ],
      "created_at": "2026-10-15T09:00:00Z",
      "end_at": "2026-10-20T14:30:00Z",
      "id": "5714000430000006",
      "owner_email": "owner@example.com",
      "start_at": "2026-10-20T14:00:00Z",
      "title": "Intro call"
    }
  ]
}
```

### List companies

List companies, newest first. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 25. From 1 to 100.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `companies` (list): The companies
- `count` (number): How many are in this answer
- `next_cursor` (text): Pass this as 'Next page cursor' to get the next page; empty on the last page

**Example output**

```json
{
  "companies": [
    {
      "company": "Acme Inc",
      "created_at": "2026-10-15T09:00:00Z",
      "custom_fields": {
        "Plan": "Pro"
      },
      "email": "jo@example.com",
      "first_name": "",
      "id": "5714000430000002",
      "last_name": "",
      "lead_score": 10,
      "name": "Acme Inc",
      "owner_email": "owner@example.com",
      "phone": "+15555550100",
      "star_value": 3,
      "tags": [
        "lead"
      ],
      "title": "",
      "type": "COMPANY",
      "updated_at": "",
      "website": "https://example.com"
    }
  ],
  "count": 1,
  "next_cursor": ""
}
```

### List contacts

List contacts, newest first. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 25. From 1 to 100.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `contacts` (list): The contacts
- `count` (number): How many are in this answer
- `next_cursor` (text): Pass this as 'Next page cursor' to get the next page; empty on the last page

**Example output**

```json
{
  "contacts": [
    {
      "company": "Acme Inc",
      "created_at": "2026-10-15T09:00:00Z",
      "custom_fields": {
        "Plan": "Pro"
      },
      "email": "jo@example.com",
      "first_name": "Jo",
      "id": "5714000430000001",
      "last_name": "Bloggs",
      "lead_score": 10,
      "name": "Jo Bloggs",
      "owner_email": "owner@example.com",
      "phone": "+15555550100",
      "star_value": 3,
      "tags": [
        "lead"
      ],
      "title": "Buyer",
      "type": "PERSON",
      "updated_at": "",
      "website": "https://example.com"
    }
  ],
  "count": 1,
  "next_cursor": ""
}
```

### List deals

List deals. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 25. From 1 to 100.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many are in this answer
- `deals` (list): The deals
- `next_cursor` (text): Pass this as 'Next page cursor' to get the next page; empty on the last page

**Example output**

```json
{
  "count": 1,
  "deals": [
    {
      "close_date": "2026-12-01T00:00:00Z",
      "contacts": [
        {
          "id": "5714000430000001",
          "name": "Jo Bloggs"
        }
      ],
      "created_at": "2026-10-15T09:00:00Z",
      "description": "Phase one",
      "expected_value": 5000.0,
      "id": "5714000430000003",
      "milestone": "New",
      "name": "Website redesign",
      "owner_email": "owner@example.com",
      "pipeline_id": "5714000430000009",
      "probability": 20,
      "updated_at": "2026-10-15T09:00:00Z",
      "won_date": ""
    }
  ],
  "next_cursor": ""
}
```

### List pipelines

List the deal pipelines and the stages in each.

**Inputs**: None.

**Outputs**

- `count` (number): How many are in this answer
- `pipelines` (list): The pipelines

**Example output**

```json
{
  "count": 1,
  "pipelines": [
    {
      "id": "5714000430000009",
      "is_default": true,
      "lost_milestone": "Lost",
      "milestones": [
        "New",
        "Prospect",
        "Proposal",
        "Won",
        "Lost"
      ],
      "name": "Default",
      "won_milestone": "Won"
    }
  ]
}
```

### List tasks

List tasks, optionally only those not yet done or one user's. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Only tasks not done (`pending_only`, true/false): Leave out tasks that are already complete.
- Owner (`owner_id`, text): Only this user's tasks. Leave empty for everyone's.
- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 25. From 1 to 100.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many are in this answer
- `next_cursor` (text): Pass this as 'Next page cursor' to get the next page; empty on the last page
- `tasks` (list): The tasks

**Example output**

```json
{
  "count": 1,
  "next_cursor": "",
  "tasks": [
    {
      "completed_at": "",
      "contact_ids": [
        "5714000430000001"
      ],
      "created_at": "2026-10-15T09:00:00Z",
      "due_at": "2026-10-20T09:00:00Z",
      "id": "5714000430000004",
      "is_complete": false,
      "owner_email": "owner@example.com",
      "priority": "HIGH",
      "status": "YET_TO_START",
      "subject": "Call back about the quote",
      "type": "CALL"
    }
  ]
}
```

### List users

List the users of the Agile CRM account, with their email and role.

**Inputs**: None.

**Outputs**

- `count` (number): How many are in this answer
- `users` (list): The users

**Example output**

```json
{
  "count": 1,
  "users": [
    {
      "domain": "acme",
      "email": "owner@example.com",
      "id": "5714000430000007",
      "is_account_owner": true,
      "is_admin": true,
      "is_disabled": false,
      "name": "Jo Owner",
      "phone": ""
    }
  ]
}
```

### Remove tags from contact

Take tags off a contact or company. A tag it does not have is ignored.

**Inputs**

- Contact (`contact_id`, text, required): The contact, or company. Pick one, or give its ID from an earlier step.
- Tags (`tags`, list, required): The tags. Pick existing ones or type new names; a new tag is created.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "company": "Acme Inc",
    "created_at": "2026-10-15T09:00:00Z",
    "custom_fields": {
      "Plan": "Pro"
    },
    "email": "jo@example.com",
    "first_name": "Jo",
    "id": "5714000430000001",
    "last_name": "Bloggs",
    "lead_score": 10,
    "name": "Jo Bloggs",
    "owner_email": "owner@example.com",
    "phone": "+15555550100",
    "star_value": 3,
    "tags": [
      "lead"
    ],
    "title": "Buyer",
    "type": "PERSON",
    "updated_at": "",
    "website": "https://example.com"
  }
}
```

### Search contacts and companies

Search by name, email, company or other text in a record.

**Inputs**

- Search for (`query`, text, required): Part of a name, email or company.
- Look in (`type`, text): Only people, or only companies. Leave empty for both. One of: `PERSON` (People only), `COMPANY` (Companies only).
- Page size (`page_size`, number): How many to return, 1 to 100. Defaults to 25. From 1 to 100.

**Outputs**

- `contacts` (list): The contacts and companies found
- `count` (number): How many are in this answer

**Example output**

```json
{
  "contacts": [
    {
      "company": "Acme Inc",
      "created_at": "2026-10-15T09:00:00Z",
      "custom_fields": {
        "Plan": "Pro"
      },
      "email": "jo@example.com",
      "first_name": "Jo",
      "id": "5714000430000001",
      "last_name": "Bloggs",
      "lead_score": 10,
      "name": "Jo Bloggs",
      "owner_email": "owner@example.com",
      "phone": "+15555550100",
      "star_value": 3,
      "tags": [
        "lead"
      ],
      "title": "Buyer",
      "type": "PERSON",
      "updated_at": "",
      "website": "https://example.com"
    }
  ],
  "count": 1
}
```

### Update company

Change a company's name, website, email, phone or custom fields. Only the fields you fill in change.

**Inputs**

- Company ID (`company_id`, text, required): The company's ID, from 'Create company', 'List companies' or an earlier step.
- Company name (`name`, text): A new name. Leave empty to keep it.
- Website (`website`, text): A new website. Leave empty to keep it.
- Email (`email`, text): A new email address. Leave empty to keep it.
- Phone (`phone`, text): A new phone number. Leave empty to keep it.
- Custom fields (`custom_fields`, object): Your own fields as name and value, such as Plan: Pro. The field is created if the account does not have it yet.

**Outputs**

- `company` (object): The company

**Example output**

```json
{
  "company": {
    "company": "Acme Inc",
    "created_at": "2026-10-15T09:00:00Z",
    "custom_fields": {
      "Plan": "Pro"
    },
    "email": "jo@example.com",
    "first_name": "",
    "id": "5714000430000002",
    "last_name": "",
    "lead_score": 10,
    "name": "Acme Inc",
    "owner_email": "owner@example.com",
    "phone": "+15555550100",
    "star_value": 3,
    "tags": [
      "lead"
    ],
    "title": "",
    "type": "COMPANY",
    "updated_at": "",
    "website": "https://example.com"
  }
}
```

### Update contact

Change a contact's details, lead score or star rating. Only the fields you fill in change; the rest are kept.

**Inputs**

- Contact (`contact_id`, text, required): The contact, or company. Pick one, or give its ID from an earlier step.
- First name (`first_name`, text): The contact's first name. Leave empty to keep it.
- Last name (`last_name`, text): The contact's last name. Leave empty to keep it.
- Email (`email`, text): The contact's email address. Leave empty to keep it.
- Phone (`phone`, text): The contact's phone number. Leave empty to keep it.
- Company name (`company`, text): The name of the company they work at. Leave empty to keep it.
- Job title (`title`, text): Their job title. Leave empty to keep it.
- Website (`website`, text): Their website. Leave empty to keep it.
- Lead score (`lead_score`, number): The lead score, a whole number from 0. Leave empty to keep it. At least 0.
- Star rating (`star_value`, number): The star rating, 0 to 5. Leave empty to keep it. From 0 to 5.
- Custom fields (`custom_fields`, object): Your own fields as name and value, such as Plan: Pro. The field is created if the account does not have it yet.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "company": "Acme Inc",
    "created_at": "2026-10-15T09:00:00Z",
    "custom_fields": {
      "Plan": "Pro"
    },
    "email": "jo@example.com",
    "first_name": "Jo",
    "id": "5714000430000001",
    "last_name": "Bloggs",
    "lead_score": 10,
    "name": "Jo Bloggs",
    "owner_email": "owner@example.com",
    "phone": "+15555550100",
    "star_value": 3,
    "tags": [
      "lead"
    ],
    "title": "Buyer",
    "type": "PERSON",
    "updated_at": "",
    "website": "https://example.com"
  }
}
```

### Update deal

Change a deal's name, value, stage, probability, close date or owner. Only the fields you fill in change; moving it to the won or lost stage closes it.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from 'List deals' or an earlier step.
- Name (`name`, text): The deal's name. Leave empty to keep it.
- Value (`expected_value`, number): What the deal is worth. Leave empty to keep it. At least 0.
- Pipeline (`pipeline_id`, text): The pipeline. Leave empty for the default pipeline.
- Stage (`milestone`, text): The stage in the pipeline. Leave empty for the pipeline's first stage.
- Probability (`probability`, number): The chance of winning, 0 to 100. Leave empty to keep it. From 0 to 100.
- Expected close date (`close_date`, date): When the deal is expected to close. Leave empty to keep it.
- Description (`description`, text): Notes on the deal. Leave empty to keep it.
- Owner (`owner_id`, text): The user who owns it. Leave empty for the connected user.

**Outputs**

- `deal` (object): The deal

**Example output**

```json
{
  "deal": {
    "close_date": "2026-12-01T00:00:00Z",
    "contacts": [
      {
        "id": "5714000430000001",
        "name": "Jo Bloggs"
      }
    ],
    "created_at": "2026-10-15T09:00:00Z",
    "description": "Phase one",
    "expected_value": 5000.0,
    "id": "5714000430000003",
    "milestone": "New",
    "name": "Website redesign",
    "owner_email": "owner@example.com",
    "pipeline_id": "5714000430000009",
    "probability": 20,
    "updated_at": "2026-10-15T09:00:00Z",
    "won_date": ""
  }
}
```

### Update task

Change a task's subject, type, priority, due time or status. Only the fields you fill in change; set the status to Completed to close it.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, from 'List tasks' or an earlier step.
- Subject (`subject`, text): A new subject. Leave empty to keep it.
- Type (`type`, text): A new type. Leave empty to keep it. One of: `CALL`, `EMAIL`, `FOLLOW_UP` (Follow up), `MEETING`, `MILESTONE`, `SEND`, `TWEET`, `OTHER`.
- Priority (`priority`, text): A new priority. Leave empty to keep it. One of: `HIGH`, `NORMAL`, `LOW`.
- Due (`due`, date and time): A new due time. Leave empty to keep it.
- Status (`status`, text): A new status. Completed also marks it done. Leave empty to keep it. One of: `YET_TO_START` (Yet to start), `IN_PROGRESS` (In progress), `COMPLETED`.

**Outputs**

- `task` (object): The task

**Example output**

```json
{
  "task": {
    "completed_at": "",
    "contact_ids": [
      "5714000430000001"
    ],
    "created_at": "2026-10-15T09:00:00Z",
    "due_at": "2026-10-20T09:00:00Z",
    "id": "5714000430000004",
    "is_complete": false,
    "owner_email": "owner@example.com",
    "priority": "HIGH",
    "status": "YET_TO_START",
    "subject": "Call back about the quote",
    "type": "CALL"
  }
}
```
