> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn Ads Audiences: Send Conversion Events

> Send LinkedIn Conversions API (CAPI) events for offline or server-side conversions such as leads, signups, qualified leads, closed deals and purchases,.

Send LinkedIn Conversions API (CAPI) events for offline or server-side conversions such as leads, signups, qualified leads, closed deals and purchases,.

> [!NOTE]
>
> Tool ID: `linkedin_ads_audiences_send_conversion_events`

## Run this action

This action has conditional or dynamic inputs. A static example cannot describe these inputs reliably.

Read the live contract before you execute this action:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline describe linkedin_ads_audiences_send_conversion_events --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "events_sent": 123,
    "http_status": 123
  }
}
```

Use `deepline describe linkedin_ads_audiences_send_conversion_events --json` for the latest machine-readable contract.

## Input reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.events` | `array` | Yes | — | One to 5,000 conversion events, sent to LinkedIn as one batch. LinkedIn rejects the whole batch when any event is invalid. Minimum items: 1. Maximum items: 5000. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "events": {
        "type": "array",
        "description": "One to 5,000 conversion events, sent to LinkedIn as one batch. LinkedIn rejects the whole batch when any event is invalid.",
        "minItems": 1,
        "maxItems": 5000,
        "items": {
          "type": "object",
          "properties": {
            "conversion": {
              "type": "string",
              "description": "Conversion rule to credit: the numeric rule id or urn:lla:llaPartnerConversion:{id}. Find it with linkedin_ads_audiences_list_conversion_rules. The rule must be enabled and use conversionMethod CONVERSIONS_API.",
              "pattern": "^(urn:lla:llaPartnerConversion:)?\\d+$"
            },
            "conversionHappenedAt": {
              "type": "integer",
              "description": "When the conversion actually happened, in Unix epoch milliseconds, within the past 90 days. Never use upload or retry time, and never seconds.",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "eventId": {
              "type": "string",
              "description": "Stable unique id for this occurrence. Reuse the same id on every retry. Share it with the Insight Tag event_id when the same conversion also fires in the browser so LinkedIn counts it once.",
              "minLength": 1,
              "pattern": "\\S"
            },
            "conversionValue": {
              "type": "object",
              "properties": {
                "currencyCode": {
                  "type": "string",
                  "description": "ISO 4217 currency code, such as USD.",
                  "pattern": "^[A-Z]{3}$"
                },
                "amount": {
                  "type": "string",
                  "description": "Conversion value as a decimal string, such as \"50.0\". Not a number.",
                  "pattern": "^\\d+(\\.\\d+)?$"
                }
              },
              "required": [
                "currencyCode",
                "amount"
              ],
              "additionalProperties": false
            },
            "user": {
              "type": "object",
              "properties": {
                "userIds": {
                  "type": "array",
                  "description": "Identifiers used to match the person. Send every identifier you have. A raw email under SHA256_EMAIL is lowercased, trimmed and SHA-256 hashed before it is sent to LinkedIn; an existing 64-character hex digest is kept.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "idType": {
                        "type": "string",
                        "description": "SHA256_EMAIL: email, raw or SHA-256 hex. LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID: the li_fat_id click id from the landing URL or first-party cookie. ACXIOM_ID: LiveRamp identity. PLAINTEXT_IP_ADDRESS: IPv4 address. SHA256_IP_ADDRESS: SHA-256 hex of an IPv4 address. GOOGLE_AID: Android advertising id.",
                        "enum": [
                          "SHA256_EMAIL",
                          "LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID",
                          "ACXIOM_ID",
                          "PLAINTEXT_IP_ADDRESS",
                          "SHA256_IP_ADDRESS",
                          "GOOGLE_AID"
                        ]
                      },
                      "idValue": {
                        "type": "string",
                        "minLength": 1,
                        "pattern": "\\S"
                      }
                    },
                    "required": [
                      "idType",
                      "idValue"
                    ],
                    "additionalProperties": false
                  }
                },
                "userInfo": {
                  "type": "object",
                  "description": "Plain-text details for probabilistic matching. LinkedIn requires firstName and lastName together.",
                  "properties": {
                    "firstName": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": "\\S"
                    },
                    "lastName": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": "\\S"
                    },
                    "companyName": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": "\\S"
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": "\\S"
                    },
                    "countryCode": {
                      "type": "string",
                      "description": "ISO 3166-1 alpha-2 country code, such as US.",
                      "pattern": "^[A-Za-z]{2}$"
                    }
                  },
                  "required": [
                    "firstName",
                    "lastName"
                  ],
                  "additionalProperties": false
                },
                "lead": {
                  "type": "string",
                  "description": "LinkedIn Lead Gen Form response URN, urn:li:leadGenFormResponse:{id}.",
                  "pattern": "^urn:li:leadGenFormResponse:\\S+$"
                },
                "externalIds": {
                  "type": "array",
                  "description": "Your own identifier for this person. LinkedIn uses one value. Send it with another identifier the first time so LinkedIn can learn the mapping.",
                  "minItems": 1,
                  "maxItems": 1,
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "conversion",
            "conversionHappenedAt",
            "eventId",
            "user"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "events"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.events_sent` | `integer` | Yes | — | Minimum: 1. |
| `result.data.http_status` | `integer` | Yes | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "events_sent": {
            "type": "integer",
            "minimum": 1
          },
          "http_status": {
            "type": "integer"
          }
        },
        "required": [
          "events_sent",
          "http_status"
        ],
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.