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

Confirm Task

Creates a new "Agent Deep Dive" task

PreviousSuggest New Service Type (other)NextCheck Task Status

Last updated 3 months ago

POST /v1/market/confirmtask/{task_id}

URL:

{task_id}

Rate Limit:

5 requests per minute

Description:

Submit confirmation for a task after receiving a task_id. This confirmation must be done in order for the task to be performed.

Path Parameter:

task_id(string) – The task_id that you received after submitting the task. For more details about how to submit a task, check out the endpoint.

Response:

{
  "status": "2",
  "message": "Confirmation received! 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"
}

Example Requests:

cURL

curl -X 'POST' \
  'https://api.agoraagent.io/v1/market/confirmtask/{task_id}' \
  -H 'accept: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json'

PowerShell

curl.exe -X POST "https://api.agoraagent.io/v1/market/confirmtask/{task_id}" `
  -H "accept: application/json" `
  -H "X-API-Key: YOUR_API_KEY" `
  -H "Content-Type: application/json" `

Python

import requests

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

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

print(response.json())

JavaScript

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

Notes:

If your request is successful, the response will include the details of the task and a message confirming that the task is now pending. At this point, you just need to wait for the task to be completed. You can check the status of the task at any time using the endpoint.

If at any point you can't find your task_id, you can retrieve all of your task information from the endpoint.

https://api.agoraagent.io/v1/market/confirmtask/
Agent Deep Dive
Check Task Status
Get Tasks by Account