List scheduled jobs

May 15, 2025

Table of contents

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

Get a list of currently executing music generation jobs.

https://api.useapi.net/v1/tempolor/scheduler/

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

    The response contains an array of currently executing music generation jobs.

    [
      {
        "job_id": "user:12345-tempolor:user_id-job:abcdef123456789",
        "started": "2025-05-15T12:34:56.789Z",
        "elapsed": "01:23",
        "replyUrl": "https://example.com/callback",
        "replyRef": "my-reference"
      }
    ]
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model
[
  { // TypeScript representation of each job
    job_id: string
    started: string  // ISO timestamp when the job started
    elapsed: string  // Time elapsed since start in MM:SS format
    replyUrl?: string  // Optional callback URL if specified during job creation
    replyRef?: string  // Optional reference if specified during job creation
  }
]
Examples
  • curl "https://api.useapi.net/v1/tempolor/scheduler/" \
      -H "Authorization: Bearer …"
    
  • const token = "API token";
    const apiUrl = "https://api.useapi.net/v1/tempolor/scheduler/";
    
    const response = await fetch(apiUrl, {
      headers: {
        "Authorization": `Bearer ${token}`
      }
    });
    
    const result = await response.json();
    console.log("Current jobs:", result);
    
  • import requests
    
    token = "API token"
    api_url = "https://api.useapi.net/v1/tempolor/scheduler/"
    
    headers = {
        'Authorization': f'Bearer {token}'
    }
    
    response = requests.get(api_url, headers=headers)
    result = response.json()
    print("Current jobs:", result)
    
Try It