Skip to main content
POST
/
order
/
raw
/
classify
Classify raw email
curl --request POST \
  --url https://start.aiotic.ai/order/raw/classify \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form file='@example-file'
{
  "category": "purchase_order"
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Required on all endpoints except /healthcheck. Customer and product endpoints also accept a customer-specific API key.

Body

multipart/form-data
file
file
required

Email file in .eml format

Response

Email classified successfully

category
enum<string>
required

The classified category of the email

Available options:
purchase_order,
order_confirmation,
invoice,
delivery_note,
quotation,
receipt,
credit_note,
unknown