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 userIntent to update the task’s intent before the new run starts, and include files attachments to pass additional context. Valid values are "PLAN" (produce a plan), "SWE" (implement directly), "ASK" (Q&A mode), or "DEV_ENVIRONMENT" (dev environment setup).

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.

userIntent
enum<string>

Override task intent before starting the next run.

Available options:
SWE,
PLAN,
ASK,
DEV_ENVIRONMENT
files
object[]

Optional file attachments provided as UI message file parts.

Response

Message accepted

job
object
required