Analyze a document and return transaction suggestions
POST
/import/analyze
const url = 'http://localhost:8000/api/v1/import/analyze';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"file":"binary","document_type":"bank_statement"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/v1/import/analyze \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "file": "binary", "document_type": "bank_statement" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
file
string format: binary
document_type
string
Responses
Section titled “ Responses ”Suggestions returned
Validation error
Server error