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
  • Runtype API
      • GETList flows
      • POSTCreate flow
      • GETGet flow details
      • PUTUpdate flow
      • DELDelete flow
      • GETList flow step results
      • POSTPublish flow
      • POSTRun flow on records of a type
      • GETExport flow for runtime
Dashboard
LogoLogo
Runtype APIFlows

Export flow for runtime

GET
/v1/flows/:id/export-runtime
GET
/v1/flows/:id/export-runtime
$curl https://api.runtype.com/v1/flows/id/export-runtime \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
3 "name": "User Onboarding Flow",
4 "steps": [
5 {
6 "stepId": "verify-email",
7 "type": "emailVerification",
8 "config": {
9 "emailTemplateId": "welcome_01",
10 "timeoutMinutes": 15
11 }
12 },
13 {
14 "stepId": "profile-setup",
15 "type": "form",
16 "config": {
17 "fields": [
18 {
19 "name": "firstName",
20 "type": "text",
21 "required": true
22 },
23 {
24 "name": "lastName",
25 "type": "text",
26 "required": true
27 },
28 {
29 "name": "birthdate",
30 "type": "date",
31 "required": false
32 }
33 ]
34 }
35 },
36 {
37 "stepId": "welcome-message",
38 "type": "notification",
39 "config": {
40 "message": "Welcome to Runtype! Your account has been successfully created."
41 }
42 }
43 ],
44 "description": "This flow handles the user onboarding process including email verification and profile setup."
45}

Export a fully-resolved, self-contained flow definition that the @runtypelabs/runtime package can consume directly at boot. All step configs are inlined; no live DB queries are needed at execution time.

Was this page helpful?
Previous

List tools

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Response

Exported flow definition
idstring
namestring
stepslist of maps from strings to any
descriptionstring or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error