Retrieve running tasks
April 18, 2025
Table of contents
This endpoint retrieves information about currently running API tasks.
https://api.useapi.net/v1/kling/scheduler
Request Headers
Authorization: Bearer {API token}
API token
is required, see Setup useapi.net for details.
Responses
-
[ { "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" } ]
-
{ "error": "Error ..." }
-
{ "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())