Skip to main content
POST
Create a new task

Authorizations

token
string
query
required

Vida API Token

Body

application/json
type
enum<string>
required
Available options:
call,
text,
email,
ping
Example:

"call"

target
string

Phone number, email address, or supported Vida username for the selected Task type

Example:

"+15551234567"

message
string

Initial text message or email body

Example:

"Hello, are you available to talk?"

title
string

Optional Task title

context
string

Context about this contact, included in the normal agent context

Example:

"Existing customer in Texas"

taskContext
string

Operational instructions specific to this Task. Later retries also receive prior-attempt context.

Example:

"Confirm whether the customer wants a renewal quote"

greeting
string

Call greeting. Prefix with prompt: to generate it from the supplied instruction.

Example:

"prompt:Greet the customer by name and mention their renewal"

waitToGreet
boolean

For call Tasks, wait for remote speech before delivering the greeting

Example:

true

accountId
integer

Agent account that performs the Task

Example:

1234

scheduledFor
integer

Unix timestamp for the first attempt

Example:

1712350000

externalTaskId
string

Reusable caller-defined correlation/grouping ID; it is not an idempotency key

contactListName
string

Optional Contact List to enroll the Task contact into

goal
object | null

Task-specific outcome definition. Omit or pass null to inherit the organization default.

retryPolicy
object | null

Task-specific cadence. Omit or pass null to inherit the organization default. Use delaysSeconds or steps, never both. A maximum of 10 retries and a 90-day total horizon are allowed.

meta
object

Metadata stored and returned with the Task for filtering and reporting. Metadata is not added to the agent prompt; use context or taskContext for agent-visible information. Call Tasks may use bridgeAfterAnswer with destination and optional monitor.

Example:

Response

Task created successfully