Amocrm Rocket icon

Amocrm Rocket

Consume AmoCRM API

Lead → Create Leads

AI-generated

Summary

Create leads in Amocrm

Inputs

  • authentication (required) — Authentication method for Amocrm API access. Select 'Long Lived Token' or 'OAuth2'. Default is 'OAuth2'.
  • json — When true, leads are provided as a JSON string via the jsonString parameter. When false, lead data is supplied through the collection parameter. Default is false. No data expression supported.
  • jsonString — Stringified array of lead objects. Required when json is true. Default is an expression stringifying a sample array.
  • collection — Fixed collection of lead objects. Required when json is false. Multiple values allowed. Each lead includes name (string), price (number), pipeline_id (options, loads via getPipelines), status_id (options, loads via getStatusesWithoutUnsorted), created_by/updated_by/responsible_user_id (options, loads via getActiveUsersWithRobot), closed_at/created_at/updated_at (dateTime), loss_reason_id (options, loads via getLossReasons), custom_fields_values (fixed collection of custom field name/value pairs, data loads via getLeadCustomFields), and _embedded tags/contacts/companies.
  • options — Optional collection. Currently supports a single parameter: proxy (string), e.g., 'http://username:password@host:port'.

Output shape

Lead records created in Amocrm. Returned data typically includes created lead IDs and updated timestamps, dependent on the Amocrm API response.

No explicit return shape is declared in the node's UI properties; the exact output structure follows the Amocrm API's create-lead response format.

Examples

Example 1: Create a single lead using UI parameters

Set authentication to OAuth2, leave json false, populate collection with name, price, pipeline_id, status_id, and optional created_by/updated_by/responsible_user_id. Add custom_fields_values and _embedded tags as needed.

Example 2: Create leads via JSON string

Set json to true and provide a JSON string array in jsonString, e.g., '[{name: myName, price: myPrice, pipeline_id: myPipeline}]'.

Links

Discussion