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
      • POSTPublish a specific flow version
      • GETGet the published version for a flow
      • GETGet 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: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "createdAt": "2024-06-10T09:45:00Z",
3 "flowConfig": {
4 "steps": [
5 {
6 "id": "step-1",
7 "type": "trigger",
8 "config": {
9 "event": "user_signup"
10 }
11 },
12 {
13 "id": "step-2",
14 "type": "action",
15 "config": {
16 "actionType": "send_email",
17 "templateId": "welcome_email_v2"
18 }
19 }
20 ],
21 "metadata": {
22 "author": "jane.doe@runtype.com",
23 "lastModified": "2024-06-09T16:30:00Z"
24 }
25 },
26 "flowId": "flow_1234567890abcdef",
27 "id": "version_9876543210fedcba",
28 "label": "Initial Release",
29 "notes": "Published version with welcome email automation",
30 "versionNumber": 3,
31 "versionType": "published"
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
createdAtstring
flowConfigmap from strings to any or null
flowIdstring
idstring
labelstring or null
notesstring or null
versionNumberinteger
versionTypestring

Errors

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