Skip to content

The Job Management endpoints let you list, inspect, cancel, and retrieve results for asynchronous cURL jobs. Use these endpoints after submitting a request with mode=async to monitor execution status, fetch completed response bodies, or terminate jobs that are no longer needed.

GET /api/v1/curl/jobs

Retrieve a paginated list of all async jobs, sorted by creation time (newest first). Each entry includes the job ID, status, target URL, and creation timestamp.

Use cases:

  • Monitor status of long-running downloads
  • Track multiple concurrent API requests
  • Audit historical request activity
  • Identify failed requests for retry
NameInTypeRequiredDescription
pagequeryintegerNo1-based page number
limitqueryintegerNoItems per page (current handler returns all items when omitted)
Terminal window
curl -X GET "https://api.hoody.com/api/v1/curl/jobs?page=1&limit=20" \
-H "Authorization: Bearer <token>"

GET /api/v1/curl/jobs/{id}

Retrieve complete details of a specific job, including its request configuration, current status, response data (if completed), and execution metadata. Use this endpoint to check job progress or retrieve results after completion.

Job states:

  • pending — Queued, waiting for execution
  • running — Currently executing
  • completed — Successfully finished, response available
  • failed — Execution failed, error details in response
  • cancelled — User-cancelled before completion
NameInTypeRequiredDescription
idpathstringYesUnique job identifier (UUID format)
Terminal window
curl -X GET "https://api.hoody.com/api/v1/curl/jobs/8b4f1d2a-3c5e-4f7a-9b1d-2e8a4c6d1f3a" \
-H "Authorization: Bearer <token>"

GET /api/v1/curl/jobs/{id}/result

Retrieve only the HTTP response body from a completed job in transparent mode. Returns the raw response with original headers, exactly as received from the target server.

NameInTypeRequiredDescription
idpathstringYesUnique job identifier (UUID format)
Terminal window
curl -X GET "https://api.hoody.com/api/v1/curl/jobs/8b4f1d2a-3c5e-4f7a-9b1d-2e8a4c6d1f3a/result" \
-H "Authorization: Bearer <token>"

DELETE /api/v1/curl/jobs/{id}

Attempt to cancel a job that is currently pending or running. Once cancelled, the job cannot be restarted.

NameInTypeRequiredDescription
idpathstringYesUnique job identifier (UUID format)
Terminal window
curl -X DELETE "https://api.hoody.com/api/v1/curl/jobs/7a3e5c1f-8d9b-4e2a-b6c1-5f7d3a8b9c2e" \
-H "Authorization: Bearer <token>"