Authentication
All /api/v1 routes require a Bearer token. Generate an API key from Settings (keys use the agt_ prefix):
Authorization: Bearer agt_your_api_keyMissing or invalid keys return 401 Unauthorized.
Documentation
All /api/v1 routes require a Bearer token. Generate an API key from Settings (keys use the agt_ prefix):
Authorization: Bearer agt_your_api_keyMissing or invalid keys return 401 Unauthorized.
Credentials are never exposed through this API. Agents must not send credentialId, API keys, or tokens. If present on graph write, credentialId is stripped. On GET /api/v1/workflows/:id, credential ids and secrets are omitted; each node may include data.credentialConfigured (boolean) only.
credentialConfigured only)POST /api/v1/workflows/:id/publish# 1) Catalog
curl -H "Authorization: Bearer agt_..." \
https://agenticsline.com/api/v1/node-types
# 2) Create
curl -X POST -H "Authorization: Bearer agt_..." \
-H "Content-Type: application/json" \
-d '{"name":"Agent built flow"}' \
https://agenticsline.com/api/v1/workflows
# 3) Replace graph (omit credentialId)
curl -X PUT -H "Authorization: Bearer agt_..." \
-H "Content-Type: application/json" \
-d '{"nodes":[...],"edges":[...]}' \
https://agenticsline.com/api/v1/workflows/WORKFLOW_ID
# 4) Read graph (no secrets)
curl -H "Authorization: Bearer agt_..." \
https://agenticsline.com/api/v1/workflows/WORKFLOW_IDError responses are JSON with an error code and a human-readable message.
{
"error": "NOT_FOUND",
"message": "Workflow not found"
}Successful workflow responses return:
{
"id": "string",
"name": "string",
"published": true,
"status": "published" | "draft",
"createdAt": "ISO-8601 timestamp",
"updatedAt": "ISO-8601 timestamp"
}By clicking "Accept", you agree to our use of cookies.
Learn more