Skip to main content
POST
/
tasks
/
{taskIdOrSlug}
/
messages
Send message
curl --request POST \
  --url https://twill.ai/api/v1/tasks/{taskIdOrSlug}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "Use CSS variables for the theme colors instead of inline styles"
}
'
{
  "job": {
    "id": "<string>",
    "status": "PENDING"
  }
}
Send a follow-up message to a task. You can optionally set mode to "plan" or "code" to update the task’s intent before the new run starts.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

taskIdOrSlug
string
required

Body

application/json
message
string
required

Follow-up message or instructions.

mode
enum<string>

Override task mode.

Available options:
plan,
code

Response

Message accepted

job
object
required