Altostrat Studio is here — the AI-native network operations IDE for engineers running production. Terminal, diagrams, runbooks, and Copilot in one workspace. Get started →
curl --request POST \
--url https://v1.api.altostrat.io/workflows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "New Customer Onboarding",
"description": "Sends a welcome email when a new site is created.",
"is_active": true,
"authorization_id": "auth_01H...",
"schedule_type": "manual",
"nodes": [
{
"id": "n1",
"type": "manual_trigger",
"position": {
"x": 100,
"y": 100
},
"data": {
"componentId": "manual_trigger",
"description": "Manually trigger this onboarding flow."
}
},
{
"id": "n2",
"type": "webhook",
"position": {
"x": 400,
"y": 100
},
"data": {
"componentId": "webhook",
"method": "POST",
"url": "https://example.com/api/welcome",
"body": "{\"message\": \"Welcome!\", \"run_id\": \"{{ n1.run_id }}\"}"
}
}
],
"edges": [
{
"id": "e1-2",
"source": "n1",
"target": "n2"
}
]
}
'{
"id": "fl_01h3j4k5l6m7n8p9q0r1s2t3u4",
"name": "Customer Onboarding",
"description": "Sends a welcome email and sets up an account.",
"nodes": [
{
"id": "n1",
"type": "manual_trigger",
"position": {
"x": 150,
"y": 250
},
"data": {
"componentId": "manual_trigger"
}
}
],
"edges": [
{
"id": "e1-2",
"source": "n1",
"target": "n2",
"sourceHandle": "true"
}
],
"schedule_type": "manual",
"schedule_value": "0 9 * * *",
"next_run_at": "2025-11-01T09:00:00.000000Z",
"is_active": true,
"webhook_url": "https://v1.api.altostrat.io/workflows/webhooks/whsec_abc123...",
"created_at": "2025-10-31T12:00:00.000000Z",
"updated_at": "2025-10-31T12:30:00.000000Z"
}Creates a new workflow definition, including its nodes and edges that define the automation graph. A valid workflow must have exactly one trigger node.
curl --request POST \
--url https://v1.api.altostrat.io/workflows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "New Customer Onboarding",
"description": "Sends a welcome email when a new site is created.",
"is_active": true,
"authorization_id": "auth_01H...",
"schedule_type": "manual",
"nodes": [
{
"id": "n1",
"type": "manual_trigger",
"position": {
"x": 100,
"y": 100
},
"data": {
"componentId": "manual_trigger",
"description": "Manually trigger this onboarding flow."
}
},
{
"id": "n2",
"type": "webhook",
"position": {
"x": 400,
"y": 100
},
"data": {
"componentId": "webhook",
"method": "POST",
"url": "https://example.com/api/welcome",
"body": "{\"message\": \"Welcome!\", \"run_id\": \"{{ n1.run_id }}\"}"
}
}
],
"edges": [
{
"id": "e1-2",
"source": "n1",
"target": "n2"
}
]
}
'{
"id": "fl_01h3j4k5l6m7n8p9q0r1s2t3u4",
"name": "Customer Onboarding",
"description": "Sends a welcome email and sets up an account.",
"nodes": [
{
"id": "n1",
"type": "manual_trigger",
"position": {
"x": 150,
"y": 250
},
"data": {
"componentId": "manual_trigger"
}
}
],
"edges": [
{
"id": "e1-2",
"source": "n1",
"target": "n2",
"sourceHandle": "true"
}
],
"schedule_type": "manual",
"schedule_value": "0 9 * * *",
"next_run_at": "2025-11-01T09:00:00.000000Z",
"is_active": true,
"webhook_url": "https://v1.api.altostrat.io/workflows/webhooks/whsec_abc123...",
"created_at": "2025-10-31T12:00:00.000000Z",
"updated_at": "2025-10-31T12:30:00.000000Z"
}Documentation Index
Fetch the complete documentation index at: https://altostrat.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Standard JWT for user sessions obtained via Altostrat authentication.
The name for the new workflow.
"Daily Network Health Check"
The prefixed ID of the Authorization (auth_...) to use for this workflow's executions.
"auth_01H..."
The array of nodes defining the workflow logic.
1Show child attributes
The array of edges connecting the workflow nodes.
Show child attributes
An optional description for the workflow.
Set to false to create the workflow in an inactive state.
manual, interval, cron, daily, weekly, monthly Required if schedule_type is interval or cron.
"0 4 * * *"
The workflow was created successfully.
The unique prefixed identifier for the workflow.
"fl_01h3j4k5l6m7n8p9q0r1s2t3u4"
The human-readable name of the workflow.
"Customer Onboarding"
A detailed description of what the workflow does.
"Sends a welcome email and sets up an account."
An array of node objects that make up the workflow graph. Only returned when retrieving a single workflow.
Show child attributes
An array of edge objects that connect the nodes in the workflow graph. Only returned when retrieving a single workflow.
Show child attributes
The type of schedule that triggers the workflow.
manual, interval, cron, daily, weekly, monthly "manual"
The value for the schedule (e.g., a cron expression or interval string like '5 minutes').
"0 9 * * *"
The next scheduled time for the workflow to run.
"2025-11-01T09:00:00.000000Z"
Indicates whether the workflow is active and can be triggered.
true
The unique, secure URL to trigger this workflow if it uses a webhook trigger.
"https://v1.api.altostrat.io/workflows/webhooks/whsec_abc123..."
The timestamp when the workflow was created.
"2025-10-31T12:00:00.000000Z"
The timestamp when the workflow was last updated.
"2025-10-31T12:30:00.000000Z"
Was this page helpful?