The Fous API is served at https://api.fous.com. Its contract is OpenAPI 3.1, version 1.0.0, and this reference is generated from it.
Authentication
Send your organization’s key as Authorization: Bearer $FOUS_API_KEY. Every endpoint needs it except POST /v1/hooks/{token}. Without a valid key, an endpoint answers 401 with unauthorized. Create a key.
Endpoints
Methods
Find your methods, read their contracts, switch versions, delete them.
Runs
Run a method with your own input and get the result.
Builds
Build a method, steer it with messages, and follow it to the end.
Connections
Website logins and API keys that methods run with.
- GET/v1/connectionsList connections
- POST/v1/connectionsConnect an account
- GET/v1/connections/{id}Check a connection
- PATCH/v1/connections/{id}Update a connection
- DELETE/v1/connections/{id}Delete a connection
- POST/v1/connections/{id}/sign-inRun a sign-in
- DELETE/v1/connections/{id}/sign-inCancel the sign-in
- POST/v1/connections/{id}/codeDeliver a verification code or link
Workflows
The schedule, loop, filter and delivery around your methods for websites, written by AI from a sentence: a trigger (by hand, a schedule or a webhook), then steps that run methods, run transforms (JavaScript the AI writes), loop, wait, send email and call webhooks (to reach Slack, Zapier, Make, n8n or an ERP, send to their webhook). A method the workflow needs and your organization lacks becomes a pending step, built when you accept it.
- GET/v1/workflowsList workflows
- POST/v1/workflowsCreate a workflow
- POST/v1/workflows/ai-codeWrite a transform’s code
- GET/v1/workflows/{id}Get a workflow
- PATCH/v1/workflows/{id}Update a workflow
- DELETE/v1/workflows/{id}Delete a workflow
- POST/v1/workflows/{id}/steps/{key}/buildBuild a pending step’s method
- DELETE/v1/workflows/{id}/steps/{key}Remove a step
- GET/v1/workflows/{id}/runsList a workflow’s runs
- POST/v1/workflows/{id}/runsRun a workflow
- GET/v1/workflows/{id}/runs/{run_id}Get a workflow run
- POST/v1/workflows/{id}/runs/{run_id}/cancelCancel a workflow run
- POST/v1/workflows/{id}/webhookRenew a webhook address
- POST/v1/workflows/{id}/signing-secretRenew the signing secret
- POST/v1/hooks/{token}Start a run from a webhook
Errors
Every failure answers an HTTP error status with an error object: branch on error.code. Errors shows the object and the codes of each status; the errors guide says what to do about each code.