Skip to main content
GET
/
jobs
/
{jobID}
Get Job Result
curl --request GET \
  --url https://api.gonitro.dev/jobs/{jobID} \
  --header 'Authorization: Bearer <token>'
{
  "jobID": "01234567-89ab-cdef-0123-456789abcdef",
  "status": "completed",
  "result": {
    "file": {
      "URL": "<string>",
      "contentType": "application/json",
      "metadata": {
        "fileSizeBytes": 123,
        "pageCount": 123
      }
    }
  }
}
The Job Result endpoint returns the result of an asynchronous Conversion, Transformation, or Extraction job. The possible values of the status field are:
  • completed: The job completed successfully. The response includes the result: one or more file links for Conversion and Transformation jobs, a JSON payload for Extraction jobs, or a binary string.
  • failed: The job failed during processing. The response includes an error field describing the failure.
  • canceled: The job was canceled by the user.
If the job is still running, the endpoint returns a 404 Not Found response, as the result is not yet available.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept
enum<string>
default:*/*

Controls response format and behavior. See endpoint description above for detailed response combinations.

  • application/json: Returns JSON response with operation result
  • application/octet-stream: Returns binary file content
  • */*: Defaults to JSON response
Available options:
application/json,
application/octet-stream,
*/*

Path Parameters

jobID
string
required

The unique identifier of the job.

Response

Job result

jobID
string
Example:

"01234567-89ab-cdef-0123-456789abcdef"

status
enum<string>
Available options:
completed
result

The result is returned as data in the same format as the original request's synchronous response type. Transformations and Conversions return one or more files, while Extractions return a JSON object containing the requested data.