Skip to main content

Get job result

GET 

http://localhost:13033/conversion/v1.0/rest/jobs/:jobId/result

This request returns result when it is available and is blocked otherwise. You can also call the getJobInfo API request until the returned job status is completed.

When the job is completed successfully, retrieve the result data with the getJobResultData API request.

Note that when waiting for the job result, request timeouts can occur after 2 minutes. Therefore, it is recommended to handle request timeouts, especially for long-running jobs or for services under high load.

Request

Path Parameters

    jobId stringrequired

    The job ID as returned by createJob.

Responses

Successful response to the getJobResult request

Schema
    statusstringrequired

    Whether the job has been processed successfully.

    Successful jobs typically have dataList, otherwise the property error contains a description of the error.

    Possible values: [success, warning, error]

    error object
    codeerrorCode (string)required

    Possible values: [internal, external, configuration, generic, unsupportedFormat, unsupportedFeature, option, canceled, timeout, password, conformance, corrupt]

    messagestringrequired
    events event[]

    List of processing events.

    Depending on the severity, different actions are recommended:

    • info: Event is of a strictly informational nature and can be ignored. If a verbose processing log is written, such events can be included.
    • warning: This event is a critical conversion warning that should be handled.
    • error: Such an event occurs only in failed jobs and contains error information additional to the job result info's error property.
  • Array [
  • codeeventCode (string)required

    Possible values: [ExternalResourceUnavailable, ContentClipped, ContentOverflow, ContentRasterized, PageRenderer, VisualDifferences, Colorants, LayersRemoved, TransparencyRemoved, MetadataRemoved, CorruptionRepaired, SignatureRemoved, ContentRecovered, FontSubstituted, AnnotationRemoved, MultimediaRemoved, ActionRemoved, StructureRemoved, PartialExtraction, NotLinearized, OcrIncomplete, UnicodesIncomplete, TaggingIncomplete, Event, ChildRemoved]

    severityseverity (string)required

    Possible values: [info, warning, error]

    dataIddataId (string)

    Unique ID of the data.

    This ID is returned by addData and can be used to associate events and messages to specific input data. Therefore it is highly recommended to log the data ID in the client log file.

    dataPartstring

    The part of the data that is affected, e.g. an embedded file or attachment.

    messagestringrequired
  • ]
  • dataList data[]
  • Array [
  • fileNamestringrequired
    sizeintegerrequired
    resultIdresultId (string)required

    Unique ID that can be used to retrieve the result data using getJobResultData.

    properties object[]required
  • Array [
  • namestringrequired

    Name of the property

    valuestringrequired

    Value of the property

  • ]
  • ]
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:13033/conversion/v1.0/rest/jobs/:jobId/result");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
http://localhost:13033/conversion/v1.0/rest
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!

Feedback