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

# Workflow API

## POST /workflow/trigger

> Trigger a workflow for a user

```json
{"openapi":"3.0.0","info":{"title":"Integration API","version":"1.0.0"},"servers":[{"url":"https://integration-api.userflux.co"}],"security":[{"ReadWriteOnlyBearerAuth":[]}],"components":{"securitySchemes":{"ReadWriteOnlyBearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Your Integration API Read + Write API Key. Note: You must use the Read + Write API Key, not the Write Only API Key."}}},"paths":{"/workflow/trigger":{"post":{"summary":"Trigger a workflow for a user","description":"","responses":{"204":{"description":"Successful Response"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"triggerId":{"type":"string"},"userId":{"type":"string"},"variables":{"type":"object"}}}}}}}}}}
```
