Delete a music generation
May 15, 2025 (November 2, 2026)
Table of contents
This endpoint deletes a previously generated music item.
https://api.useapi.net/v1/tempolor/music/
job_id
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Path Parameters
job_idis required. The job returned from a previous POST music/song or POST music/instrumental request.
Responses
-
{ "result": true } -
{ "error": "job_id abc has incorrect format", "code": 400 } -
{ "error": "Unauthorized", "code": 401 } -
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
401when TemPolor rejects the account’s session ticket,404above, or555here. Since November 2, 2026, an account TemPolor signed out answers596(it answered555before): add the account again with POST /accounts. Before November 1, 2026, a failed delete answered200with 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_iduse 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_idreturns 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')}")