Retrieve available capacity

April 18, 2025

Table of contents

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

This endpoint retrieves information about available capacity and currently running API tasks.

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

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

    {
      "executing": [
        {
          "id": 123456789,
          "email": "[email protected]",
          "started": "2025-04-18T12:34:56.789Z",
          "elapsed": "03:45",
          "replyUrl": "https://example.com/webhook",
          "replyRef": "reference-id"
        }
      ],
      "available": [
        {
          "email": "[email protected]",
          "maxJobs": 5,
          "executing": 1,
          "available": 4
        },
        {
          "email": "[email protected]",
          "maxJobs": 3,
          "executing": 0,
          "available": 3
        }
      ]
    }
    
  • 400 Bad Request

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

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model
{ // TypeScript, all fields are optional
  executing: {
    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
  }[]
  available: {
    email: string // Kling account email
    maxJobs: number // Maximum number of concurrent jobs configured
    executing: number // Number of jobs currently executing
    available: number // Number of available job slots
  }[]
}
Examples
  • curl "https://api.useapi.net/v1/kling/scheduler/available" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const apiUrl = "https://api.useapi.net/v1/kling/scheduler/available"; 
    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/available"
    headers = {
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It