# LinkedIn Lead Gen Forms and Conversion API

> Read lead forms and responses, manage notifications and conversion rules, and report server-side conversion events.

App · 11 actions. Web page: https://docs.lodol.com/docs/integrations/linkedin-lead-gen-forms

## Actions

### Create conversion

Create conversion.

**Inputs**

- Name (`name`, text, required): Name.
- Account (`account`, text): Account.
- Type (`type`, text, required): Type. One of: `ADD_TO_CART` (Add to cart), `DOWNLOAD`, `INSTALL`, `KEY_PAGE_VIEW` (Key page view), `LEAD`, `PURCHASE`, `SIGN_UP` (Sign up), `OTHER`.
- Post click attribution window size (`post_click_attribution_window_size`, number, required): Post click attribution window size. One of: `1`, `7`, `30`, `90`.
- View through attribution window size (`view_through_attribution_window_size`, number, required): View through attribution window size. One of: `1`, `7`, `30`, `90`.
- Attribution type (`attribution_type`, text, required): Attribution type. One of: `LAST_TOUCH_BY_CAMPAIGN` (Last touch by campaign), `LAST_TOUCH_BY_CONVERSION` (Last touch by conversion).

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

```json
{
  "data": {
    "id": "example"
  }
}
```

### Create form

Create form.

**Inputs**

- Owner (`owner`, object, required): Owner.
- Name (`name`, text, required): Name.
- Creation locale (`creation_locale`, object, required): Creation locale.
- Content (`content`, object, required): Content.
- State (`state`, text, required): State. One of: `DRAFT`, `PUBLISHED`.
- Hidden fields (`hidden_fields`, list): Hidden fields.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

```json
{
  "data": {
    "id": "example"
  }
}
```

### Create lead notification

Create lead notification.

**Inputs**

- Webhook (`webhook`, text, required): Webhook.
- Owner (`owner`, object, required): Owner.
- Lead type (`lead_type`, text, required): Lead type. One of: `SPONSORED`, `EVENT`, `COMPANY`, `ORGANIZATION_PRODUCT` (Organization product).
- Versioned form (`versioned_form`, text): Versioned form.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

```json
{
  "data": {
    "id": "example"
  }
}
```

### Delete lead notification

Delete lead notification.

**Inputs**

- Notification id (`notification_id`, text, required): Notification id.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

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

### Get conversion

Get conversion.

**Inputs**

- Conversion id (`conversion_id`, text, required): Conversion id.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

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

### Get form

Get form.

**Inputs**

- Form id (`form_id`, text, required): Form id.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

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

### Get response

Get response.

**Inputs**

- Response id (`response_id`, text, required): Response id.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

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

### List conversions

List conversions.

**Inputs**

- Account (`account`, text): Account.
- Start (`start`, number): Start. At least 0.
- Count (`count`, number): Count. From 1 to 100.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

```json
{
  "data": {
    "elements": []
  }
}
```

### List forms

List forms.

**Inputs**

- Owner id (`owner_id`, text): Owner id.
- Owner type (`owner_type`, text): Owner type. One of: `sponsoredAccount`, `organization`.
- Start (`start`, number): Start. At least 0.
- Count (`count`, number): Count. From 1 to 100.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

```json
{
  "data": {
    "elements": []
  }
}
```

### List responses

List responses.

**Inputs**

- Owner id (`owner_id`, text): Owner id.
- Owner type (`owner_type`, text): Owner type. One of: `sponsoredAccount`, `organization`.
- Lead type (`lead_type`, text, required): Lead type. One of: `SPONSORED`, `EVENT`, `COMPANY`, `ORGANIZATION_PRODUCT` (Organization product).
- Start (`start`, number): Start. At least 0.
- Count (`count`, number): Count. From 1 to 100.
- Limited to test leads (`limited_to_test_leads`, true/false): Limited to test leads.
- Versioned lead gen form urn (`versioned_lead_gen_form_urn`, text): Versioned lead gen form urn.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

```json
{
  "data": {
    "elements": []
  }
}
```

### Send conversion

Send conversion.

**Inputs**

- Conversion (`conversion`, text, required): Conversion.
- Conversion happened at (`conversion_happened_at`, date and time, required): Conversion happened at.
- Event id (`event_id`, text, required): Event id.
- User (`user`, object, required): User.
- Conversion value (`conversion_value`, object): Conversion value.

**Outputs**

- `data` (object): Linked In Lead Gen Forms and Conversion API response data.

**Example output**

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