Retrieve running tasks

April 18, 2025

Table of contents

  1. Request Headers
  2. Responses
  3. Model
  4. Examples
  5. Try It

This endpoint retrieves information about currently running API tasks.

https://api.useapi.net/v1/kling/scheduler

Request Headers
Authorization: Bearer {API token}
Responses
  • 200 OK

    [
      {
        "id": 123456789,
        "email": "[email protected]",
        "started": "2025-04-18T12:34:56.789Z",
        "elapsed": "03:45",
        "replyUrl": "https://example.com/webhook",
        "replyRef": "reference-id"
      },
      {
        "id": 987654321,
        "email": "[email protected]",
        "started": "2025-04-18T12:45:67.890Z",
        "elapsed": "02:34",
        "replyUrl": "https://example.com/webhook",
        "replyRef": "reference-id-2"
      }
    ]
    
  • 400 Bad Request

    {
      "error": "Error ..."
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model
{ // TypeScript, all fields are optional
  id: number // Task ID
  email: string // Account email
  started: string // ISO timestamp of when the task started
  elapsed: string // Elapsed time in MM:SS format
  replyUrl: string // Webhook URL to notify when the task completes
  replyRef: string // Reference ID for the webhook
}[]
Examples
  • curl "https://api.useapi.net/v1/kling/scheduler" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const apiUrl = "https://api.useapi.net/v1/kling/scheduler"; 
    const response = await fetch(apiUrl, {
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    apiUrl = "https://api.useapi.net/v1/kling/scheduler"
    headers = {
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It