Skip to main content
GET
/
v0.1
/
tasks
Get All Tasks
curl --request GET \
  --url https://api.promptloop.com/v0.1/tasks \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.promptloop.com/v0.1/tasks"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.promptloop.com/v0.1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "status": "success",
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "created_at": "<string>",
      "live_version": 123,
      "max_version": 123,
      "run_count": 123
    }
  ],
  "message": "<string>",
  "error": {
    "code": 123,
    "details": "<string>"
  }
}
{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}
{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}
{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}

Authorizations

x-api-key
string
header
required

Response

Successfully retrieved all tasks

status
enum<string>
required
Available options:
success,
error
Example:

"success"

data
object[]
required
message
string
required
error
object