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"
}
'import requests
url = "https://api.promptloop.com/v0.1/tasks/create"
payload = { "description": "Find the company description and CEO name from a website" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({description: 'Find the company description and CEO name from a website'})
};
fetch('https://api.promptloop.com/v0.1/tasks/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"task_id": "abc123-def456-...",
"name": "Company Info Extractor",
"message": "Task created successfully"
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}Tasks
Create Task from Description
Creates a new task from a natural language description. AI will generate the task definition based on your description.
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"
}
'import requests
url = "https://api.promptloop.com/v0.1/tasks/create"
payload = { "description": "Find the company description and CEO name from a website" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({description: 'Find the company description and CEO name from a website'})
};
fetch('https://api.promptloop.com/v0.1/tasks/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"task_id": "abc123-def456-...",
"name": "Company Info Extractor",
"message": "Task created successfully"
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}Authorizations
Body
application/json
