ValeronDocs

Tasks

Create a task

POST/v1/tasks

Requires the scope tasks:write

A task, optionally on a contact or company and with a due time. Recorded with source api.

#Header parameters

Idempotency-Keystring or null

#Request body

application/json
descriptionstring or null
due_atstring (date-time) or null
owner_idstring or null
record_idstring or null
snoozed_untilstring (date-time) or null
statusstring
Allowed values: "needs_review" "snoozed" "in_progress" "resolved"
Default: "needs_review"
titlestringrequired

#Responses

201Successful Response
Show response fieldsHide response fields
created_atstring (date-time)required
created_byobject or nullrequired
Show child attributesHide child attributes
idstringrequired
namestring or nullrequired
descriptionstring or nullrequired
due_atstring (date-time) or nullrequired
idstringrequired
originobject or nullrequired
What made the task. A task from a call carries the call and the quote it came from; a task from an automation carries the automation, its run and the step.
Show child attributesHide child attributes
at_secondsnumber or null
automation_idstring or null
kindstring or null
Allowed values: "meeting_booked" "meeting_rescheduled" "meeting_cancelled" "callback" "send_email" "send_text" "payment_promised" "payment_plan" "deal_forward" "internal" "contact_homework"
kind_labelstring or null
ownerstring or null
Allowed values: "member" "contact"
quotestring or null
recording_idstring or null
run_idstring or null
stepinteger or null
ownerobjectrequired
Show child attributesHide child attributes
idstringrequired
namestring or nullrequired
recordobject or nullrequired
Show child attributesHide child attributes
idstringrequired
namestring or nullrequired
objectstringrequired
Allowed values: "contacts" "companies"
resolved_atstring (date-time) or nullrequired
snoozed_untilstring (date-time) or nullrequired
sourceobjectrequired
Show child attributesHide child attributes
labelstringrequired
valuestringrequired
statusobjectrequired
Show child attributesHide child attributes
labelstringrequired
valuestringrequired
titlestringrequired
updated_atstring (date-time)required

#Errors

Errors use the standard error shape.

StatusMeaning
400The request is not valid.
401Not signed in, or the credentials are not valid.
402The balance is too low.
403Not allowed to do this.
404Not found.
409Conflicts with the current state.
413The request body is too large.
415The content type is not supported.
422A value in the request is not valid.
429Too many requests. Wait for Retry-After seconds.
500Something went wrong on our side.
502A service Valeron depends on refused the request.
503A service Valeron depends on is unavailable.