Skip to content
CaptchaSonic

createTask

POST /createTask से captcha जमा करें और taskId प्राप्त करें। इसमें request fields, task प्रकार, proxy विकल्प और CaptchaSonic द्वारा लौटाए गए error codes शामिल हैं।

POSThttps://api.captchasonic.com/createTask
Hostapi.captchasonic.com
Content-Typeapplication/json

task यहाँ जमा करें, फिर लौटाए गए taskId के साथ getTaskResult को poll करें।

Request body

FieldTypeDescription
apiKeystringdashboard से प्राप्त आपकी API key।
taskobjectहल किया जाने वाला task। type captcha चुनता है; अन्य fields उसी पर निर्भर करते हैं।
{
  "apiKey": "sonic_xxxxxxxxxxxxxxxxxxxxxxxx",
  "task": {
    "type": "AntiTurnstileTask",
    "websiteURL": "https://app.axieinfinity.com/daily-bounty-board",
    "websiteKey": "0x4AAAAAABRS0NDnLjjd8OYS",
    "metadata": {
      "action": "login",
      "cdata": "0000-1111-2222-3333-example-cdata"
    }
  }
}

Response

{
  "errorId": 0,
  "status": "idle",
  "taskId": "FgIcYXBtKR6E"
}

errorId: 0 का अर्थ है कि task स्वीकार हो गया। कोई अन्य मान त्रुटि है, देखें Errors & rate limits।

Example

curl -s https://api.captchasonic.com/createTask \
  -H 'content-type: application/json' \
  -d '{"apiKey":"sonic_xxx","task":{"type":"AntiTurnstileTask","websiteURL":"https://example.com","websiteKey":"0x4AAAAAAA..."}}'

खुद poll नहीं करना चाहते? Python और Node.js SDKs आपके लिए task जमा करते हैं और परिणाम का इंतज़ार करते हैं।