Create a task
POST
/v1/tasksRequires 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
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
kind_labelstring or null
ownerstring or null
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
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.
| Status | Meaning |
|---|---|
400 | The request is not valid. |
401 | Not signed in, or the credentials are not valid. |
402 | The balance is too low. |
403 | Not allowed to do this. |
404 | Not found. |
409 | Conflicts with the current state. |
413 | The request body is too large. |
415 | The content type is not supported. |
422 | A value in the request is not valid. |
429 | Too many requests. Wait for Retry-After seconds. |
500 | Something went wrong on our side. |
502 | A service Valeron depends on refused the request. |
503 | A service Valeron depends on is unavailable. |
