88API88API
User GuideAI ApplicationsAPI ReferenceHelp & Support
API Module Guide

Task Center Module

Feature Description

The API prefix is https://88api.ai

Query the asynchronous tasks of the current account (such as video generation tasks), including task status, progress, consumption, and results.

🔐 User Authentication

Get My Tasks

  • Interface Name: Get My Tasks
  • HTTP Method: GET
  • Path: /api/task/self
  • Authentication Required: User
  • Function Description: Paginated retrieval of the current user's task list, supporting filtering by platform, Task ID, status, and other conditions.

💡 Request Example:

const response = await fetch('/api/task/self?p=1&page_size=20&task_id=cgt-20261014093000-x7k2m&status=SUCCESS&action=textGenerate&start_timestamp=1640908800&end_timestamp=1640995200', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer your_user_token',
    'New-Api-User': 'your_user_id'
  }
});
const data = await response.json();

✅ Successful Response Example:

{
  "success": true,
  "message": "",
  "data": {
    "items": [
      {
        "id": 1,
        "created_at": 1640908800,
        "updated_at": 1640909000,
        "task_id": "cgt-20261014093000-x7k2m",
        "platform": "54",
        "user_id": 1,
        "quota": 1000,
        "action": "textGenerate",
        "status": "SUCCESS",
        "fail_reason": "",
        "submit_time": 1640908800,
        "start_time": 1640908900,
        "finish_time": 1640909000,
        "progress": "100%",
        "properties": {},
        "data": {}
      }
    ],
    "total": 25,
    "page": 1,
    "page_size": 20
  }
}

❗ Failure Response Example:

{
  "success": false,
  "message": "Failed to retrieve task list"
}

🧾 Field Description (Request Parameters):

  • p (Number): Page number, default is 1
  • page_size (Number): Items per page, default is 20
  • platform (String): Task platform number, optional; usually not needed
  • task_id (String): Task ID filter, optional
  • status (String): Task status filter, optional values: "NOT_START", "SUBMITTED", "QUEUED", "IN_PROGRESS", "FAILURE", "SUCCESS", "UNKNOWN"
  • action (String): Task type filter, e.g., "textGenerate" (text-to-video), "generate" (image-to-video), etc.
  • start_timestamp (Number): Start timestamp, optional
  • end_timestamp (Number): End timestamp, optional

🧾 Return Field Description:

  • id (Number): Record ID
  • task_id (String): Task ID
  • platform (String): Internal number of the task platform; can be ignored
  • user_id (Number): User ID
  • quota (Number): Quota consumed
  • action (String): Task type
  • status (String): Task status
  • fail_reason (String): Failure reason
  • submit_time (Number): Submission timestamp
  • start_time (Number): Start timestamp
  • finish_time (Number): Completion timestamp
  • progress (String): Progress percentage
  • properties (Object): Task properties
  • data (Object): Task result data
  • total (Number): Total number of matching task records
  • page (Number): Current returned page number
  • page_size (Number): Number of task records displayed per page