Delete a music generation

May 15, 2025 (November 2, 2026)

Table of contents

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

This endpoint deletes a previously generated music item.

https://api.useapi.net/v1/tempolor/music/job_id

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

    {
      "result": true
    }
    
  • 400 Bad Request

    {
      "error": "job_id abc has incorrect format",
      "code": 400
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
  • 404 Not Found

    TemPolor does not have this music item, for example because it was already deleted.

    {
      "error": "<TemPolor error message> (<TemPolor code>)"
    }
    
  • 555 TemPolor Error

    TemPolor refused or failed the delete with an error that has no matching HTTP status. Since November 1, 2026, every failed delete returns TemPolor’s own status and its error text, for example 401 when TemPolor rejects the account’s session ticket, 404 above, or 555 here. Since November 2, 2026, an account TemPolor signed out answers 596 (it answered 555 before): add the account again with POST /accounts. Before November 1, 2026, a failed delete answered 200 with an empty {}.

    {
      "error": "<TemPolor error message> (<TemPolor code>)"
    }
    
  • 596 Account signed out

    TemPolor signed the account out, so its session ticket no longer works. The API stops using the account until you add it again with fresh credentials at POST accounts, see Setup TemPolor. Requests without user_id use your other accounts in the meantime.

    {
      "error": "TemPolor signed out account 101441809 (You are currently logged out (400006)). Add it again with POST /v1/tempolor/accounts using fresh credentials, see https://useapi.net/docs/start-here/setup-tempolor",
      "code": 596
    }
    

    If every account you have is in this state, a request without user_id returns 596 as well.

Model
{   // TypeScript, all fields are optional
    result: boolean
    error: string
    code: number
}
Examples
  • curl -X DELETE -H "Authorization: Bearer …" \
         https://api.useapi.net/v1/tempolor/music/user:12345-tempolor:user_id-job:abcdef123456789
    
  • const job_id = "user:12345-tempolor:user_id-job:abcdef123456789";
    const token = "API token";
    const apiUrl = `https://api.useapi.net/v1/tempolor/music/${job_id}`;
    
    const response = await fetch(apiUrl, {
      method: "DELETE",
      headers: {
        "Authorization": `Bearer ${token}`
      }
    });
    const result = await response.json();
    console.log("Delete result:", result.result);
    
  • import requests
    
    job_id = "user:12345-tempolor:user_id-job:abcdef123456789"
    token = "API token"
    apiUrl = f"https://api.useapi.net/v1/tempolor/music/{job_id}"
    headers = {
        "Authorization": f"Bearer {token}"
    }
    
    response = requests.delete(apiUrl, headers=headers)
    result = response.json()
    print(f"Delete result: {result.get('result')}")
    
Try It