POST
/
api
/
end_users
/
{end_user_id_or_heron_id}
/
files
curl --request POST \
  --url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/files \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "file_base64": "<string>",
  "file_class": "<string>",
  "filename": "<string>",
  "reference_id": "<string>"
}'
{
  "bank_statement": null,
  "created": "2023-11-07T05:31:56Z",
  "email": null,
  "file_class": "<string>",
  "filename": "<string>",
  "heron_id": "<string>",
  "iso_application": {
    "heron_id": "iso_6hBjQT9k6KP2rLCXwjUJff",
    "processing_status": "processed"
  },
  "num_pages": 123,
  "page_classes": {},
  "parent_heron_id": "<string>",
  "parsed_results": [],
  "reference_id": "<string>",
  "renamed_filename": "<string>"
}

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

end_user_id_or_heron_id
string
required

Body

application/json
file_base64
string
required

Base64 encoded file bytes

filename
string
required

Name of file

file_class
string | null

The type of file, e.g., bank_statement

reference_id
string | null

Your reference id for file

Response

201 - application/json
OK
bank_statement
object
Example:

null

created
string
email
object
Example:

null

file_class
string
filename
string
heron_id
string
iso_application
object
num_pages
integer
page_classes
object | null
parent_heron_id
string | null
parsed_results
object[]
reference_id
string
renamed_filename
string