v3
latestOpenAPI 3.0.02026-08-081996601.2 MBPipelines
Create pipeline
Creates a new pipeline that continuously ingests data from a source system and sends each record to an agent for processing. Each source record creates a new agent session. A pipeline is distinct from an agent schedule, which is a recurring single execution of an agent. It is also distinct from a connector, which is a bidirectional chat integration like Slack. A pipeline is an automated, one-directional flow of all source data through an agent.
post/v2/pipelines
Headers
Request-Timeoutinteger
The platform makes a best effort to complete the request in the specified seconds, or it times out.
Request-Timeout-Millisinteger
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"key": "sharepoint-legal-ingest",
"name": "SharePoint Legal Docs Ingest",
"source": {
"type": "sharepoint",
"site_url": "https://contoso.sharepoint.com/sites/legal",
"tenant_id": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"client_id": "0a1b2c3d-4e5f-6789-abcd-ef0123456789",
"folder_path": "/Contracts/2026"
},
"trigger": {
"type": "cron",
"expression": "0 */6 * * *"
},
"transform": {
"type": "agent",
"agent_key": "customer_support",
"verification": {
"type": "condition",
"expression": "get('$.output.status') == 'success'"
}
}
}Response
The created pipeline.
Example response
{
"key": "sharepoint-legal-ingest",
"name": "SharePoint Legal Docs Ingest",
"description": "Ingests legal contracts from SharePoint and indexes them into the legal corpus.",
"source": {
"type": "sharepoint",
"site_url": "https://contoso.sharepoint.com/sites/legal",
"tenant_id": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"client_id": "0a1b2c3d-4e5f-6789-abcd-ef0123456789",
"folder_path": "/Contracts/2026"
},
"trigger": {
"type": "cron",
"expression": "0 */6 * * *"
},
"transform": {
"type": "agent",
"agent_key": "customer_support",
"verification": {
"type": "condition",
"expression": "get('$.output.status') == 'success'"
}
},
"watermark": {
"value": "2026-02-19T08:00:00Z"
}
}