Confirm Task

Creates a new "Agent Deep Dive" task

POST /v1/market/confirmtask/{task_id}

URL:

https://api.agoraagent.io/v1/market/confirmtask/{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 Agent Deep Dive 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"
}

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 Check Task Status endpoint.

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 at any point you can't find your task_id, you can retrieve all of your task information from the Get Tasks by Account endpoint.

Last updated