Send a GET request toDocumentation Index
Fetch the complete documentation index at: https://docs.thehog.ai/llms.txt
Use this file to discover all available pages before exploring further.
/api/operations/:id to check the status of an asynchronous operation. Any The Hog endpoint that returns 202 Accepted — including POST /api/deep-research and long-form POST /api/generate — provides an operationId and a pollUrl in its response. Use this endpoint to retrieve the current status, track progress, and collect the final result when the job completes.
Request
GET https://api.thehog.ai/api/operations/:id
The operation ID returned in the
operationId field of a 202 Accepted response.Response
The operation ID.
Current status of the operation. One of:
| Value | Meaning |
|---|---|
queued | The job is waiting to be picked up by a worker. |
processing | The job is actively running. |
succeeded | The job completed successfully. result is populated. |
failed | The job encountered an unrecoverable error. error is populated. |
partial_success | The job completed with partial results. |
cancelled | The job was cancelled before completion. |
Completion percentage from
0 to 100. May be null for jobs that do not report incremental progress.The job output. Present when
status is "succeeded". For deep research jobs, this is a structured object conforming to the JSON Schema you provided. For generate jobs, this is the generated content. null while the job is still running.Error details. Present when
status is "failed". null when the job succeeded or is still running.Rate limiting
This endpoint has a dedicated per-organization throttle that is separate from the general API rate limit. Exceeding it returns429 Too Many Requests.
| Job type | Recommended polling interval |
|---|---|
| Generate (long-form) | Every 2–5 seconds |
| Deep research | Every 10–30 seconds |