Skip to main content
POST
/
workflows
/
{workflow_id}
/
accessories
Upload workflow accessory
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/workflows/{workflow_id}/accessories \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "key": "hts_codes",
  "mode": "add"
}
'
{
  "data": {
    "ok": true
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

workflow_id
integer
required

Body

application/json
key
string
required

Accessory logical key (e.g. hts_codes).

file
file

Accessory file (multipart/form-data).

mode
enum<string>

add (default) or replace an existing accessory.

Available options:
add,
replace

Response

200 - application/json

Upload workflow accessory.

data
any