# iClosed

> Work with iClosed contacts, events, calls, custom fields and deals.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/iclosed

## Actions

### Create a contact note

Create a contact note.

**Inputs**

- Contact (`contact_id`, number, required): Contact ID. The contact to attach the note to. From 1 to 2147483647.
- Note (`note`, text, required): Note body content. Supports plain text or HTML.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "message": "example",
    "status": 1
  }
}
```

### Create a product

Create a product.

**Inputs**

- Name (`name`, text, required): Name for the new product (max 40 chars).
- Description (`description`, text): Optional description for the new product.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": {
      "error": {},
      "product": {
        "createdAt": "example",
        "id": 1,
        "name": "example",
        "updatedAt": "example"
      }
    }
  }
}
```

### Get a contact

Get a contact.

**Inputs**

- Contact (`contact_id`, number, required): Contact ID to fetch details for. From 1 to 2147483647.
- Include utms (`include_utms`, true/false): When true, include UTMs in a flat `utms` array (with eventCallId per row).

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": "example",
      "email": "example",
      "firstName": "example",
      "id": 1,
      "lastName": "example",
      "status": "example",
      "updatedAt": "example"
    }
  }
}
```

### Get an event

Get an event.

**Inputs**

- Event (`event_id`, number, required): Event ID. From 0 to 2147483647.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": {},
      "id": 1,
      "linkPrefix": "example",
      "name": "example",
      "status": "ACTIVATED",
      "updatedAt": {}
    }
  }
}
```

### Get contact stages

Get contact stages.

**Inputs**: None.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "CustomFieldOptions": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "CustomFieldOptionsGrouped": {},
    "description": "example",
    "id": 1,
    "identifier": "example",
    "inputType": "NUMBER",
    "name": "example",
    "type": "CONTACT"
  }
}
```

### List account users

List account users.

**Inputs**

- Limit (`limit`, number): Number of users per page. Default is 20; maximum is 100. From 1 to 100.
- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.
- Search (`search`, text): Optional text query that matches user name and email fields.
- Ids (`ids`, text): Optional comma-separated user IDs to include in results.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": {
      "count": 1,
      "users": [
        {
          "email": "example",
          "id": 1
        }
      ]
    }
  }
}
```

### List all custom fields

List all custom fields.

**Inputs**

- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.
- Limit (`limit`, number): Maximum number of items per object-type slice. From 1 to 100.
- Search (`search`, text): Search term applied in service layer.
- Input type (`input_type`, text): Filter by input type across object types. One of: `NUMBER`, `TEXT`, `TEXT_AREA` (Text area), `DATE`, `CHECK_BOX` (Check box), `RADIO_BUTTON` (Radio button), `USER`, `USERS_MULTIPLE` (Users multiple), `URL`, `SINGLE_SELECT` (Single select), and 3 more.
- Show system fields (`show_system_fields`, text): Whether to include system fields. One of: `true`, `false`.
- Invitee questions (`invitee_questions`, text): Whether to filter by invitee-question behavior. One of: `true`, `false`.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

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

### List calls

List calls.

**Inputs**

- Ids (`ids`, text): Comma-separated event call IDs to include
- Contact (`contact_id`, number): Filter by contact ID. From 0 to 2147483647.
- Event type (`event_type`, text): Time-window filter: PAST, UPCOMING, or ALL. One of: `PAST`, `UPCOMING`, `ALL`.
- Search (`search`, text): Free-text search across invitee/contact name, email, and phone
- Date from (`date_from`, date and time): Start of date range filter (inclusive)
- Date to (`date_to`, date and time): End of date range filter (inclusive)
- Created at start (`created_at_start`, date and time): Start of creation date range filter (inclusive)
- Created at end (`created_at_end`, date and time): End of creation date range filter (inclusive)
- Location (`location`, text): Comma-separated location filter values (e.g. PHONE_CALL,GOOGLE_MEET)
- Order column (`order_column`, text): Sort column for result ordering: createdAt, dateTime, updatedAt, id. One of: `createdAt`, `dateTime`, `updatedAt`, `id`.
- Order by (`order_by`, text): Sort direction: asc or desc. Required together with orderColumn when sorting. One of: `asc`, `desc`.
- Limit (`limit`, number): Maximum number of records per page. From 1 to 100.
- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.
- User IDs (`user_ids`, text): Comma-separated assigned user IDs
- Event IDs (`event_ids`, text): Comma-separated event template IDs
- Types (`types`, text): Types.
- Invitee emails (`invitee_emails`, text): Comma-separated invitee email addresses
- Outcomes (`outcomes`, text): Outcomes.
- No sale reason (`no_sale_reason`, text): No sale reason.
- Utm keys (`utm_keys`, text): Comma-separated UTM parameter keys to filter by
- Utm values (`utm_values`, text): Comma-separated UTM parameter values to filter by
- Call types (`call_types`, text): Call types.
- Setter IDs (`setter_ids`, text): Comma-separated setter user IDs linked via SettedClaim

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": {
      "count": 1,
      "eventCalls": [
        {
          "id": 1
        }
      ]
    }
  }
}
```

### List contact notes

List contact notes.

**Inputs**

- Contact (`contact_id`, number, required): Contact ID whose notes should be returned. From 1 to 2147483647.
- Limit (`limit`, number): Maximum notes returned per page. Default is 20. From 1 to 100.
- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "createdAt": {},
        "id": 1,
        "text": "example",
        "type": "example",
        "updatedAt": {},
        "user": {
          "firstName": "example",
          "lastName": "example"
        }
      }
    ]
  }
}
```

### List contacts

List contacts.

**Inputs**

- Account user (`account_user_id`, number): Return only contacts assigned to this user ID. From 1 to 2147483647.
- Statuses (`statuses`, list): Comma-separated contact statuses to filter by. Allowed values: POTENTIAL, QUALIFIED, DISQUALIFIED, STRATEGY_CALL_BOOKED, DISCOVERY_CALL_BOOKED. One or more of: `POTENTIAL`, `QUALIFIED`, `DISQUALIFIED`, `STRATEGY_CALL_BOOKED` (Strategy call booked), `DISCOVERY_CALL_BOOKED` (Discovery call booked).
- Event IDs (`event_ids`, list): Comma-separated event IDs to filter by (positive integers only, for example 1,2,3).
- Search (`search`, text): Case-insensitive single search value matched across firstName, lastName, email, and phoneNumber (not comma-separated values).
- Limit (`limit`, number): Maximum contacts returned per page (1 to 100). Default is 20. From 1 to 100.
- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.
- Start (`start`, date and time): Lower bound for joinedTime filtering, in ISO 8601 date-time format.
- End (`end`, date and time): Upper bound for joinedTime filtering, in ISO 8601 date-time format. Use with timeFrom for ranges.
- Order by (`order_by`, text): Sort direction: asc or desc. Required together with orderColumn when sorting. One of: `asc`, `desc`.
- Order column (`order_column`, text): Field to sort by: id, createdAt, updatedAt, joinedTime, firstName, lastName, or email. Required together with orderBy when sorting. One of: `id`, `createdAt`, `updatedAt`, `joinedTime`, `firstName`, `lastName`, `email`.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": {
      "contacts": [
        {
          "email": "example",
          "id": 1
        }
      ],
      "count": 1
    }
  }
}
```

### List custom fields by object

List custom fields by object.

**Inputs**

- Object type (`object_type`, text, required): Object type to filter fields by. One of: `CONTACT`, `CALL`, `EVENT`, `DEAL`, `USER`, `ISCORE`.
- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.
- Limit (`limit`, number): Maximum number of fields returned per page. From 1 to 100.
- Search (`search`, text): Search term applied on field name/identifier in service layer.
- Input type (`input_type`, text): Filter fields by input type. One of: `NUMBER`, `TEXT`, `TEXT_AREA` (Text area), `DATE`, `CHECK_BOX` (Check box), `RADIO_BUTTON` (Radio button), `USER`, `USERS_MULTIPLE` (Users multiple), `URL`, `SINGLE_SELECT` (Single select), and 3 more.
- Show system fields (`show_system_fields`, text): Whether system fields should be included. One of: `true`, `false`.
- Invitee questions (`invitee_questions`, text): Whether to filter by invitee-question flag in service layer. One of: `true`, `false`.
- Identifiers (`identifiers`, text): Comma-separated field identifiers filter.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "createdAt": {},
        "id": 1,
        "name": "example",
        "type": "CONTACT"
      }
    ],
    "hasMore": true,
    "nextPage": 1
  }
}
```

### List deals

List deals.

**Inputs**

- Contact (`contact_id`, number): Filter deals linked to this contact id. From 0 to 2147483647.
- User IDs (`user_ids`, text): Comma-separated user ids; resolved to account user ids for filtering deals by assignee.
- Product IDs (`product_ids`, text): Comma-separated product ids; filters deals by productId in that set.
- Transaction type (`transaction_type`, text): Filter by deal transaction type (WON, RECURRING, DEPOSIT). One of: `WON`, `RECURRING`, `DEPOSIT`.
- Contact statuses (`contact_statuses`, text): Comma-separated contact status values (POTENTIAL, QUALIFIED, DISQUALIFIED, STRATEGY_CALL_BOOKED, DISCOVERY_CALL_BOOKED); filters deals whose contact status is in the list.
- Event IDs (`event_ids`, text): Comma-separated event ids; filters deals with an eventCall tied to one of those events.
- Search (`search`, text): Case-insensitive search across provider, product name, and contact fields.
- Limit (`limit`, number): Maximum deals per page (1 to 200). Default 20. From 1 to 200.
- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.
- Order by (`order_by`, text): Sort direction (asc or desc). Required together with orderColumn when sorting. One of: `asc`, `desc`.
- Order column (`order_column`, text): Deal field to sort by. Required together with orderBy when sorting. One of: `id`, `time`, `value`, `firstName`, `lastName`, `email`, `phoneNumber`.
- Start (`start`, date and time): Inclusive lower bound for deal time (ISO date, e.g. 2026-03-31T00:00:00.000Z).
- End (`end`, date and time): Inclusive upper bound for deal time (ISO date, e.g. 2026-03-31T23:59:59.999Z).

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": {
      "count": 1,
      "deals": [
        {
          "id": 1
        }
      ]
    }
  }
}
```

### List event time slots

List event time slots.

**Inputs**

- Link prefix (`link_prefix`, text, required): Public event link prefix
- Date (`date`, date, required): Date to troubleshoot
- Timezone (`timezone`, text, required): IANA timezone used for slot generation (must match app-supported timezones)
- Selected host (`selected_host`, number): Optional host user ID to pin results. From 0 to 2147483647.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": {
      "noOfAvailableSlots": 1,
      "slots": [
        {
          "availableUsers": [
            {}
          ],
          "dateTimeUTC": "example",
          "datetime": "example",
          "reason": "example",
          "slot": "example",
          "tags": [
            {}
          ],
          "unAvailableUsers": [
            {}
          ]
        }
      ]
    }
  }
}
```

### List events

List events.

**Inputs**

- Limit (`limit`, number): Maximum number of events returned per page. From 1 to 500.
- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.
- Search (`search`, text): Free-text search on event name, description, internal description, link prefix, and vanity paths (e.g. eve-2 or e/dev/eve-2)
- Account user (`account_user_id`, number): Filter by owner/host user ID. From 0 to 2147483647.
- Event type (`event_type`, text): Filter by event type. One of: `STRATEGY_EVENT` (Strategy event), `DISCOVERY_EVENT` (Discovery event).
- Latest first (`latest_first`, text): When true, events are ordered by createdAt (direction from sort when provided, else newest first)
- Sort (`sort`, text): Sort direction when provided: orders by event name then id. When null or omitted, uses the default ordering (booking volume, or createdAt when latestFirst=true). One of: `asc`, `desc`.
- Show feature statuses (`show_feature_statuses`, text): When true, each event includes featureStatuses (disqualification, conditional routing, data intelligence) for list tooltips. One of: `true`, `false`.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "eventType": "STRATEGY_EVENT",
        "id": 1,
        "linkPrefix": "example",
        "name": "example",
        "status": "ACTIVATED"
      }
    ],
    "hasVisibleEvents": true,
    "totalCount": 1
  }
}
```

### List products

List products.

**Inputs**

- Search (`search`, text): Case-insensitive product name search term.
- Limit (`limit`, number): Maximum number of records returned per page (1-200). From 1 to 200.
- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.
- Order by (`order_by`, text): Sort direction applied to orderColumn. Required together with orderColumn when sorting. One of: `asc`, `desc`.
- Order column (`order_column`, text): Product field used for sorting; "deals" sorts by related deal count. Required together with orderBy when sorting. One of: `id`, `name`, `createdAt`, `updatedAt`, `deals`.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": {
      "count": 1,
      "products": [
        {
          "id": 1
        }
      ]
    }
  }
}
```

### List transactions

List transactions.

**Inputs**

- Id (`id`, number): Filter by transaction ID. From 0 to 2147483647.
- Synced (`synced`, text): Filter by synced-to-deal status. One of: `true`, `false`.
- Search (`search`, text): Search in name, email, phoneNumber, or value.
- Source (`source`, text): Filter by source (e.g. "Zapier"). Comma-separated for multiple. One of: `Zapier`, `Stripe`, `Make`, `Other`.
- Start (`start`, date and time): Filter transactions created on or after this time (ISO 8601).
- End (`end`, date and time): Filter by createdAt on or before this time (ISO 8601).
- Page (`page`, number): Page number, starting at zero. From 0 to 2147483647.
- Limit (`limit`, number): Number of items per page. From 0 to 100.
- Sort (`sort`, text): Sort order by createdAt. One of: `asc`, `desc`.
- Sort by amount (`sort_by_amount`, text): Sort by transaction value amount: ascending or descending. One of: `ascAmount`, `descAmount`.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "createdAt": {},
        "email": "example",
        "id": 1,
        "name": "example",
        "updatedAt": {}
      }
    ]
  }
}
```

### List user availability

List user availability.

**Inputs**

- Account user (`account_user_id`, number): Optional user ID to return availabilities for a specific user. From 0 to 2147483647.

**Outputs**

- `data` (object): The response from iClosed.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdAt": {},
        "id": 1,
        "name": "example"
      }
    ]
  }
}
```
