Retrieve the list of jobs currently being executed by the API
February 17, 2025
Riffussion API has been decommissioned. Currently we do not have plans to re-release it and recommend switching to Mureka API for music generation.
Table of contents
This endpoint retrieves the list of jobs currently being executed by the API.
https://api.useapi.net/v1/riffusion/scheduler
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
API token
is required, see Setup useapi.net for details.
Responses
-
[ { "job_id": "<uuid>", "user_id": "<uuid>", "started": "2025-02-12T01:55:16.128Z", "elapsed": "03:57", "replyUrl": "<optional callback URL>", "replyRef": "<optional reference>" }, { "job_id": "<uuid>", "user_id": "<uuid>", "started": "2025-02-12T01:57:11.228Z", "elapsed": "00:35", "replyUrl": "<optional callback URL>", "replyRef": "<optional reference>" } ]
-
{ "error": "Unauthorized", "code": 401 }
Model
{ // TypeScript, all fields are optional
job_id: string
user_id: string
started: number
elapsed: string
replyUrl: string
replyRef: string
}[]
Examples
-
curl "https://api.useapi.net/v1/riffusion/scheduler" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const apiUrl = `https://api.useapi.net/v1/riffusion/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/riffusion/scheduler" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())