Skip to main content

FlowMaestro API

Programmatically manage workflows, agents, and execute automations.

Base URL

https://api.flowmaestro.ai/v1

Request Format

  • All requests should use JSON for request bodies
  • Set Content-Type: application/json header
  • Authenticate with X-API-Key or Authorization: Bearer header

Response Format

All successful responses follow this structure:

{
"data": {
// Response object
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2024-01-15T10:30:00.000Z"
}
}

Paginated responses include pagination info:

{
"data": [...],
"pagination": {
"page": 1,
"per_page": 20,
"total_count": 150,
"total_pages": 8,
"has_next": true,
"has_prev": false
},
"meta": {
"request_id": "...",
"timestamp": "..."
}
}

Error Response Format

{
"error": {
"code": "resource_not_found",
"message": "Workflow not found",
"details": {}
},
"meta": {
"request_id": "...",
"timestamp": "..."
}
}

Error Codes

CodeHTTP StatusDescription
invalid_api_key401Missing or invalid API key
expired_api_key401API key has expired
revoked_api_key401API key has been revoked
insufficient_scope403Missing required scope
rate_limit_exceeded429Rate limit exceeded
resource_not_found404Resource not found
validation_error400Invalid input data
execution_failed500Execution error
internal_error500Server error
service_unavailable503Service temporarily unavailable

Rate Limiting

Rate limits are configured per API key with both per-minute and per-day limits.

Rate Limit Headers

Every response includes rate limit information:

HeaderDescription
X-RateLimit-LimitRequests allowed per minute
X-RateLimit-RemainingRequests remaining this minute
X-RateLimit-ResetUnix timestamp when limit resets
X-RateLimit-Limit-DayRequests allowed per day
X-RateLimit-Remaining-DayRequests remaining today

When rate limited (429 response), the Retry-After header indicates seconds to wait.

Pagination

List endpoints support pagination with query parameters:

GET /api/v1/workflows?page=1&per_page=20
ParameterDefaultMaxDescription
page1-Page number
per_page20100Items per page

Available Endpoints

ResourceDescription
WorkflowsList, get, and execute workflows
ExecutionsTrack and manage workflow executions
AgentsList agents and manage conversations
ThreadsManage agent conversation threads
TriggersList and execute workflow triggers
Knowledge BasesSearch knowledge bases
WebhooksManage outgoing webhooks