Skip to main content

AIDA API input

AIDA allows you to upload a document directly via the API input. Integration is handled with the <integration_key> generated by AIDA.

Send the document with a multipart/form-data POST request, with the file in the file field.

Optionally, you can pass a map of key/values for property values that AIDA will read. Each "key" of the map can either be the property label itself, or the Field name in integrations configured in the property configuration.

AIDA replies with HTTP status 200 when it accepts the document, 400 when the file field is missing and 403 when the integration key is wrong or the input is disabled.

The following examples upload a file with two property values:

@echo off
rem curl.exe is included in Windows 10 (1803+), Windows 11 and Windows Server 2019+

rem Integration key: copy it from the Input page of the document type in AIDA
set "INTEGRATION_KEY=<integration_key>"

curl.exe -sS --fail ^
-F "file=@C:\path\to\your\file.pdf" ^
-F "sampleLabel1=sampleValue1" ^
-F "sampleLabel2=sampleValue2" ^
"https://api.aidacloud.com/api/v1/upload/direct/%INTEGRATION_KEY%"
exit /b %errorlevel%