POST /<company>/api/invocations
GET /<company>/api/invocations/<id>
PUT /<company>/api/invocations/<id>/review
Use `POST` to start execution, `GET` for polling, and `PUT` for result review when your flow requires it.
If MCP is the access surface for AI clients, the API is the integration surface for your systems, portals, and workflows. Trigger agents, pass structured context, and retrieve results from your own flows.
One contract for execution, status polling, and result review from corporate systems.
POST /<company>/api/invocations
GET /<company>/api/invocations/<id>
PUT /<company>/api/invocations/<id>/review
Use `POST` to start execution, `GET` for polling, and `PUT` for result review when your flow requires it.
{
"agent_name": "sales_2025",
"user_identifier": "analyst@acme.com",
"delivery_mode": "async",
"client_data": { ... },
"files": [ ... ]
}
The API accepts `agent_name`, `user_identifier`, `client_data`, attachments, and execution options in the same request.
curl -X POST "https://app.iatoolkit.com/acme/api/invocations" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"agent_name": "commercial_analyst",
"user_identifier": "maria@acme.com",
"delivery_mode": "async",
"client_data": {
"company_id": "acme_iberia",
"account_id": "acc_2048",
"workflow": "daily_commercial_pipeline",
"requested_report": "opportunity_summary",
"filters": {
"stage": ["proposal", "negotiation"],
"owner_region": "spain"
}
}
}'
Your system invokes an IAToolkit-managed agent and gets either an immediate result or an `invocation_id` to continue the flow.
The API does more than trigger executions. It also enables queues, asynchronous processing, and operational monitoring for agents that work outside the interactive request.
A corporate system can start heavier work without waiting for the final answer in the same transaction.
The identifier supports polling, callbacks, review, and traceability for each async execution.
Operations and support teams review status, errors, activity, and results from one unified surface.