Actions56
- Lead Actions
- Lead Activity Actions
- Lead Custom Field Actions
- Lead Note Actions
- Lead Segment Actions
- Lead Source Actions
- Lead Status Actions
- Lead Tag Actions
- Task Actions
Task → Create
AI-generatedSummary
Create a new task in AdHub associated with a specified lead by submitting task details either as individual form fields or as a raw JSON object.
Inputs
- Body Type — Choose between submitting the task details as form fields or as a JSON string.
- Lead ID (required) — The identifier of the lead to which the task will be linked. Required when using form body type.
- Title (required) — The title of the task, defining its subject or purpose. Required when using form body type.
- Type (required) — The category of the task, such as call, email, meeting, sms, etc. Required when using form body type.
- Due Date — The due date for the task in YYYY-MM-DD format.
- Due Time — The due time for the task in HH:mm format.
- Notes — Additional notes or comments about the task.
- Body (JSON) — Raw JSON string representing the entire task object; used when Body Type is set to JSON.
Output shape
a JSON object representing the newly created task returned from the AdHub API
The task details are returned as a JSON object on successful creation. Either the form fields or the JSON body must be provided based on the selected Body Type. Errors from API requests will follow the AdHub API error format.