Examples
Examples and workflows for using the Kognitos REST API v2.
1. Check Health
curl -X GET "https://rest-api.app.kognitos.com/v2/health" \
-H "x-api-key: YOUR_API_KEY"{
"status": "OK"
}2. List Processes
curl -X GET "https://rest-api.app.kognitos.com/v2/processes?agent_id=YOUR_AGENT_ID&limit=10" \
-H "x-api-key: YOUR_API_KEY"{
"items": [
{
"id": "b4fznghynbdemslfd5k044fgd",
"name": "Process invoice",
"agent_id": "a7xm2kp9qwj3v5nh8t4c6r1e9z",
"stage": "Published"
}
],
"continuation_token": null
}3. Get a Specific Process
curl -X GET "https://rest-api.app.kognitos.com/v2/processes/YOUR_PROCESS_ID?agent_id=YOUR_AGENT_ID" \
-H "x-api-key: YOUR_API_KEY"{
"agent_id": "a7xm2kp9qwj3v5nh8t4c6r1e9z",
"id": "b4fznghynbdemslfd5k044fgd",
"name": "Process invoice",
"stage": "Draft"
}4. List Runs
curl -X GET "https://rest-api.app.kognitos.com/v2/runs?process_id=YOUR_PROCESS_ID&agent_id=YOUR_AGENT_ID&limit=10" \
-H "x-api-key: YOUR_API_KEY"{
"items": [
{
"id": "9nvx1hdm9bd74rp585oe81t5i",
"name": "Process invoice 42",
"process_id": "b4fznghynbdemslfd5k044fgd",
"agent_id": "a7xm2kp9qwj3v5nh8t4c6r1e9z",
"stage": "Published",
"status": "Succeeded",
"created_at": "2021-01-01T12:00:00",
"file_ids": null,
"outputs": null
}
],
"continuation_token": null
}5. Get a Specific Run
6. Start a New Run
Required Fields
Field
Description
Optional Fields
Field
Description
7. Start a New Run (with File Upload)
Step 1
Step 2
Step 3
Notes
Last updated
Was this helpful?

