Retrieve available capacity
April 18, 2025
Table of contents
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}
API token
is required, see Setup useapi.net for details.
Responses
-
{ "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 } ] }
-
{ "error": "Error ..." }
-
{ "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())