Skip to content

Endpoint index

This page lists every MedFlow API endpoint, grouped by resource. All paths are relative to the base URL, every call authenticates with an API key (Authorization: Bearer $MEDFLOW_API_KEY), and the scopes each group needs are shown alongside it.

Jump: Identity · Search · Queries · Diagrams · Triggers · Runs · Webhooks


No scope required.

MethodPathSummary
GET/v1/meVerify the key and return its tenant, workspace, and scopes

Details: Verify a key


Scope: search:read

MethodPathSummary
POST/v1/searchFind patients, pathways, or practitioners
POST/v1/search/countCount matches only

Details: Search


Scopes: queries:read / queries:write

MethodPathScopeSummary
POST/v1/queriesqueries:writeCreate a query
GET/v1/queriesqueries:readList queries
GET/v1/queries/:queryIdqueries:readGet a query
PATCH/v1/queries/:queryIdqueries:writeUpdate a query
DELETE/v1/queries/:queryIdqueries:writeDelete a query

Details: Queries


Scope: diagrams:read

MethodPathSummary
GET/v1/diagramsList diagrams
GET/v1/diagrams/:idGet a diagram

Details: Diagrams


Scopes: triggers:read / triggers:write (management). Firing uses runs:write.

MethodPathScopeSummary
POST/v1/triggers/:triggerIdruns:writeFire a trigger (start a run)
POST/v1/triggerstriggers:writeCreate a trigger
GET/v1/triggerstriggers:readList triggers
GET/v1/triggers/:triggerIdtriggers:readGet a trigger
PATCH/v1/triggers/:triggerIdtriggers:writeUpdate a trigger
DELETE/v1/triggers/:triggerIdtriggers:writeDelete a trigger

Details: Triggers


Scopes: runs:read / runs:write

Runs are created by firing a trigger, not by POSTing to /v1/runs.

MethodPathScopeSummary
GET/v1/runsruns:readList runs (filter by triggerId)
GET/v1/runs/:runIdruns:readGet a run
POST/v1/runs/:runId/startruns:writeStart a queued run (play)
POST/v1/runs/:runId/cancelruns:writeCancel a run
POST/v1/runs/:runId/pauseruns:writePause a run
POST/v1/runs/:runId/resumeruns:writeResume a paused run
GET/v1/triggers/:triggerId/statusruns:readAggregate status for a trigger

Details: Runs


Scopes: webhooks:read / webhooks:write (management). Inbound delivery uses the webhook’s own secret.

MethodPathSummary
GET/v1/webhooksList webhook endpoints
POST/v1/webhooksCreate a webhook endpoint
GET/v1/webhooks/:webhookIdGet a webhook
PATCH/v1/webhooks/:webhookIdUpdate a webhook
DELETE/v1/webhooks/:webhookIdDelete a webhook
POST/v1/webhooks/:webhookIdDeliver data (MedFlow raises events and starts runs)

Details: Webhooks


A read API for metric values is in development. Metrics are configured and viewed in the MedFlow product today.