Skip to main content
POST
/
api
/
agents
/
execute
Execute a FlowSpec
curl --request POST \
  --url http://localhost:3001/api/agents/execute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flowspec": {},
  "context": {
    "tenantId": "<string>",
    "variables": {}
  },
  "executor": "n8n"
}
'
{
  "success": true,
  "result": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Lucid API key (lk_live_... or lk_test_...)

Body

application/json
flowspec
object
required
context
object
required
executor
enum<string>
Available options:
n8n,
langgraph

Response

OK

success
boolean
required
result
object