For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList versions for a flow
      • GETGet the published version for a flow
      • GETGet a specific flow version
      • POSTPublish a specific flow version
Dashboard
LogoLogo
Runtype APIFlow Versions

Get the published version for a flow

GET
/v1/flow-versions/:flowId/published
GET
/v1/flow-versions/:flowId/published
$curl https://api.runtype.com/v1/flow-versions/flowId/published \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "id": "a3f47c2e-9b1d-4f3a-8c2e-5d7b9f1a2c3d",
3 "flowId": "flow_987654321",
4 "versionNumber": 3,
5 "versionType": "published",
6 "flowConfig": {
7 "steps": [
8 {
9 "id": "step1",
10 "type": "trigger",
11 "config": {
12 "event": "user_signup"
13 }
14 },
15 {
16 "id": "step2",
17 "type": "action",
18 "config": {
19 "actionType": "send_email",
20 "templateId": "welcome_email_v2"
21 }
22 }
23 ],
24 "settings": {
25 "retryOnFailure": true,
26 "maxRetries": 3
27 }
28 },
29 "label": "User Signup Welcome Flow",
30 "notes": "This version includes updated email template and retry logic.",
31 "createdAt": "2024-06-10T09:45:00Z"
32}
Was this page helpful?
Previous

Get a specific flow version

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

flowIdstringRequired

Response

Published flow version
idstring
flowIdstring
versionNumberinteger
versionTypestring
flowConfigmap from strings to any or null
labelstring or null
notesstring or null
createdAtstring

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error