Documentation · Workflows
Workflow endpoints
GET /api/v1/workflows/:id returns the full graph (credentials stripped). After create, build or update the graph with PUT /api/v1/workflows/:id./api/v1/workflowsList workflows
Returns a paginated list of workflows for the authenticated user. Supports optional search by name.
Query parameters
pagenumberoptionalPage number (default: 1).
pageSizenumberoptionalItems per page (default: 5, min: 1, max: 100).
searchstringoptionalOptional name filter.
Example request
curl -X GET "https://agenticsline.com/api/v1/workflows?page=1&pageSize=10" \
-H "Authorization: Bearer agt_your_api_key"Example response
{
"items": [
{
"id": "clx...",
"name": "My workflow",
"published": false,
"status": "draft",
"createdAt": "2026-07-24T08:00:00.000Z",
"updatedAt": "2026-07-24T08:00:00.000Z"
}
],
"page": 1,
"pageSize": 10,
"totalCount": 1,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false
}/api/v1/workflows201Create workflow
Creates a new draft workflow shell. Replace the graph next with PUT /api/v1/workflows/:id.
Request body
namestringoptionalOptional workflow name.
Example request
curl -X POST "https://agenticsline.com/api/v1/workflows" \
-H "Authorization: Bearer agt_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "name": "Lead enrichment" }'Example response
{
"id": "clx...",
"name": "Lead enrichment",
"published": false,
"status": "draft",
"createdAt": "2026-07-24T08:00:00.000Z",
"updatedAt": "2026-07-24T08:00:00.000Z"
}/api/v1/workflows/:idGet workflow (full graph)
Fetches a workflow with its full node/edge graph. Credentials are never returned — each node may include data.credentialConfigured (boolean) so agents know a credential is attached in the dashboard. credentialId, tokens, and secrets are stripped.
Example request
curl -X GET "https://agenticsline.com/api/v1/workflows/clx..." \
-H "Authorization: Bearer agt_your_api_key"Example response
{
"id": "clx...",
"name": "Lead enrichment",
"published": true,
"status": "published",
"createdAt": "2026-07-24T08:00:00.000Z",
"updatedAt": "2026-07-24T09:00:00.000Z",
"nodes": [
{
"id": "t1",
"type": "MANUAL_TRIGGER",
"position": { "x": 0, "y": 0 },
"data": { "credentialConfigured": false }
},
{
"id": "g1",
"type": "GOOGLE_SHEET",
"position": { "x": 280, "y": 0 },
"data": {
"variableName": "leads",
"spreadsheetId": "1BxiM...",
"sheetName": "Sheet1",
"operation": "GET_ROWS",
"credentialConfigured": true
}
}
],
"edges": [
{
"id": "c1",
"source": "t1",
"target": "g1",
"sourceHandle": "source-1",
"targetHandle": "target-1"
}
]
}/api/v1/workflows/:id/copy201Copy workflow
Duplicates an existing workflow. Optionally rename the copy via the request body.
Request body
namestringoptionalOptional name for the copied workflow.
Example request
curl -X POST "https://agenticsline.com/api/v1/workflows/clx.../copy" \
-H "Authorization: Bearer agt_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "name": "Lead enrichment (copy)" }'Example response
{
"id": "cly...",
"name": "Lead enrichment (copy)",
"published": false,
"status": "draft",
"createdAt": "2026-07-24T10:00:00.000Z",
"updatedAt": "2026-07-24T10:00:00.000Z"
}/api/v1/workflows/:id/publishPublish workflow
Marks a workflow as published so it can be triggered in production.
Example request
curl -X POST "https://agenticsline.com/api/v1/workflows/clx.../publish" \
-H "Authorization: Bearer agt_your_api_key"Example response
{
"id": "clx...",
"name": "Lead enrichment",
"published": true,
"status": "published",
"createdAt": "2026-07-24T08:00:00.000Z",
"updatedAt": "2026-07-24T10:05:00.000Z"
}/api/v1/workflows/:id/unpublishUnpublish workflow
Reverts a workflow to draft status.
Example request
curl -X POST "https://agenticsline.com/api/v1/workflows/clx.../unpublish" \
-H "Authorization: Bearer agt_your_api_key"Example response
{
"id": "clx...",
"name": "Lead enrichment",
"published": false,
"status": "draft",
"createdAt": "2026-07-24T08:00:00.000Z",
"updatedAt": "2026-07-24T10:10:00.000Z"
}By clicking "Accept", you agree to our use of cookies.
Learn more