AdHub App icon

AdHub App

Manage AdHub leads, activities, sources, statuses, tags, and custom fields

Lead → Create

AI-generated

Summary

Create a new lead in the AdHub system by providing lead details either as individual form fields or as a raw JSON object.

Inputs

  • Body Type (required) — Select 'Form' to enter lead details using individual fields or 'JSON' to provide a raw JSON object for the lead details.
  • Body (JSON) (required) — Provide the entire lead object as a JSON string when 'Body Type' is set to 'JSON'.
  • First Name — Lead's first name (available if 'Body Type' is 'Form').
  • Last Name — Lead's last name (available if 'Body Type' is 'Form').
  • Email — Lead's email address (available if 'Body Type' is 'Form').
  • Mobile Number — Lead's mobile phone number (available if 'Body Type' is 'Form').
  • Status Name or ID — Lead status chosen from available options or specified by ID (available if 'Body Type' is 'Form').
  • Source Name or ID — Lead source chosen from available options or specified by ID (available if 'Body Type' is 'Form').
  • Owner Name or ID — Lead owner chosen from available options or specified by ID (available if 'Body Type' is 'Form').
  • Tag IDs — List of tags to assign, each chosen from available options or specified by ID (available if 'Body Type' is 'Form').
  • Custom Fields — Custom field values, each selected by field name or ID with corresponding value (available if 'Body Type' is 'Form').
  • Include Empty Fields (Compatibility) — If true, sends empty strings for blank form fields; otherwise, omits them to reduce payload (available if 'Body Type' is 'Form').
  • Additional / Undocumented Fields (JSON) — Additional fields not covered by fixed form fields, given as a raw JSON object string (available if 'Body Type' is 'Form').

Output shape

a single object representing the created lead as returned by the AdHub API

The output contains the lead data as returned by the API after creation. Behavior depends on whether the input was given as form fields or raw JSON. Errors in request will surface as execution errors.

Examples

Example 1: Create lead using form fields

Set 'Body Type' to 'Form'; fill First Name, Last Name, Email etc.; optionally assign Status, Source, Owner, Tags, Custom Fields etc.

Example 2: Create lead using raw JSON

Set 'Body Type' to 'JSON'; provide full lead JSON object in 'Body (JSON)'.

Links

Discussion