REST API reference

Base URL, headers, pagination, and the main Flowyn endpoints. The OpenAPI document is the complete, machine-readable contract.

Base URL and headers

http
https://api.flowyn.dev

Authorization: Bearer <key>
Content-Type: application/json
Idempotency-Key: <your key>   # on creates

OpenAPI

The OpenAPI 3 document at https://api.flowyn.dev/openapi/v1.yaml is the authoritative description of every request, response, and error. Point your client generator or coding agent at it rather than at this page.

Main endpoints

MethodPathPurpose
POST/v1/filesUpload a file (tus)
GET/v1/files/{id}/downloadDownload a file
POST/v1/pdf/parseParse a PDF
POST/v1/docx/parseParse a DOCX
POST/v1/pdf/from-htmlRender an HTML file to PDF
POST/v1/split-pdfSplit a mixed PDF
POST/v1/pdf/splitSplit a PDF by page ranges
GET/v1/file-jobs/{id}Read a file job and its outputs
POST/v1/jobsCreate a durable HTTP job
GET/v1/jobs/{id}Read a job
GET/v1/jobs/{id}/attemptsRead a job's attempts
POST/v1/jobs/{id}/cancelCancel a job
POST/v1/schedulesCreate a schedule
GET/v1/schedules/{id}/occurrencesRead a schedule's occurrences
POST/v1/eventsSend an event
GET/v1/events/{id}/attemptsRead delivery attempts
POST/v1/events/{id}/replayReplay an event
POST/v1/endpointsCreate a webhook endpoint
POST/v1/endpoints/{id}/testSend a test delivery
POST/v1/monitorsCreate an HTTP, heartbeat, or API-check monitor
POST/v1/monitors/{id}/pingRecord a heartbeat ping
GET/v1/monitors/{id}/resultsRead monitor results
GET/v1/monitors/{id}/incidentsRead monitor incidents
GET/v1/issues/{fingerprint}Read an issue
POST/v1/flagsCreate a flag
POST/v1/flags/evaluateEvaluate a flag
POST/v1/agentsRegister an agent
POST/v1/agent-runsRecord that an agent run started
POST/v1/agent-runs/{id}/finishReport a run's outcome
POST/v1/agent-telemetrySend agent spans
GET/v1/agent-telemetry/{trace_id}Read a trace and its steps
GET/v1/agent-telemetry/usageRead model usage and cost
POST/v1/agent-approvalsAsk a person to decide
GET/v1/agent-approvals/{id}Read an approval decision
POST/v1/provider-connectionsStore an encrypted provider key
POST/v1/provider-connections/{id}/testTest a provider key

Pagination

List endpoints accept limit and cursor. A response includes next_cursor; null means the last page.

Environments

An API key acts in its own environment. A signed-in session selects one with ?environment=test or live.

Next step

Coding agents: OpenAPI, llms.txt, SDK, CLI, MCP.