Result

GET/v1/operations/{operationId}/result

Get operation result

Get files processed by the Pdftools API. When an operation is initiated, use the operationID to get the results of the operation.

Path parameters

  • Name
    operationId
    Type
    string
    Type
    Required
    Description

    ID of the operation for which you want to get the result.

Request

GET
/v1/operations/{operationId}/result
curl -L -X GET 'https://api.pdf-tools.com/v1/operations/<OPERATION_ID>/result' \
-H 'Accept: application/json' \
-H 'X-Api-Key: <API_KEY_VALUE>'

Response

// Operation done
{
  "operationType": "optimize",
  "operationStatus": "finished",
  "outputFile": {
    "fileId": "63476bad-f62c-46a3-a14e-83dbbfab631b",
    "name": "output.pdf",
    "url": "www.exampleurl/output.pdf"
  }
}

// Validate operation done
{
  "operationType": "validate",
  "operationStatus": "finished",
  "validation": {
    "errors": [],
    "isConforming": true,
    "conformance": "pdf15"
  }
}

// Validate operation unsuccessful
{
  "operationType": "validate",
  "operationStatus": "finished",
  "validation": {
    "errors": [
      "The claimed conformance of the document is PDF 1.5 but must be PDF 1.3."
    ],
    "isConforming": false,
    "conformance": "pdf15"
  }
}

Was this page helpful?