QuQi API افتح الكونسول
ESC
افتح الكونسول استخدام QuQi
API
Getting started
The QuQi API Authentication
Your account
GET List your websites POST Issue a narrowed key
Channels
GET List channels GET One channel
Posts
POST Plan a post GET List posts GET One post POST Publish a post
Articles
POST Plan an article GET List written articles GET One written article
The calendar
GET The calendar
Pictures
POST Make a picture GET The picture library GET Check a task
Webhooks
POST Add a webhook GET List webhooks DELETE Remove a webhook
Reading finished work
GET Status GET Keywords GET List articles GET One article POST Connect a site POST Disconnect a site
Getting started
Errors
التوثيق / API / Check a task

Check a task

What became of anything that answered 202.

قراءة 2 دقائق All plans
GET /api/v1/tasks/{id}

One place answers for every request that returns a task_id, rather than a different poll for each kind of work.

STATUSWHAT IT MEANSWHAT TO DO
pending Queued, not started. Check again shortly.
running Being worked on now. Check again shortly.
completed Done. output carries the result. Read output.
failed error says what went wrong, in a sentence. Show the sentence; it is written for a person.
معلومة مفيدة Polling works, but webhooks are better for anything that takes minutes — you get told rather than asking.
CURL
curl "https://console.quqi.io/api/v1/tasks/01a0…?website_id=019feda8-0ca6-70d1-b927-697fa6650cda" \
  -H "Authorization: Bearer quqi_YOUR_KEY"
RESPONSE
{
  "success": true,
  "data": {
    "task": {
      "id": "01a0…",
      "status": "completed",
      "type": "generate",
      "output": {
        "image_url": "https://cdn.quqi.io/images/abc.webp"
      },
      "duration": "14s"
    }
  }
}
هل أجابت هذه الصفحة عن سؤالك؟ نعم ليس تمامًا