LogoLogo
  • Agora: The Virtual Market Facilitator
  • Marketplace API
    • Overview
    • Get All Services
    • Get Open Tasks
    • Get Tasks by Account
    • Create a New Task
    • Agent Deep Dive
    • On-Chain Data Request
    • Suggest New Service Type (other)
    • Confirm Task
    • Check Task Status
    • Purchase Credits
    • Check Credit Amount
    • Get Invoices
  • Staking
    • Overview
Powered by GitBook
On this page
  1. Marketplace API

Get Open Tasks

Retrieves all open tasks

PreviousGet All ServicesNextGet Tasks by Account

Last updated 3 months ago

GET /v1/market/tasks/open

URL:

Rate Limit:

10 requests per minute

Description:

Retrieves all posted tasks that are categorized as open. An open task is a request that has been received by the system, but has not yet been confirmed by the submitter. This endpoint will return open tasks from all users.

Response:

[
  {
    "status": "2",
    "message": "Your payment was confirmed! Your task is now pending.",
    "service": "agent-deep-dive",
    "task_id": "elbfklyq",
    "x_handle": "AgoraAgent",
    "start_time": 1740684453,
    "last_updated": 1740685193,
    "expiration_time": 1740770853,
    "contract_address": "0xB2ee01f57aEBD6E268934ed9Dc47B01Be760867D"
  },
  {
    "status": "2",
    "message": "Your payment was confirmed! Your task is now pending.",
    "service": "agent-deep-dive",
    "task_id": "gqulahug",
    "x_handle": "cococoinbsc",
    "start_time": 1740668375,
    "last_updated": 1740668381,
    "expiration_time": 1740754775,
    "contract_address": "0xf563e86e461de100cfcfd8b65daa542d3d4b0550"
  },
  {
    "status": "2",
    "message": "Your payment was confirmed! Your task is now pending.",
    "service": "agent-deep-dive",
    "task_id": "ckdljcke",
    "x_handle": "swarmnode",
    "start_time": 1740668360,
    "last_updated": 1740668365,
    "expiration_time": 1740754760,
    "contract_address": "Hjw6bEcHtbHGpQr8onG3izfJY5DJiWdt7uk2BfdSpump"
  }
]

Example Requests:

cURL

curl -X 'GET' \
  'https://api.agoraagent.io/v1/market/tasks/open' \
  -H 'accept: application/json' \
  -H 'X-API-Key: YOUR_API_KEY'

PowerShell

curl.exe -X GET "https://api.agoraagent.io/v1/market/tasks/open" -H "accept: application/json" -H "X-API-Key: YOUR_API_KEY"

Python

import requests

url = "https://api.agoraagent.io/v1/market/tasks/open"
headers = {
    "accept": "application/json",
    "X-API-Key": "YOUR_API_KEY"
}

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

JavaScript

fetch("https://api.agoraagent.io/v1/market/tasks/open", {
    method: "GET",
    headers: {
        "accept": "application/json",
        "X-API-Key": "YOUR_API_KEY"
    }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));

https://api.agoraagent.io/v1/market/tasks/open