Document Analyzer API
5min
1
Begin by calling the File Upload API to upload the document file.
2
This utilizes a WebSocket API with the wss protocol. The following example demonstrates a general method for establishing a WebSocket connection. You may need to adjust the settings to fit your specific development environment
Begin by calling the File Upload API to upload the document file.
File Upload API to upload the document file
POST
Request Params
Body Parameters
fileName
required
String
fileName
fileData
required
String
Base64 encoded file data
1
Connection Setup
To establish a WebSocket connection, use the following code snippet. Make sure to replace the placeholders with your actual values.
2
Request Message Structure (Default Mode)
Use the following JSON structure to send a request in Default mode
3
Request Message Structure (SPD Mode)
Use the following JSON structure to send a request in SPD mode
4
Response Message Structure (Default & SPD Mode)
The response message structure is the same for both Default and SPD modes
Updated 05 Jun 2024
Did this page help you?