POST
/
parsers
/
{id}
/
parse
Parse document passed as a file in multipart request.
curl --request POST \
  --url https://{FUSION HOST}/api/parsers/{id}/parse \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: multipart/form-data' \
  --form offset=123 \
  --form limit=123
{
  "diagnostics": [
    {
      "cause": "<string>",
      "code": 123,
      "diagnosticId": "<string>",
      "filter": "<string>",
      "parserStageId": "<string>",
      "parserStageType": "<string>",
      "result": true
    }
  ],
  "documents": [
    {
      "id": "<string>",
      "fields": [
        {
          "name": "<string>",
          "value": {},
          "metadata": {},
          "annotations": [
            {
              "type": "<string>",
              "start": 123,
              "end": 123,
              "features": {},
              "label": "<string>",
              "featureCount": 123
            }
          ]
        }
      ],
      "metadata": {},
      "commands": [
        {
          "name": "<string>",
          "params": {}
        }
      ],
      "hints": {}
    }
  ],
  "errors": [
    {
      "context": {},
      "message": "<string>"
    }
  ],
  "parsedStreams": 123,
  "totalDocuments": 123,
  "totalTimeMs": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

Id of the parser to be used.

Body

multipart/form-data

Response

200
application/json

OK

The response is of type object.