Skip to main content
POST
/
v0.1
/
tasks
/
create
Create Task from Description
curl --request POST \
  --url https://api.promptloop.com/v0.1/tasks/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "description": "Find the company description and CEO name from a website"
}
'
{
  "task_id": "abc123-def456-...",
  "name": "Company Info Extractor",
  "message": "Task created successfully"
}

Authorizations

x-api-key
string
header
required

Body

application/json
description
string
required

Natural language description of what the task should do

Example:

"Find the company description and CEO name from a website"

name
string

Optional name for the task (auto-generated if not provided)

Example:

"Company Info Extractor"

Response

Successfully created task

task_id
string
required

The ID of the created task

Example:

"abc123-def456-..."

name
string
required

The name of the task

Example:

"Company Info Extractor"

message
string
required

Status message

Example:

"Task created successfully"