Retrieve the list of tasks currently being executed by the API
August 8, 2024
Table of contents
This endpoint retrieves the list of tasks currently being executed by the API. If you want to get all tasks currently being executed including you manually initiated from Runway website use GET /tasks.
Example …/tasks/?statuses=PENDING,RUNNING,THROTTLED&offset=0&limit=50.
https://api.useapi.net/v1/runwayml/scheduler/
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
API token
is required, see Setup useapi.net for details.
Responses
-
[ { "taskId": "user:user_id-runwayml:account_email-task:task_#1_uuid", "replyUrl": "<optional callback URL>", "replyRef": "<optional reference>" }, { "taskId": "user:user_id-runwayml:account_email-task:task_#N_uuid", "replyUrl": "<optional callback URL>", "replyRef": "<optional reference>" } ]
-
{ "error": "Unauthorized", "code": 401 }
Model
{ // TypeScript, all fields are optional
taskId: string
replyUrl: string
replyRef: string
}[]
Examples
-
curl "https://api.useapi.net/v1/runwayml/scheduler/" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const apiUrl = `https://api.useapi.net/v1/runwayml/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 = f"https://api.useapi.net/v1/runwayml/scheduler/" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())