Cancel Executing Job
February 23, 2026
Table of contents
Remove a job from the executing tracker and cancel it. If the job is still in created status, it will be marked as failed with the reason “Cancelled by user”.
https://api.useapi.net/v1/dreamina/scheduler/
jobid
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Path Parameters
jobidis required. The job ID to remove from the scheduler.
Responses
-
Job removed from scheduler.
{ "jobid": "j0223140530123456789v-u12345-US:[email protected]:dreamina", "removed": true } -
Invalid API token.
{ "error": "Unauthorized" } -
Job belongs to a different user.
Examples
-
curl -X DELETE \ -H "Authorization: Bearer YOUR_API_TOKEN" \ "https://api.useapi.net/v1/dreamina/scheduler/j0223140530123456789v-u12345-US:[email protected]:dreamina" -
const token = 'YOUR_API_TOKEN'; const jobid = 'j0223140530123456789v-u12345-US:[email protected]:dreamina'; const response = await fetch( `https://api.useapi.net/v1/dreamina/scheduler/${jobid}`, { method: 'DELETE', headers: { 'Authorization': `Bearer ${token}` } } ); const result = await response.json(); console.log('Cancel result:', result); -
import requests token = 'YOUR_API_TOKEN' jobid = 'j0223140530123456789v-u12345-US:[email protected]:dreamina' headers = {'Authorization': f'Bearer {token}'} response = requests.delete( f'https://api.useapi.net/v1/dreamina/scheduler/{jobid}', headers=headers ) print('Cancel result:', response.json())