{
  "info": {
    "name": "Proxycept API",
    "description": "Public API for Proxycept (proxy + mock platform).\n\n**Quick start:** import an environment, open **Auth \u2192 Login**, fill email/password, Send \u2014 your JWT is captured into `{{token}}` automatically and every other request is authenticated. Set `{{baseUrl}}` to your Proxycept URL.\n\n84 endpoints.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://proxycept.com",
      "type": "string"
    },
    {
      "key": "token",
      "value": "",
      "type": "string"
    },
    {
      "key": "internalToken",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Auth",
      "item": [
        {
          "name": "Register",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/auth/register",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "auth",
                "register"
              ]
            },
            "description": "Register a new user (email + password).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"user@example.com\",\n  \"password\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Login",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/auth/login",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "auth",
                "login"
              ]
            },
            "description": "Login with email/password; returns JWT access_token.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"user@example.com\",\n  \"password\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Auto-save the JWT to {{token}} so all requests are authenticated.",
                  "if (pm.response.code === 200) {",
                  "  const data = pm.response.json();",
                  "  if (data.access_token) {",
                  "    pm.collectionVariables.set('token', data.access_token);",
                  "    console.log('Saved token to {{token}}');",
                  "  }",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Verify Email",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/auth/verify-email",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "auth",
                "verify-email"
              ]
            },
            "description": "Confirm an email address from a verification token (called by the SPA verify page).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"token\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Resend Verification",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/auth/resend-verification",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "auth",
                "resend-verification"
              ]
            },
            "description": "Resend the verification email to the logged-in user (no-op if already verified)."
          }
        },
        {
          "name": "Me",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/auth/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "auth",
                "me"
              ]
            },
            "description": "Return the currently authenticated user (requires Bearer token). Includes is_proxy_admin for SPA."
          }
        },
        {
          "name": "Check Workspace Role",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/auth/check-role/:workspace_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "auth",
                "check-role",
                ":workspace_id"
              ],
              "query": [
                {
                  "key": "min_role",
                  "value": "",
                  "disabled": true,
                  "description": "Minimum role required"
                }
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Require current user to have at least min_role in workspace (for RBAC tests). Returns 403 if insufficient."
          }
        }
      ],
      "description": "6 endpoints"
    },
    {
      "name": "Workspaces",
      "item": [
        {
          "name": "List Workspaces",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces"
              ]
            },
            "description": "List workspaces the current user is a member of.\n\nProxy Admin is a deployment-wide capability: return all workspaces."
          }
        },
        {
          "name": "Create Workspace",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces"
              ]
            },
            "description": "Create a workspace and add the current user as admin.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get Workspace",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Get a workspace by id (requires membership)."
          }
        },
        {
          "name": "Update Workspace",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Update a workspace (e.g. name). Requires editor.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete Workspace",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delete a workspace. Stops all profile workers, clears intercept held flows, then deletes the workspace (cascade removes profiles, sessions, flows, members). Admin only."
          }
        },
        {
          "name": "List Profiles",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/profiles",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "profiles"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List profiles in a workspace (requires membership)."
          }
        },
        {
          "name": "Create Profile",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/profiles",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "profiles"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Create a profile (requires editor). Port unique globally; auto-assigned when edge mode.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"port\": 0,\n  \"mode\": \"passthrough\",\n  \"upstream_base_url\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List Profile Mock Routes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/profiles/:profile_id/mock-routes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "profiles",
                ":profile_id",
                "mock-routes"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List mock routes for this profile's mock server (Task 20). Requires workspace viewer."
          }
        },
        {
          "name": "Create Profile Mock Route",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/profiles/:profile_id/mock-routes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "profiles",
                ":profile_id",
                "mock-routes"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Add a manual mock route to this profile's mock server (Task 24). Requires editor.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"method\": \"GET\",\n  \"path_pattern\": \"/\",\n  \"response\": {},\n  \"delay_ms\": 0,\n  \"error_status\": 0,\n  \"dribble_chunks\": 0,\n  \"dribble_duration_ms\": 0,\n  \"delay_min_ms\": 0,\n  \"delay_max_ms\": 0,\n  \"delay_percent\": 0,\n  \"error_percent\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Add Openapi Collection To Mock Server",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/profiles/:profile_id/mock-server/collections/openapi/:collection_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "profiles",
                ":profile_id",
                "mock-server",
                "collections",
                "openapi",
                ":collection_id"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "collection_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Copy OpenAPI collection's mock routes to this profile's mock server (Task 21). Requires editor."
          }
        },
        {
          "name": "Upload Postman Collection To Mock Server",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/profiles/:profile_id/mock-server/collections/postman",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "profiles",
                ":profile_id",
                "mock-server",
                "collections",
                "postman"
              ],
              "query": [
                {
                  "key": "name",
                  "value": "",
                  "disabled": true,
                  "description": ""
                }
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Upload a Postman collection and add its mock routes to this profile's mock server (Task 22). Requires editor."
          }
        },
        {
          "name": "Import Session",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/sessions/import",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "sessions",
                "import"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Import a session from JSON (our export format) or HAR 1.2. Creates a new session and flows. Requires workspace editor. Max 500 flows (V2-T11).",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Workspace Permissions Catalog",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/permissions/catalog",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "permissions",
                "catalog"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Stable permission codes for building custom roles (any workspace member)."
          }
        },
        {
          "name": "Workspace Permissions Me",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/permissions/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "permissions",
                "me"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Effective permissions for the current user in this workspace."
          }
        },
        {
          "name": "List Workspace Roles",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/roles",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "roles"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List assignable roles: global system templates plus workspace-only custom roles."
          }
        },
        {
          "name": "Create Workspace Role",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/roles",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "roles"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Create a custom role (requires workspace:roles:manage).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"permissions\": [\n    \"string\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Update Workspace Role",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/roles/:role_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "roles",
                ":role_id"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "role_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Update a custom role's name and/or permissions. System roles cannot be edited.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"permissions\": [\n    \"string\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete Workspace Role",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/roles/:role_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "roles",
                ":role_id"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "role_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delete a custom role if no member uses it."
          }
        },
        {
          "name": "List Workspace Members",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "members"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List members with emails (requires workspace:members:manage)."
          }
        },
        {
          "name": "Add Workspace Member",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "members"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Add an existing user to a workspace and assign a role/template.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"string\",\n  \"workspace_role_id\": 0,\n  \"system_role_template_id\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Update Workspace Member Role",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/members/:user_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "members",
                ":user_id"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "user_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Assign a workspace role to a member.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"workspace_role_id\": 0,\n  \"system_role_template_id\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Upload Openapi",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/openapi/upload",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "openapi",
                "upload"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Upload an OpenAPI spec; parse paths and generate mock_routes. Requires editor."
          }
        },
        {
          "name": "List Openapi Collections",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/openapi",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "openapi"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List OpenAPI collections in the workspace. Requires viewer."
          }
        },
        {
          "name": "List Mock Routes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/mock_routes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "mock_routes"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List mock routes in the workspace. Requires viewer."
          }
        },
        {
          "name": "List Intercept Presets",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/intercept-presets",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "intercept-presets"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List saved intercept presets for a workspace. Requires workspace viewer."
          }
        },
        {
          "name": "Create Intercept Preset",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/workspaces/:workspace_id/intercept-presets",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "workspaces",
                ":workspace_id",
                "intercept-presets"
              ],
              "variable": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Create a saved intercept preset. Requires workspace editor.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"path_prefix\": \"string\",\n  \"host\": \"string\",\n  \"method\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ],
      "description": "26 endpoints"
    },
    {
      "name": "Profiles & Rules",
      "item": [
        {
          "name": "Get Profile",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Get a profile by id (requires workspace membership)."
          }
        },
        {
          "name": "Update Profile",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Update a profile (requires editor). Port must remain unique if changed.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"port\": 0,\n  \"mode\": \"passthrough\",\n  \"upstream_base_url\": \"string\",\n  \"mock_server_enabled\": false,\n  \"mock_server_host\": \"string\",\n  \"mock_server_path_prefix\": \"string\",\n  \"mock_server_fault_enabled\": false,\n  \"mock_server_fault_delay_ms\": 0,\n  \"mock_server_fault_delay_percent\": 0,\n  \"mock_server_fault_error_status\": 0,\n  \"mock_server_fault_error_percent\": 0,\n  \"catch_mode_enabled\": false,\n  \"catch_mode_host\": \"string\",\n  \"catch_mode_path_prefix\": \"string\",\n  \"catch_mode_status\": 0,\n  \"polymorphism_enabled\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete Profile",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delete a profile (requires editor)."
          }
        },
        {
          "name": "List Profile Polymorphism Rules",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/polymorphism-rules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "polymorphism-rules"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List Profile Polymorphism Rules"
          }
        },
        {
          "name": "Create Profile Polymorphism Rule",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/polymorphism-rules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "polymorphism-rules"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Create Profile Polymorphism Rule",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"enabled\": true,\n  \"priority\": 0,\n  \"name\": \"string\",\n  \"host\": \"string\",\n  \"host_match_type\": \"prefix\",\n  \"path_prefix\": \"string\",\n  \"method\": \"string\",\n  \"header_match\": [\n    {\n      \"key\": \"string\",\n      \"value\": \"string\"\n    }\n  ],\n  \"query_match\": [\n    {\n      \"key\": \"string\",\n      \"value\": \"string\"\n    }\n  ],\n  \"body_match\": [\n    {\n      \"key\": \"string\",\n      \"value\": \"string\"\n    }\n  ],\n  \"set_host\": \"string\",\n  \"set_scheme\": \"string\",\n  \"set_method\": \"string\",\n  \"replace_headers\": [\n    {\n      \"key\": \"string\",\n      \"match_value\": \"string\",\n      \"value\": \"string\"\n    }\n  ],\n  \"replace_query\": [\n    {\n      \"key\": \"string\",\n      \"match_value\": \"string\",\n      \"value\": \"string\"\n    }\n  ],\n  \"replace_body\": [\n    {\n      \"key\": \"string\",\n      \"match_value\": \"string\",\n      \"value\": \"string\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Update Profile Polymorphism Rule",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/polymorphism-rules/:rule_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "polymorphism-rules",
                ":rule_id"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "rule_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Update Profile Polymorphism Rule",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"enabled\": false,\n  \"priority\": 0,\n  \"name\": \"string\",\n  \"host\": \"string\",\n  \"host_match_type\": \"string\",\n  \"path_prefix\": \"string\",\n  \"method\": \"string\",\n  \"header_match\": [\n    {\n      \"key\": \"string\",\n      \"value\": null\n    }\n  ],\n  \"query_match\": [\n    {\n      \"key\": \"string\",\n      \"value\": null\n    }\n  ],\n  \"body_match\": [\n    {\n      \"key\": \"string\",\n      \"value\": null\n    }\n  ],\n  \"set_host\": \"string\",\n  \"set_scheme\": \"string\",\n  \"set_method\": \"string\",\n  \"replace_headers\": [\n    {\n      \"key\": \"string\",\n      \"match_value\": null,\n      \"value\": \"string\"\n    }\n  ],\n  \"replace_query\": [\n    {\n      \"key\": \"string\",\n      \"match_value\": null,\n      \"value\": \"string\"\n    }\n  ],\n  \"replace_body\": [\n    {\n      \"key\": \"string\",\n      \"match_value\": null,\n      \"value\": \"string\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete Profile Polymorphism Rule",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/polymorphism-rules/:rule_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "polymorphism-rules",
                ":rule_id"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "rule_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delete Profile Polymorphism Rule"
          }
        },
        {
          "name": "Start Profile",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/start",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "start"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Start the profile's proxy worker. Calls Proxy Manager if PROXY_MANAGER_URL is set."
          }
        },
        {
          "name": "Stop Profile",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/stop",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "stop"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Stop the profile's proxy worker. Calls Proxy Manager if PROXY_MANAGER_URL is set.\nClears intercept patterns and in-memory held flows for this profile so that after\nrestart, new requests are not intercepted unless the user adds rules/patterns again."
          }
        },
        {
          "name": "List Rules",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/rules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "rules"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List rules for a profile, ordered by priority (lower first). Requires workspace viewer."
          }
        },
        {
          "name": "Create Rule",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/rules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "rules"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Create a rule (match/action validated per shared models). Requires editor.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"match\": {\n    \"host\": \"string\",\n    \"path_prefix\": \"string\",\n    \"path_regex\": \"string\",\n    \"method\": \"string\",\n    \"header_contains\": {},\n    \"query_contains\": {}\n  },\n  \"action\": {\n    \"kind\": \"mock_response\",\n    \"status\": 0,\n    \"headers\": {},\n    \"body\": \"string\",\n    \"delay_ms\": 0,\n    \"error_status\": 0,\n    \"dribble_chunks\": 0,\n    \"dribble_duration_ms\": 0,\n    \"delay_min_ms\": 0,\n    \"delay_max_ms\": 0,\n    \"delay_percent\": 0,\n    \"error_percent\": 0\n  },\n  \"priority\": 0,\n  \"enabled\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Update Rule",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/rules/:rule_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "rules",
                ":rule_id"
              ],
              "variable": [
                {
                  "key": "rule_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Update a rule (partial). Requires editor.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"match\": {\n    \"host\": \"string\",\n    \"path_prefix\": \"string\",\n    \"path_regex\": \"string\",\n    \"method\": \"string\",\n    \"header_contains\": {},\n    \"query_contains\": {}\n  },\n  \"action\": {\n    \"kind\": \"mock_response\",\n    \"status\": 0,\n    \"headers\": {},\n    \"body\": null,\n    \"delay_ms\": null,\n    \"error_status\": null,\n    \"dribble_chunks\": null,\n    \"dribble_duration_ms\": null,\n    \"delay_min_ms\": null,\n    \"delay_max_ms\": null,\n    \"delay_percent\": null,\n    \"error_percent\": null\n  },\n  \"priority\": 0,\n  \"enabled\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete Rule",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/rules/:rule_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "rules",
                ":rule_id"
              ],
              "variable": [
                {
                  "key": "rule_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delete a rule. Requires editor."
          }
        },
        {
          "name": "List Intercept Patterns",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/intercept_patterns",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "intercept_patterns"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List intercept path prefixes for a profile. Requires workspace viewer."
          }
        },
        {
          "name": "Add Intercept Pattern",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/intercept_patterns",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "intercept_patterns"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Add an intercept pattern (e.g. from 'Intercept this URL' in Sessions). Requires editor.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"path_prefix\": \"string\",\n  \"host\": \"string\",\n  \"method\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete Intercept Pattern",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/intercept_patterns/:pattern_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "intercept_patterns",
                ":pattern_id"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "pattern_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Remove an intercept pattern. Requires editor."
          }
        },
        {
          "name": "List Held Flows",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/:profile_id/held_flows",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                ":profile_id",
                "held_flows"
              ],
              "variable": [
                {
                  "key": "profile_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List currently held flows for a profile (for Sessions UI). Requires workspace viewer."
          }
        }
      ],
      "description": "17 endpoints"
    },
    {
      "name": "Sessions & Flows",
      "item": [
        {
          "name": "Get Shared Session",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/shared/:token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                "shared",
                ":token"
              ],
              "variable": [
                {
                  "key": "token",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Resolve a share token and return session + flows (read-only). No auth required. 404 if invalid or expired."
          }
        },
        {
          "name": "List Sessions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions"
              ],
              "query": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "disabled": true,
                  "description": ""
                },
                {
                  "key": "profile_id",
                  "value": "",
                  "disabled": true,
                  "description": ""
                }
              ]
            },
            "description": "List sessions. Filter by workspace_id and/or profile_id. Requires workspace viewer."
          }
        },
        {
          "name": "Get Active Session",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/active",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                "active"
              ],
              "query": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "disabled": true,
                  "description": ""
                },
                {
                  "key": "profile_id",
                  "value": "",
                  "disabled": true,
                  "description": ""
                }
              ]
            },
            "description": "Resolve active session: current open session first, otherwise latest session."
          }
        },
        {
          "name": "Get Session",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Get one session. Requires workspace viewer."
          }
        },
        {
          "name": "Delete Session",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delete a session and its flows. Requires workspace editor."
          }
        },
        {
          "name": "Create Share Link",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/share",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "share"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Create a shareable read-only link for the session (V2-T4). Requires workspace viewer. Max 10 tokens per session.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"expires_in_seconds\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List Flows",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/flows",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "flows"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "List flows for a session. Requires workspace viewer."
          }
        },
        {
          "name": "Get Morphed Flow",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/flows/:flow_id/morphed_flow",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "flows",
                ":flow_id",
                "morphed_flow"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Return the polymorphism morphed child flow for a given root flow (404 if missing)."
          }
        },
        {
          "name": "Export Flow Curl",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/flows/:flow_id/curl",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "flows",
                ":flow_id",
                "curl"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Export the stored flow request as a curl command."
          }
        },
        {
          "name": "Get Shared Morphed Flow",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/shared/:token/flows/:flow_id/morphed_flow",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                "shared",
                ":token",
                "flows",
                ":flow_id",
                "morphed_flow"
              ],
              "variable": [
                {
                  "key": "token",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Shared (read-only): return the polymorphism morphed child flow for the given root flow."
          }
        },
        {
          "name": "Export Shared Flow Curl",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/shared/:token/flows/:flow_id/curl",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                "shared",
                ":token",
                "flows",
                ":flow_id",
                "curl"
              ],
              "variable": [
                {
                  "key": "token",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Shared (read-only): export the stored flow request as a curl command."
          }
        },
        {
          "name": "Flows Stream",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/flows/stream",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "flows",
                "stream"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "V2-T5: SSE stream of new flows for a session. Requires workspace viewer. Connection limit per session (see user-manual)."
          }
        },
        {
          "name": "Export Session",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/export",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "export"
              ],
              "query": [
                {
                  "key": "format",
                  "value": "",
                  "disabled": true,
                  "description": "Export format: json or har"
                }
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Export session and flows as JSON or HAR (V2-T1). Requires workspace viewer. Max flows: 500."
          }
        },
        {
          "name": "Get Session Trace",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/trace",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "trace"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Return recent trace entries for this session's profile (for intercept debugging)."
          }
        },
        {
          "name": "Get Flow",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/flows/:flow_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "flows",
                ":flow_id"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Get one flow with full request/response detail. Requires workspace viewer."
          }
        },
        {
          "name": "Delete Flow",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/flows/:flow_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "flows",
                ":flow_id"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delete a single flow. Requires workspace editor."
          }
        },
        {
          "name": "Replay Flow",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/sessions/:session_id/flows/:flow_id/replay",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "sessions",
                ":session_id",
                "flows",
                ":flow_id",
                "replay"
              ],
              "variable": [
                {
                  "key": "session_id",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Trigger replay of a flow through the session's proxy. Returns 202 when replay is started."
          }
        },
        {
          "name": "Get Held Flow",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/held_flows/:flow_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "held_flows",
                ":flow_id"
              ],
              "variable": [
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Get one held flow for editing. Requires workspace viewer for the flow's profile."
          }
        },
        {
          "name": "Submit Held Request",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/held_flows/:flow_id/request",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "held_flows",
                ":flow_id",
                "request"
              ],
              "variable": [
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Submit edited request to release the hold (user clicked 'Send request'). Requires editor.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"method\": \"string\",\n  \"host\": \"string\",\n  \"path\": \"string\",\n  \"headers\": {},\n  \"body\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Submit Held Response",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/held_flows/:flow_id/response",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "held_flows",
                ":flow_id",
                "response"
              ],
              "variable": [
                {
                  "key": "flow_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Submit edited response to release the hold (user clicked 'Send response'). Requires editor.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": 0,\n  \"headers\": {},\n  \"body\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ],
      "description": "20 endpoints"
    },
    {
      "name": "Intercepts",
      "item": [
        {
          "name": "Update Intercept Preset",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/intercept-presets/:preset_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "intercept-presets",
                ":preset_id"
              ],
              "variable": [
                {
                  "key": "preset_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Update a saved intercept preset. Requires workspace editor.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"path_prefix\": \"string\",\n  \"host\": \"string\",\n  \"method\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete Intercept Preset",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/intercept-presets/:preset_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "intercept-presets",
                ":preset_id"
              ],
              "variable": [
                {
                  "key": "preset_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delete a saved intercept preset. Requires workspace editor."
          }
        }
      ],
      "description": "2 endpoints"
    },
    {
      "name": "Mock Server",
      "item": [
        {
          "name": "Update Mock Route",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/mock-routes/:mock_route_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "mock-routes",
                ":mock_route_id"
              ],
              "variable": [
                {
                  "key": "mock_route_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Update a mock route (Task 21/24). Requires editor in the route's profile workspace.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"method\": \"string\",\n  \"path_pattern\": \"string\",\n  \"response\": {},\n  \"enabled\": false,\n  \"delay_ms\": 0,\n  \"error_status\": 0,\n  \"dribble_chunks\": 0,\n  \"dribble_duration_ms\": 0,\n  \"delay_min_ms\": 0,\n  \"delay_max_ms\": 0,\n  \"delay_percent\": 0,\n  \"error_percent\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete Mock Route",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/mock-routes/:mock_route_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "mock-routes",
                ":mock_route_id"
              ],
              "variable": [
                {
                  "key": "mock_route_id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delete a mock route (Task 21). Requires editor in the route's profile workspace."
          }
        }
      ],
      "description": "2 endpoints"
    },
    {
      "name": "Certificate Authority",
      "item": [
        {
          "name": "Create Ca Install Token",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ca/install-token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ca",
                "install-token"
              ]
            },
            "description": "Issue a one-time token for mobile Safari to open /ca/certificate without Bearer auth."
          }
        },
        {
          "name": "Download Ca Certificate",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ca/certificate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ca",
                "certificate"
              ],
              "query": [
                {
                  "key": "format",
                  "value": "",
                  "disabled": true,
                  "description": "pem: desktop download; cer: DER for Android; mobileconfig: iOS profile install"
                },
                {
                  "key": "install_token",
                  "value": "",
                  "disabled": true,
                  "description": ""
                }
              ]
            },
            "description": "Return the deployment CA certificate. Generates on first use."
          }
        }
      ],
      "description": "2 endpoints"
    },
    {
      "name": "Analytics",
      "item": [
        {
          "name": "Flow Analytics",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/analytics/flows",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "analytics",
                "flows"
              ],
              "query": [
                {
                  "key": "from_date",
                  "value": "",
                  "disabled": true,
                  "description": "ISO date (inclusive)"
                },
                {
                  "key": "to_date",
                  "value": "",
                  "disabled": true,
                  "description": "ISO date (inclusive)"
                },
                {
                  "key": "workspace_id",
                  "value": "",
                  "disabled": true,
                  "description": "Scope to a workspace"
                },
                {
                  "key": "profile_id",
                  "value": "",
                  "disabled": true,
                  "description": "Scope to a profile (within the workspace)"
                }
              ]
            },
            "description": "Flow counts by date / status class / method (max range 365 days)."
          }
        }
      ],
      "description": "1 endpoints"
    },
    {
      "name": "Account & Billing",
      "item": [
        {
          "name": "Get Account Info",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/account",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "account"
              ]
            },
            "description": "The current user's account: tier, entitlements, and live usage vs limits."
          }
        },
        {
          "name": "Create Checkout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/billing/checkout",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "billing",
                "checkout"
              ]
            },
            "description": "Create a Stripe Checkout session to upgrade to a paid tier; returns its URL.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"tier\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Create Portal",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/billing/portal",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "billing",
                "portal"
              ]
            },
            "description": "Create a Stripe customer-portal session so the user can manage/cancel; returns its URL."
          }
        },
        {
          "name": "Stripe Webhook",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/billing/webhook",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "billing",
                "webhook"
              ]
            },
            "description": "Receive Stripe events and apply them to the account's tier/subscription."
          }
        }
      ],
      "description": "4 endpoints"
    },
    {
      "name": "Audit",
      "item": [
        {
          "name": "List Audit Log",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/audit-log",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "audit-log"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true,
                  "description": ""
                },
                {
                  "key": "from_date",
                  "value": "",
                  "disabled": true,
                  "description": "ISO date or datetime (inclusive)"
                },
                {
                  "key": "to_date",
                  "value": "",
                  "disabled": true,
                  "description": "ISO date or datetime (inclusive)"
                },
                {
                  "key": "action",
                  "value": "",
                  "disabled": true,
                  "description": "Filter by action (exact match)"
                },
                {
                  "key": "workspace_id",
                  "value": "",
                  "disabled": true,
                  "description": "Optional workspace_id (workspace-scoped mode)"
                }
              ]
            },
            "description": "Return recent audit log entries (JSON). Any authenticated user."
          }
        },
        {
          "name": "Audit Log Stats",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/audit-log/stats",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "audit-log",
                "stats"
              ],
              "query": [
                {
                  "key": "from_date",
                  "value": "",
                  "disabled": true,
                  "description": "ISO date (inclusive)"
                },
                {
                  "key": "to_date",
                  "value": "",
                  "disabled": true,
                  "description": "ISO date (inclusive)"
                },
                {
                  "key": "workspace_id",
                  "value": "",
                  "disabled": true,
                  "description": "Optional workspace_id (workspace-scoped mode)"
                }
              ]
            },
            "description": "Return audit event counts by date and by action for the given range (max 365 days)."
          }
        }
      ],
      "description": "2 endpoints"
    },
    {
      "name": "System",
      "item": [
        {
          "name": "List System Intercept Presets",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/system/intercept-presets",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "system",
                "intercept-presets"
              ],
              "query": [
                {
                  "key": "workspace_id",
                  "value": "",
                  "disabled": true,
                  "description": ""
                }
              ]
            },
            "description": "List intercept presets across all workspaces (system permission)."
          }
        },
        {
          "name": "Health",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "health"
              ]
            },
            "description": "Health"
          }
        }
      ],
      "description": "2 endpoints"
    }
  ]
}
