> For the complete documentation index, see [llms.txt](https://docs.laminar.run/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.laminar.run/api-guide/execute-a-workflow.md).

# Execute a Workflow

## Execute Workflow (External)

> Executes a workflow using external API key authentication

```json
{"openapi":"3.0.1","info":{"title":"Laminar API","version":"v1"},"tags":[{"name":"Workflows","description":"Laminar Workflow endpoints, for managing workflows and workflow executions."}],"servers":[{"url":"https://api.laminar.run","description":"Laminar API"}],"security":[{"api-key-query":[]},{"api-key":[]}],"components":{"securitySchemes":{"api-key-query":{"type":"apiKey","description":"API key authentication via query parameter","name":"api_key","in":"query"},"api-key":{"type":"apiKey","description":"API key authentication via header","name":"X-API-KEY","in":"header"}}},"paths":{"/workflow/execute/external/{workflowId}":{"post":{"tags":["external","Workflows"],"summary":"Execute Workflow (External)","description":"Executes a workflow using external API key authentication","operationId":"executeExternalFlow","parameters":[{"name":"workflowId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-API-KEY","in":"header","required":false,"schema":{"type":"string"}},{"name":"api_key","in":"query","required":false,"schema":{"type":"string"}},{"name":"configuration_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"response_type","in":"query","required":false,"schema":{"type":"string","default":"json"}},{"name":"start_from_step","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"end_at_step","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"callback_url","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"*/*":{"schema":{"type":"string"}}}},"responses":{"200":{"description":"Workflow executed successfully","content":{"*/*":{"schema":{"type":"object"}}}},"400":{"description":"Execution failed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```
