Retrieve available capacity

June 3, 2025

Table of contents

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

This endpoint retrieves information about available capacity and currently running API jobs.

https://api.useapi.net/v1/ltxstudio/scheduler/available

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

    {
      "executing": [
        {
          "jobId": "email:[email protected]:7a34b821-9fd0-205e-d21b-4abc6f7839e7-type:image",
          "email": "[email protected]",
          "started": "2025-06-03T12: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
        }
      ]
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model
{ // TypeScript, all fields are optional
  executing: {
    jobId: string 
    email: string // Account email
    started: string // ISO timestamp of when the job started
    elapsed: string // Elapsed time in MM:SS format
    replyUrl: string // Webhook URL to notify when the job completes
    replyRef: string // Reference ID for the webhook
  }[]
  available: {
    email: string // LTX Studio 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/ltxstudio/scheduler/available" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const apiUrl = "https://api.useapi.net/v1/ltxstudio/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/ltxstudio/scheduler/available"
    headers = {
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It