Get list of currently executing jobs

Table of contents

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

Important
We will be officially sunsetting v1. Starting from March 1, 2024 all calls will be routed to v2 endpoints. Although this change will be transparent to our customers we strongly advise you to update your code to use the v2 endpoints as they provide many more options.

https://api.useapi.net/v1/jobs

Request Headers
Authorization: Bearer {API token}
Responses
  • [ "<jobid>", "<jobid>", "<jobid>" ]
    
  • 401 Unauthorized

    {
        "error": "Unauthorized",
        "code": 401
    }
    
Examples
  • curl https://api.useapi.net/v1/jobs \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const apiUrl = `https://api.useapi.net/v1/jobs`; 
    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/jobs"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It