Skip to main content
POST
/
tasks
Initiate Task
curl --request POST \
  --url https://api.curalabs.io/v1/tasks \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "developer_user_id": "user_789",
  "instructions": "Check my latest email subject."
}'
{
  "task_id": "tsk_abc123xyz789",
  "status": "queued"
}

Authorizations

X-API-Key
string
header
required

API Key provided by the platform. Note- X-Timestamp and X-Signature headers are also required for authentication, but not defined as separate schemes here due to OpenAPI limitations on complex signature schemes.

Body

application/json
developer_user_id
string
required

Unique identifier for the end-user in your system whose extension should be targeted.

Example:

"user-unique-id-in-your-system"

instructions
string
required

Natural language instruction for the LLM to execute.

Example:

"Navigate to google.com and search for 'best AI assistants'."

target_url
string

Optional initial URL context for the task.

Example:

"https://google.com"

Response

Accepted. The task was successfully queued.

task_id
string

The unique identifier for the newly created task.

Example:

"tsk_abc123xyz789"

status
enum<string>

Initial status of the task.

Available options:
queued,
processing,
completed,
failed
Example:

"queued"

I