{
  "info": {
    "description": "Formbricks offers two types of APIs: the **Public Client API** and the **Management API**. Each API serves a different purpose, has different authentication requirements, and provides access to different data and settings.\n\nCheckout the [API Key Setup](https://formbricks.com/docs/api-reference/generate-key) - to access the Management APIs wit an API Key.\n\n> If you have forked the collection & running it, we recommend you to atleast update `apiKey` & `workspaceId` the Collection variables as per your values! We also have a lot of post-run scripts written to help you navigate through auto-assigning variables when running scripts. \n  \n\nNeed more help, visit our: [Website](https://formbricks.com) or join our [Discord](https://formbricks.com/discord)!",
    "title": "API Documentation",
    "version": "1.0.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/v1/client/{workspaceId}/displays": {
      "post": {
        "description": "Create a new display for a valid survey ID. If a userId is passed, the display is linked to the user. If a creativeId is passed, the display records the creative that opened the survey, but only when that creative is in the workspace and opens this survey; otherwise it is ignored. Note - Environments are deprecated. Use Workspace/workspaceId terminology.",
        "parameters": [
          {
            "in": "path",
            "name": "workspaceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "creativeId": "{{creativeId}} (optional)",
                  "surveyId": "{{surveyId}}",
                  "userId": "{{userId}} (optional)"
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "id": "clvc1z8200006494jgnds7ort"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:16:55 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_server_error",
                  "details": {},
                  "message": "\nInvalid `prisma.display.create()` invocation:\n\n\nAn operation failed because it depends on one or more records that were required but not found. No 'Survey' record(s) (needed to inline the relation on 'Display' record(s)) was found for a nested connect on one-to-many relation 'DisplayToSurvey'."
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "example": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version",
                  "type": "string"
                }
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "example": "GET,OPTIONS,PATCH,DELETE,POST,PUT",
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:12:51 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Create Display",
        "tags": ["Client API - Display"]
      }
    },
    "/api/v1/client/{workspaceId}/environment": {
      "get": {
        "description": "Retrieves the workspace state to be used in Formbricks SDKs. Note - Environments are deprecated. Use Workspace/workspaceId terminology. **Cache Behavior**: This endpoint uses server-side caching with a **5-minute TTL (Time To Live)**. Any changes to surveys, action classes, workspace settings, or other workspace data will take up to 5 minutes to reflect in the API response. This caching is implemented to improve performance for high-frequency SDK requests.",
        "parameters": [
          {
            "description": "The ID of the workspace",
            "in": "path",
            "name": "workspaceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "actionClasses": {
                          "example": [
                            {
                              "id": "cm6orqtdd000b19wjec82bpp2",
                              "key": null,
                              "name": "New Session",
                              "noCodeConfig": null,
                              "type": "automatic"
                            },
                            {
                              "id": "cm6oryki3000i19wj860utcnn",
                              "key": "code",
                              "name": "code action",
                              "noCodeConfig": null,
                              "type": "code"
                            }
                          ],
                          "items": {
                            "properties": {
                              "id": {
                                "example": "cm6orqtdd000b19wjec82bpp2",
                                "type": "string"
                              },
                              "key": {
                                "example": null,
                                "nullable": true,
                                "type": "string"
                              },
                              "name": {
                                "example": "New Session",
                                "type": "string"
                              },
                              "noCodeConfig": {
                                "example": null,
                                "nullable": true,
                                "type": "object"
                              },
                              "type": {
                                "example": "automatic",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "creatives": {
                          "description": "The creatives (feedback buttons and banners) the web SDK shows. Present only when the workspace has at least one deliverable creative: published and not paused, closed or archived, not past its end time, and opening an active survey if it opens one. The envelope next to `expiresAt` also carries `serverTime`, when the server built the response, which the SDK uses to run creative schedules on the server's clock. Source of truth for the item shape: `TCreativePayload` in `packages/creatives/src/types.ts`.",
                          "items": {
                            "properties": {
                              "autoSelectLanguage": {
                                "description": "Whether the browser's languages pick the language when the site set none with `setLanguage`: the Destination survey's \"Use browser language\" setting; false when it opens no survey.",
                                "type": "boolean"
                              },
                              "conditions": {
                                "description": "Show when conditions, shared with surveys; null always passes.",
                                "nullable": true,
                                "type": "object"
                              },
                              "content": {
                                "description": "As in API v3: a feedback button's `label` and `icon`, or a banner's `message`, `button`, `dismissible` and `accessibleName`. Texts are keyed by locale code.",
                                "type": "object"
                              },
                              "defaultLanguage": {
                                "description": "The locale code the texts fall back to.",
                                "example": "en-US",
                                "type": "string"
                              },
                              "destination": {
                                "description": "What pressing it opens: `{ type: survey, surveyId, opensAs: popup }` (an app survey in `surveys`, sent with `triggers: []` when only creatives open it), `{ type: survey, surveyId, opensAs: newTab, url }` (a link survey, opened with `lang=` set to the language the site set, if any) or `{ type: link, url }`. Null for a banner without a button. A creative whose popup survey the visitor's language would skip is not shown.",
                                "nullable": true,
                                "type": "object"
                              },
                              "displayPercentage": {
                                "description": "Share of visitors in percent; null shows it to everyone.",
                                "nullable": true,
                                "type": "number"
                              },
                              "endAt": {
                                "format": "date-time",
                                "nullable": true,
                                "type": "string"
                              },
                              "id": {
                                "type": "string"
                              },
                              "labels": {
                                "description": "Banners only: the words the SDK draws that the author doesn't write, keyed by each language a visitor can get (the default and the enabled ones): `siteNotice`, the region's name when `content.accessibleName` is null, and `dismiss`, the Dismiss control's name.",
                                "type": "object"
                              },
                              "languageMatch": {
                                "description": "`languages` precomputed for matching a visitor's language on the page, with the same answers as the survey language matcher: `keys` maps a requested code (lowercase, `_` as `-`) to the matched code (`default` for the default language), covering every stored code, alias and canonical spelling; `bases` maps a base language (`de`, `zh-hant`) to the match for any other tag of it. Both are empty when there is one language.",
                                "type": "object"
                              },
                              "languages": {
                                "description": "Every language the texts are written in, the default first, shaped like a survey's languages: `default`, `enabled` and `language` (`code`, `alias`). A visitor whose language is missing or disabled, or whose translation of a text is empty, sees the default language.",
                                "items": {
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "position": {
                                "description": "As in API v3 `styling.position`: `desktop`, and `phone` (below 768 px) or null.",
                                "type": "object"
                              },
                              "showOn": {
                                "enum": ["pageView", "action"],
                                "type": "string"
                              },
                              "startAt": {
                                "format": "date-time",
                                "nullable": true,
                                "type": "string"
                              },
                              "style": {
                                "description": "The look, computed by the server from the workspace Look & Feel and the creative's custom styles; the SDK only applies it. `element` (the button, or the banner's bar) and `button` (the banner's button, null for a feedback button) each carry colours per appearance (`light`, `dark`: `backgroundColor`, `textColor`, `borderColor`), sizes per device (`desktop`, `phone` below 768 px: `fontSize`, `paddingX`, `paddingY`), `borderRadius` and `fontWeight`, in px and #rrggbb. `pageFont` is true when it renders in the host page's font. `customCss` is the creative's own CSS, compiled for its shadow root (`light`, `dark`), or null.",
                                "type": "object"
                              },
                              "surveyLanguageMatch": {
                                "description": "For a popup survey Destination, that survey's languages precomputed like `languageMatch`, so the SDK hides a creative whose survey the visitor's language would skip without loading the survey renderer. Null for any other Destination.",
                                "nullable": true,
                                "type": "object"
                              },
                              "triggers": {
                                "description": "Names of the actions that show it when `showOn` is `action`.",
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": ["feedbackButton", "banner"],
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "project": {
                          "properties": {
                            "clickOutsideClose": {
                              "example": true,
                              "type": "boolean"
                            },
                            "id": {
                              "example": "cm6orqtcl000319wj9wb7dltl",
                              "type": "string"
                            },
                            "inAppSurveyBranding": {
                              "example": true,
                              "type": "boolean"
                            },
                            "overlay": {
                              "enum": ["none", "light", "dark"],
                              "example": "none",
                              "type": "string"
                            },
                            "placement": {
                              "example": "bottomRight",
                              "type": "string"
                            },
                            "recontactDays": {
                              "example": 7,
                              "type": "integer"
                            },
                            "styling": {
                              "properties": {
                                "allowStyleOverwrite": {
                                  "example": true,
                                  "type": "boolean"
                                },
                                "brandColor": {
                                  "properties": {
                                    "light": {
                                      "example": "#64748b",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        },
                        "surveys": {
                          "description": "List of surveys in the workspace",
                          "items": {
                            "properties": {
                              "autoClose": {
                                "example": null,
                                "type": "boolean"
                              },
                              "autoSelectLanguage": {
                                "example": null,
                                "type": "boolean"
                              },
                              "delay": {
                                "example": 0,
                                "type": "integer"
                              },
                              "displayLimit": {
                                "example": 5,
                                "type": "integer"
                              },
                              "displayOption": {
                                "example": "respondMultiple",
                                "type": "string"
                              },
                              "displayPercentage": {
                                "example": null,
                                "type": "integer"
                              },
                              "endings": {
                                "items": {
                                  "properties": {
                                    "buttonLabel": {
                                      "example": "Create your own Survey",
                                      "type": "string"
                                    },
                                    "buttonLink": {
                                      "example": "https://formbricks.com",
                                      "type": "string"
                                    },
                                    "headline": {
                                      "example": "Thank you!",
                                      "type": "string"
                                    },
                                    "id": {
                                      "example": "o729tod5klhix62njmk262dk",
                                      "type": "string"
                                    },
                                    "subheader": {
                                      "example": "We appreciate your feedback.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "example": "endScreen",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "hiddenFields": {
                                "properties": {
                                  "enabled": {
                                    "example": true,
                                    "type": "boolean"
                                  },
                                  "fieldIds": {
                                    "items": {
                                      "type": "string"
                                    },
                                    "type": "array"
                                  }
                                },
                                "type": "object"
                              },
                              "id": {
                                "example": "cm6orr901000g19wjwwa690eo",
                                "type": "string"
                              },
                              "languages": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "name": {
                                "example": "Start from scratch",
                                "type": "string"
                              },
                              "overlayAppearance": {
                                "description": "Custom overlay color and opacity for modal surveys, already resolved from the survey and workspace. Omitted when neither is set; a null value means the preset for the overlay applies.",
                                "properties": {
                                  "color": {
                                    "example": "#334155",
                                    "nullable": true,
                                    "pattern": "^#(?:[A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$",
                                    "type": "string"
                                  },
                                  "opacity": {
                                    "example": 80,
                                    "maximum": 100,
                                    "minimum": 10,
                                    "nullable": true,
                                    "type": "integer"
                                  }
                                },
                                "type": "object"
                              },
                              "questions": {
                                "items": {
                                  "properties": {
                                    "buttonLabel": {
                                      "example": "Next",
                                      "type": "string"
                                    },
                                    "charLimit": {
                                      "example": false,
                                      "type": "boolean"
                                    },
                                    "headline": {
                                      "example": "What would you like to know?",
                                      "type": "string"
                                    },
                                    "id": {
                                      "example": "dd5c8w2a4ttkbnjb9nwhtb17",
                                      "type": "string"
                                    },
                                    "inputType": {
                                      "example": "text",
                                      "type": "string"
                                    },
                                    "placeholder": {
                                      "example": "Type your answer here...",
                                      "type": "string"
                                    },
                                    "required": {
                                      "example": true,
                                      "type": "boolean"
                                    },
                                    "type": {
                                      "example": "openText",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "recontactDays": {
                                "example": 0,
                                "type": "integer"
                              },
                              "segment": {
                                "properties": {
                                  "createdAt": {
                                    "example": "2025-02-03T08:08:33.377Z",
                                    "type": "string"
                                  },
                                  "description": {
                                    "example": null,
                                    "type": "string"
                                  },
                                  "filters": {
                                    "items": {
                                      "type": "string"
                                    },
                                    "type": "array"
                                  },
                                  "id": {
                                    "example": "cm6orr90h000h19wj1lnwoxwg",
                                    "type": "string"
                                  },
                                  "isPrivate": {
                                    "example": true,
                                    "type": "boolean"
                                  },
                                  "title": {
                                    "example": "cm6orr901000g19wjwwa690eo",
                                    "type": "string"
                                  },
                                  "updatedAt": {
                                    "example": "2025-02-03T08:08:33.377Z",
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              "showLanguageSwitch": {
                                "example": null,
                                "type": "boolean"
                              },
                              "status": {
                                "example": "inProgress",
                                "type": "string"
                              },
                              "styling": {
                                "example": null,
                                "type": "object"
                              },
                              "triggers": {
                                "items": {
                                  "properties": {
                                    "actionClass": {
                                      "example": "code action",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "type": {
                                "example": "app",
                                "type": "string"
                              },
                              "variables": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "welcomeCard": {
                                "properties": {
                                  "buttonLabel": {
                                    "example": "Next",
                                    "type": "string"
                                  },
                                  "enabled": {
                                    "example": false,
                                    "type": "boolean"
                                  },
                                  "headline": {
                                    "example": "Welcome!",
                                    "type": "string"
                                  },
                                  "html": {
                                    "example": "Thanks for providing your feedback - let's go!",
                                    "type": "string"
                                  },
                                  "showResponseCount": {
                                    "example": false,
                                    "type": "boolean"
                                  },
                                  "timeToFinish": {
                                    "example": false,
                                    "type": "boolean"
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "HTTP Status 200"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "example": "not_found",
                      "type": "string"
                    },
                    "details": {
                      "properties": {
                        "resource_id": {
                          "example": "tpywklouw2p7tebdu4zv01an",
                          "type": "string"
                        },
                        "resource_type": {
                          "example": "environment",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "example": "Environment not found",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "example": "internal_server_error",
                      "type": "string"
                    },
                    "details": {
                      "type": "object"
                    },
                    "message": {
                      "example": "Unable to complete request: Expected property name or '}' in JSON at position 29",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Internal Server Error"
          }
        },
        "summary": "Get Workspace State",
        "tags": ["Client API - Environment"]
      }
    },
    "/api/v1/client/{workspaceId}/responses": {
      "post": {
        "description": "Create a response for a survey and it's fields with the user's responses. The userId & meta here is optional. Note - Environments are deprecated. Use Workspace/workspaceId terminology.",
        "parameters": [
          {
            "in": "path",
            "name": "workspaceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "default": {
                  "value": {
                    "data": {
                      "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                      "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
                    },
                    "finished": false,
                    "meta": {
                      "action": "test action",
                      "source": "Postman API",
                      "url": "https://postman.com"
                    },
                    "surveyId": "{{surveyId}}",
                    "userId": "{{userId}}"
                  }
                }
              },
              "schema": {
                "properties": {
                  "data": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "finished": {
                    "type": "boolean"
                  },
                  "language": {
                    "description": "Language of the response (survey should have this language enabled)",
                    "enum": ["en", "de", "pt", "etc.."],
                    "type": "string"
                  },
                  "meta": {
                    "properties": {
                      "action": {
                        "type": "string"
                      },
                      "openedByCreativeId": {
                        "description": "The creative whose click opened the survey. Stored, with the creative's name as openedByCreativeName, only when the creative is in the workspace and opens this survey; otherwise ignored. A client-sent openedByCreativeName is always ignored.",
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "surveyId": {
                    "type": "string"
                  },
                  "userId": {
                    "type": "string"
                  }
                },
                "required": ["surveyId"],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "id": "clvc3aool000p494jzjuukfzu"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:53:50 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "code": "bad_request",
                  "details": {
                    "surveyId": "Invalid cuid2"
                  },
                  "message": "Fields are missing or incorrectly formatted"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:55:50 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "details": {
                    "resource_id": "hs8yd14l9h8u353tjmv6rzaw",
                    "resource_type": "Survey"
                  },
                  "message": "Survey not found"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:56:29 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Create Response",
        "tags": ["Client API - Response"]
      }
    },
    "/api/v1/client/{workspaceId}/responses/{responseId}": {
      "put": {
        "description": "Update an existing response for example when you want to mark a response as finished or you want to change an existing response's value. Note - Environments are deprecated. Use Workspace/workspaceId terminology.",
        "parameters": [
          {
            "in": "path",
            "name": "responseId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "data": {
                    "hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
                    "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
                  },
                  "finished": true
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {}
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 08:09:19 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "details": {
                    "resource_id": "nonexistentid",
                    "resource_type": "Response"
                  },
                  "message": "Response not found"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 08:13:50 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Update Response",
        "tags": ["Client API - Response"]
      }
    },
    "/api/v1/client/{workspaceId}/user": {
      "post": {
        "description": "Endpoint for creating or identifying a user within the specified workspace. If the user already exists, this will identify them and potentially update user attributes. If they don't exist, it will create a new user. Note - Environments are deprecated. Use Workspace/workspaceId terminology.\n",
        "parameters": [
          {
            "in": "path",
            "name": "workspaceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "attributes": {
                  "plan": "free"
                },
                "userId": "hello-user"
              },
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "state": {
                          "properties": {
                            "data": {
                              "properties": {
                                "displays": {
                                  "items": {
                                    "properties": {
                                      "createdAt": {
                                        "example": "2025-02-03T11:23:13.050Z",
                                        "type": "string"
                                      },
                                      "surveyId": {
                                        "example": "cm6orqtdd000a19wjhnbces5s",
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "lastDisplayAt": {
                                  "example": "2025-02-03T11:23:13.050Z",
                                  "type": "string"
                                },
                                "responses": {
                                  "items": {
                                    "example": "cm6orqtdd000a19wjhnbces5s",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "segments": {
                                  "items": {
                                    "example": "cm6onrezn000hw2ahcokiz41v",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "userId": {
                                  "example": "hello-user",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "expiresAt": {
                              "example": "2025-02-03T11:23:13.050Z",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:36:43 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "code": "bad_request",
                  "message": "userId is required"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:36:43 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "details": {
                    "resource_id": "f16ttdvtkx85k5m4s561ruqj",
                    "resource_type": "Environment"
                  },
                  "message": "Environment not found"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:56:29 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_server_error",
                  "details": {},
                  "message": "An unexpected error occurred"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:56:29 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Create or Identify User",
        "tags": ["Client API - User"]
      }
    },
    "/api/v1/management/action-classes": {
      "get": {
        "description": "Fetches all the action classes available in the workspace",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-Api-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "createdAt": "2024-04-09T04:53:29.577Z",
                      "description": "Gets fired when a new session is created",
                      "id": "clurwouax000bzffxv3fqy6mt",
                      "name": "New Session",
                      "noCodeConfig": null,
                      "type": "automatic",
                      "updatedAt": "2024-04-09T04:53:29.577Z",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    {
                      "createdAt": "2024-04-09T04:53:29.577Z",
                      "description": "A user on Desktop leaves the website with the cursor.",
                      "id": "clurwouax000czffx4wj0qldi",
                      "name": "Exit Intent (Desktop)",
                      "noCodeConfig": null,
                      "type": "automatic",
                      "updatedAt": "2024-04-09T04:53:29.577Z",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    {
                      "createdAt": "2024-04-09T04:53:29.577Z",
                      "description": "A user scrolled 50% of the current page",
                      "id": "clurwouax000dzffx3dfxc91d",
                      "name": "50% Scroll",
                      "noCodeConfig": null,
                      "type": "automatic",
                      "updatedAt": "2024-04-09T04:53:29.577Z",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    {
                      "createdAt": "2024-04-22T08:59:01.144Z",
                      "description": "hhehe",
                      "id": "clvaq6nx40000mhqfuu74rv92",
                      "name": "new_action_v2",
                      "noCodeConfig": null,
                      "type": "code",
                      "updatedAt": "2024-04-22T09:03:55.509Z",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    {
                      "createdAt": "2024-04-22T09:04:30.756Z",
                      "description": null,
                      "id": "clvaqdq8z000bmhqfu0km5rv4",
                      "name": "new_action_v20",
                      "noCodeConfig": null,
                      "type": "code",
                      "updatedAt": "2024-04-22T09:04:30.756Z",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    {
                      "createdAt": "2024-04-23T07:11:17.032Z",
                      "description": null,
                      "id": "clvc1ryuf0001494jc8oesfwl",
                      "name": "new_action_v1",
                      "noCodeConfig": null,
                      "type": "code",
                      "updatedAt": "2024-04-23T07:11:17.032Z",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    }
                  ]
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 08:47:03 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_authenticated",
                  "details": {
                    "x-Api-Key": "Header not provided or API Key invalid"
                  },
                  "message": "Not authenticated"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 08:48:01 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get All Action Classes",
        "tags": ["Management API - Action Class"]
      },
      "post": {
        "description": "Create Action Class from the UI or from the API! You can read more about them [here](https://formbricks.com/docs/in-app-surveys/actions).",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "description": "From API Docs (optional)",
                  "key": "my-action",
                  "name": "My Action from Postman",
                  "type": "code",
                  "workspaceId": "{{workspaceId}}"
                },
                "properties": {
                  "description": {
                    "description": "Optional description of the action class",
                    "type": "string"
                  },
                  "key": {
                    "description": "Required when type is 'code'. A unique identifier for the action. Not needed for 'noCode' type.",
                    "minLength": 1,
                    "type": "string"
                  },
                  "name": {
                    "description": "Name of the action class",
                    "minLength": 1,
                    "type": "string"
                  },
                  "noCodeConfig": {
                    "description": "Configuration object required when type is 'noCode'. Defines the conditions for triggering the action. Not needed for 'code' type.",
                    "nullable": true,
                    "properties": {
                      "elementSelector": {
                        "description": "Element selector (required for click type)",
                        "properties": {
                          "cssSelector": {
                            "description": "CSS selector for the element",
                            "type": "string"
                          },
                          "innerHtml": {
                            "description": "Inner HTML text to match",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": {
                        "description": "Type of no-code trigger",
                        "enum": ["click", "pageView", "exitIntent", "fiftyPercentScroll"],
                        "type": "string"
                      },
                      "urlFilters": {
                        "items": {
                          "properties": {
                            "rule": {
                              "description": "URL matching rule",
                              "enum": [
                                "exactMatch",
                                "contains",
                                "startsWith",
                                "endsWith",
                                "notMatch",
                                "notContains",
                                "matchesRegex"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "description": "URL pattern to match",
                              "type": "string"
                            }
                          },
                          "required": ["rule", "value"],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": ["type", "urlFilters"],
                    "type": "object"
                  },
                  "type": {
                    "description": "Type of action class",
                    "enum": ["code", "noCode"],
                    "type": "string"
                  },
                  "workspaceId": {
                    "description": "The workspace ID where the action class will be created",
                    "type": "string"
                  }
                },
                "required": ["workspaceId", "name", "type"],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-23T08:58:47.507Z",
                    "description": null,
                    "id": "clvc5m82c000z494jkvnw1gh0",
                    "name": "My Action from Postman",
                    "noCodeConfig": null,
                    "type": "code",
                    "updatedAt": "2024-04-23T08:58:47.507Z",
                    "workspaceId": "clurwouax000azffxt7n5unn3"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 08:58:47 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "code": "bad_request",
                  "details": {
                    "key": "Required",
                    "workspaceId": "Required"
                  },
                  "message": "Fields are missing or incorrectly formatted"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 08:57:55 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Create Action Class",
        "tags": ["Management API - Action Class"]
      }
    },
    "/api/v1/management/action-classes/{actionClassId}": {
      "delete": {
        "description": "Deletes an existing action class",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "actionClassId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-23T08:58:47.507Z",
                    "description": null,
                    "id": "clvc5m82c000z494jkvnw1gh0",
                    "name": "My Action from Postman",
                    "noCodeConfig": null,
                    "type": "code",
                    "updatedAt": "2024-04-23T08:58:47.507Z",
                    "workspaceId": "clurwouax000azffxt7n5unn3"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 08:59:13 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "code": "bad_request",
                  "details": {},
                  "message": "Automatic action classes cannot be deleted"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 09:13:05 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "details": {
                    "resource_id": "clvc5m82c000z494jkvnw1gh0",
                    "resource_type": "Action Class"
                  },
                  "message": "Action Class not found"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 08:59:38 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Delete Action Class",
        "tags": ["Management API - Action Class"]
      },
      "get": {
        "description": "Fetch an Action Class by it's ID",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-Api-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "actionClassId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-09T04:53:29.577Z",
                    "description": "Gets fired when a new session is created",
                    "id": "clurwouax000bzffxv3fqy6mt",
                    "name": "New Session",
                    "noCodeConfig": null,
                    "type": "automatic",
                    "updatedAt": "2024-04-09T04:53:29.577Z",
                    "workspaceId": "clurwouax000azffxt7n5unn3"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 09:03:25 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "details": {
                    "resource_id": "clvc5m82c000z494jkvnw1gh0",
                    "resource_type": "Action Class"
                  },
                  "message": "Action Class not found"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 09:01:09 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get Action Class by ID",
        "tags": ["Management API - Action Class"]
      }
    },
    "/api/v1/management/contact-attribute-keys": {
      "get": {
        "description": "Retrieve a list of all contact attribute keys defined in the current workspace",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "createdAt": "2024-11-07T12:25:48.589Z",
                      "description": "The email of the person",
                      "id": "cm37a748d000ahbwhd5bbwc09",
                      "isUnique": true,
                      "key": "email",
                      "name": "email",
                      "type": "default",
                      "updatedAt": "2024-12-03T13:30:28.620Z",
                      "workspaceId": "cm37a748d0008hbwhqvvuba23"
                    }
                  ]
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:37:25 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get All Contact Attribute Keys",
        "tags": ["Management API - Contact Attribute Keys"]
      }
    },
    "/api/v1/management/contact-attribute-keys/{contactAttributeKeyId}": {
      "get": {
        "description": "Retrieve a specific contact attribute key by its ID. This returns detailed information about how a particular attribute is defined in your workspace.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the contact attribute key to retrieve",
            "in": "path",
            "name": "contactAttributeKeyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-11-07T12:25:48.589Z",
                    "description": "The email of the person",
                    "id": "cm37a748d000ahbwhd5bbwc09",
                    "isUnique": true,
                    "key": "email",
                    "name": "email",
                    "type": "default",
                    "updatedAt": "2024-12-03T13:30:28.620Z",
                    "workspaceId": "cm37a748d0008hbwhqvvuba23"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "createdAt": {
                          "description": "Timestamp when the attribute key was created",
                          "format": "date-time",
                          "type": "string"
                        },
                        "description": {
                          "description": "Detailed description of what this attribute represents",
                          "type": "string"
                        },
                        "id": {
                          "description": "Unique identifier for the attribute key",
                          "type": "string"
                        },
                        "isUnique": {
                          "description": "Whether this attribute must have unique values across contacts",
                          "type": "boolean"
                        },
                        "key": {
                          "description": "The machine-readable identifier for the attribute",
                          "type": "string"
                        },
                        "name": {
                          "description": "Human-readable name for the attribute",
                          "type": "string"
                        },
                        "type": {
                          "description": "The type of attribute (e.g., \"default\")",
                          "type": "string"
                        },
                        "updatedAt": {
                          "description": "Timestamp when the attribute key was last updated",
                          "format": "date-time",
                          "type": "string"
                        },
                        "workspaceId": {
                          "description": "ID of the workspace this attribute key belongs to",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "details": {
                    "resource_id": "cm37a748d000ahbwhd5bbwc09",
                    "resource_type": "ContactAttributeKey"
                  },
                  "message": "Contact attribute key not found"
                },
                "schema": {
                  "properties": {
                    "code": {
                      "example": "not_found",
                      "type": "string"
                    },
                    "details": {
                      "properties": {
                        "resource_id": {
                          "type": "string"
                        },
                        "resource_type": {
                          "example": "ContactAttributeKey",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "example": "Contact attribute key not found",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Get Contact Attribute Key by ID",
        "tags": ["Management API - Contact Attribute Keys"]
      }
    },
    "/api/v1/management/contact-attributes": {
      "get": {
        "description": "Retrieve a list of all contact attributes in the current workspace",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "attributeKeyId": "cm4jnsxxh00ukh3aq08gpdafw",
                      "contactId": "cm4jnsxcd00ufh3aqz1b6zox6",
                      "createdAt": "2024-12-11T08:59:38.309Z",
                      "id": "cm4jnsxxh00umh3aq76q08ah1",
                      "updatedAt": "2024-12-11T08:59:38.309Z",
                      "value": "eight"
                    }
                  ]
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:37:25 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get All Contact Attributes",
        "tags": ["Management API - Contact Attributes"]
      }
    },
    "/api/v1/management/contacts": {
      "get": {
        "description": "Retrieve a list of all contacts for the current workspace",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "createdAt": "2024-12-11T08:59:37.550Z",
                      "id": "cm4jnsxcd012fh3aqz1b6zox6",
                      "updatedAt": "2024-12-11T08:59:37.550Z",
                      "userId": null,
                      "workspaceId": "cm37a748d0001hbwhqvvuba23"
                    },
                    {
                      "createdAt": "2024-12-12T12:09:46.859Z",
                      "id": "cm4la1bhn12g5cr5qh8p6v874",
                      "updatedAt": "2024-12-12T12:09:46.859Z",
                      "userId": null,
                      "workspaceId": "cm37a748d0001hbwhqvvuba23"
                    }
                  ]
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:37:25 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get All Contacts",
        "tags": ["Management API - Contacts"]
      }
    },
    "/api/v1/management/contacts/{contactId}": {
      "get": {
        "description": "Retrieve a specific contact by its ID",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the contact to retrieve",
            "in": "path",
            "name": "contactId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-12-11T08:59:37.550Z",
                    "id": "cm4jnsxcd00ufh3aqz1b6zox6",
                    "updatedAt": "2024-12-11T08:59:37.550Z",
                    "userId": null,
                    "workspaceId": "cm37a748d0008hbwhqvvuba23"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:37:25 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "details": {
                    "resource_id": "cm4jnsxcd00ufh3aqz1b6zox6",
                    "resource_type": "Contact"
                  },
                  "message": "Contact not found"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Get Contact by ID",
        "tags": ["Management API - Contacts"]
      }
    },
    "/api/v1/management/me": {
      "get": {
        "description": "Fetches the product associated with the passed API key",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "apiKeyWithSingleEnvironment": {
                    "summary": "API key with one environment permission",
                    "value": {
                      "appSetupCompleted": true,
                      "createdAt": "2024-04-09T04:53:29.577Z",
                      "id": "clurwouax000azffxt7n5unn3",
                      "project": {
                        "id": "clurwouaj0003zffx0hu6bonm",
                        "name": "My Project"
                      },
                      "type": "production",
                      "updatedAt": "2024-04-09T14:14:49.256Z"
                    }
                  },
                  "organizationReadApiKey": {
                    "summary": "Organization-read API key without a single environment",
                    "value": {
                      "environmentPermissions": [],
                      "organizationAccess": {
                        "accessControl": {
                          "read": true,
                          "write": false
                        }
                      },
                      "organizationId": "clurwouaj0003zffx0hu6bonm"
                    }
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "appSetupCompleted": {
                          "type": "boolean"
                        },
                        "createdAt": {
                          "format": "date-time",
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "project": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": ["id", "name"],
                          "type": "object"
                        },
                        "type": {
                          "enum": ["production", "development"],
                          "type": "string"
                        },
                        "updatedAt": {
                          "format": "date-time",
                          "type": "string"
                        }
                      },
                      "required": ["id", "type", "createdAt", "updatedAt", "appSetupCompleted", "project"],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "environmentPermissions": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "environmentId": {
                                "type": "string"
                              },
                              "environmentType": {
                                "enum": ["production", "development"],
                                "type": "string"
                              },
                              "permissions": {
                                "enum": ["read", "write", "manage"],
                                "type": "string"
                              },
                              "projectId": {
                                "type": "string"
                              },
                              "projectName": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "environmentId",
                              "environmentType",
                              "permissions",
                              "projectId",
                              "projectName"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "organizationAccess": {
                          "additionalProperties": true,
                          "type": "object"
                        },
                        "organizationId": {
                          "type": "string"
                        }
                      },
                      "required": ["environmentPermissions", "organizationId", "organizationAccess"],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:31:38 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Me",
        "tags": ["Management API - Me"]
      }
    },
    "/api/v1/management/responses": {
      "get": {
        "description": "Pass the surveyId as a Query Parameter & only fetch responses for a specific survey that you have access to.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the survey to fetch responses for",
            "example": "{{surveyId}}",
            "in": "query",
            "name": "surveyId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Number of items to return",
            "example": "{{limit}}",
            "in": "query",
            "name": "limit",
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Number of items to skip",
            "example": "{{skip}}",
            "in": "query",
            "name": "skip",
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "createdAt": "2024-04-23T08:03:32.901Z",
                      "data": {
                        "1": "clicked",
                        "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                        "hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
                        "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?",
                        "tcgls012312312063n8ri7dtrbnepcmz": "Who? Who? Who?"
                      },
                      "finished": true,
                      "id": "clvc3n6hy000u494jn2ypw30r",
                      "language": null,
                      "meta": {
                        "action": "test action",
                        "source": "Postman API",
                        "url": "https://postman.com",
                        "userAgent": {}
                      },
                      "person": {
                        "attributes": {
                          "Created From": "API",
                          "created_from": "API"
                        },
                        "createdAt": "2024-04-23T07:39:22.696Z",
                        "id": "clvc2s3ig000k494jltkqkm2u",
                        "updatedAt": "2024-04-23T07:39:22.696Z",
                        "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                        "workspaceId": "clurwouax000azffxt7n5unn3"
                      },
                      "personAttributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {},
                      "updatedAt": "2024-04-23T08:14:12.343Z"
                    },
                    {
                      "createdAt": "2024-04-23T08:00:01.151Z",
                      "data": {
                        "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                        "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
                      },
                      "finished": false,
                      "id": "clvc3in3z000t494j4wtax1oi",
                      "language": null,
                      "meta": {
                        "userAgent": {}
                      },
                      "person": {
                        "attributes": {
                          "Created From": "API",
                          "created_from": "API"
                        },
                        "createdAt": "2024-04-23T07:39:22.696Z",
                        "id": "clvc2s3ig000k494jltkqkm2u",
                        "updatedAt": "2024-04-23T07:39:22.696Z",
                        "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                        "workspaceId": "clurwouax000azffxt7n5unn3"
                      },
                      "personAttributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {},
                      "updatedAt": "2024-04-23T08:00:01.151Z"
                    },
                    {
                      "createdAt": "2024-04-23T07:59:49.759Z",
                      "data": {
                        "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                        "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
                      },
                      "finished": true,
                      "id": "clvc3iebk000s494j37tq10o3",
                      "language": null,
                      "meta": {
                        "userAgent": {}
                      },
                      "person": {
                        "attributes": {
                          "Created From": "API",
                          "created_from": "API"
                        },
                        "createdAt": "2024-04-23T07:39:22.696Z",
                        "id": "clvc2s3ig000k494jltkqkm2u",
                        "updatedAt": "2024-04-23T07:39:22.696Z",
                        "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                        "workspaceId": "clurwouax000azffxt7n5unn3"
                      },
                      "personAttributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {},
                      "updatedAt": "2024-04-23T07:59:49.759Z"
                    },
                    {
                      "createdAt": "2024-04-23T07:57:27.583Z",
                      "data": {
                        "hs8yd14l9h8u353tjmv6rzaw": "ho ho ho",
                        "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
                      },
                      "finished": true,
                      "id": "clvc3fcm7000r494jgvs99mqa",
                      "language": null,
                      "meta": {
                        "userAgent": {}
                      },
                      "person": {
                        "attributes": {
                          "Created From": "API",
                          "created_from": "API"
                        },
                        "createdAt": "2024-04-23T07:39:22.696Z",
                        "id": "clvc2s3ig000k494jltkqkm2u",
                        "updatedAt": "2024-04-23T07:39:22.696Z",
                        "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                        "workspaceId": "clurwouax000azffxt7n5unn3"
                      },
                      "personAttributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {},
                      "updatedAt": "2024-04-23T07:57:27.583Z"
                    },
                    {
                      "createdAt": "2024-04-23T07:56:59.441Z",
                      "data": {
                        "hs7yd14l9h8u353tjmv6rzaw": "clicked",
                        "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
                      },
                      "finished": true,
                      "id": "clvc3eqwj000q494jali1xhzq",
                      "language": null,
                      "meta": {
                        "userAgent": {}
                      },
                      "person": {
                        "attributes": {
                          "Created From": "API",
                          "created_from": "API"
                        },
                        "createdAt": "2024-04-23T07:39:22.696Z",
                        "id": "clvc2s3ig000k494jltkqkm2u",
                        "updatedAt": "2024-04-23T07:39:22.696Z",
                        "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                        "workspaceId": "clurwouax000azffxt7n5unn3"
                      },
                      "personAttributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {},
                      "updatedAt": "2024-04-23T07:56:59.441Z"
                    },
                    {
                      "createdAt": "2024-04-23T07:53:49.935Z",
                      "data": {
                        "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                        "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
                      },
                      "finished": true,
                      "id": "clvc3aool000p494jzjuukfzu",
                      "language": null,
                      "meta": {
                        "userAgent": {}
                      },
                      "person": {
                        "attributes": {
                          "Created From": "API",
                          "created_from": "API"
                        },
                        "createdAt": "2024-04-23T07:39:22.696Z",
                        "id": "clvc2s3ig000k494jltkqkm2u",
                        "updatedAt": "2024-04-23T07:39:22.696Z",
                        "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                        "workspaceId": "clurwouax000azffxt7n5unn3"
                      },
                      "personAttributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {},
                      "updatedAt": "2024-04-23T07:53:49.935Z"
                    },
                    {
                      "createdAt": "2024-04-12T13:49:47.746Z",
                      "data": {
                        "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                        "inputType": "text",
                        "tcgls0063n8ri7dtrbnepcmz": "fsef"
                      },
                      "finished": true,
                      "id": "cluwq6352000klvz6t82e1oyt",
                      "language": null,
                      "meta": {
                        "action": "New Session",
                        "url": "http://localhost:3002/app?formbricksDebug=true",
                        "userAgent": {
                          "browser": "Chrome",
                          "os": "Linux"
                        }
                      },
                      "person": null,
                      "personAttributes": null,
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {
                        "_total": 6908,
                        "hs8yd14l9h8u353tjmv6rzaw": 4094.60000000149,
                        "tcgls0063n8ri7dtrbnepcmz": 2813.39999999851
                      },
                      "updatedAt": "2024-04-12T13:53:24.650Z"
                    },
                    {
                      "createdAt": "2024-04-12T13:09:54.616Z",
                      "data": {
                        "hs8yd14l9h8u353tjmv6rzaw": "clicked"
                      },
                      "finished": false,
                      "id": "cluwoqsl4000ilvz6xmbaf5fl",
                      "language": null,
                      "meta": {
                        "action": "New Session",
                        "url": "http://localhost:3002/app?formbricksDebug=true",
                        "userAgent": {
                          "browser": "Chrome",
                          "os": "Linux"
                        }
                      },
                      "person": null,
                      "personAttributes": null,
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {},
                      "updatedAt": "2024-04-12T13:09:54.616Z"
                    },
                    {
                      "createdAt": "2024-04-12T13:09:19.823Z",
                      "data": {
                        "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                        "inputType": "text",
                        "tcgls0063n8ri7dtrbnepcmz": "aaa"
                      },
                      "finished": true,
                      "id": "cluwoq1qn000glvz6ntrzf3kc",
                      "language": null,
                      "meta": {
                        "action": "New Session",
                        "url": "http://localhost:3002/app?formbricksDebug=true",
                        "userAgent": {
                          "browser": "Chrome",
                          "os": "Linux"
                        }
                      },
                      "person": null,
                      "personAttributes": null,
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {
                        "_total": 4311.599999997765,
                        "hs8yd14l9h8u353tjmv6rzaw": 2231.199999999255,
                        "tcgls0063n8ri7dtrbnepcmz": 2080.39999999851
                      },
                      "updatedAt": "2024-04-12T13:09:23.793Z"
                    },
                    {
                      "createdAt": "2024-04-12T13:08:58.008Z",
                      "data": {
                        "hs8yd14l9h8u353tjmv6rzaw": "clicked"
                      },
                      "finished": false,
                      "id": "cluwopkwr000dlvz6mxvueqm8",
                      "language": null,
                      "meta": {
                        "action": "New Session",
                        "url": "http://localhost:3002/app?formbricksDebug=true",
                        "userAgent": {
                          "browser": "Chrome",
                          "os": "Linux"
                        }
                      },
                      "person": null,
                      "personAttributes": null,
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {},
                      "updatedAt": "2024-04-12T13:08:58.008Z"
                    },
                    {
                      "createdAt": "2024-04-12T13:07:01.174Z",
                      "data": {
                        "hs8yd14l9h8u353tjmv6rzaw": "clicked"
                      },
                      "finished": true,
                      "id": "cluwon2ra000clvz6pwo3b5g3",
                      "language": null,
                      "meta": {
                        "action": "New Session",
                        "url": "http://localhost:3002/app?formbricksDebug=true",
                        "userAgent": {
                          "browser": "Chrome",
                          "os": "Linux"
                        }
                      },
                      "person": null,
                      "personAttributes": null,
                      "singleUseId": null,
                      "surveyId": "clusgqpml0000135cxet3y8vh",
                      "tags": [],
                      "ttc": {},
                      "updatedAt": "2024-04-12T13:07:01.174Z"
                    }
                  ]
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:40:24 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get Survey Responses",
        "tags": ["Management API - Response"]
      },
      "post": {
        "description": "Create a user response using the management API. This will trigger the response pipeline, including webhooks, integrations, follow-up emails, and other configured actions.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "default": {
                  "value": {
                    "createdAt": "2024-09-05T08:44:16.051Z",
                    "data": {
                      "hg508afs7lgx8nlni5dtit5u": ["Hello World"]
                    },
                    "finished": false,
                    "language": "en",
                    "surveyId": "clwj7hi7r0000vfhpfze6vjdg",
                    "updatedAt": "2024-09-05T08:44:16.051Z"
                  }
                }
              },
              "schema": {
                "properties": {
                  "createdAt": {
                    "description": "Creation timestamp (optional; usually set by server)",
                    "format": "date-time",
                    "type": "string"
                  },
                  "data": {
                    "additionalProperties": true,
                    "description": "Answers keyed by questionId; value shape depends on question type",
                    "type": "object"
                  },
                  "finished": {
                    "description": "Whether the response is marked as finished",
                    "type": "boolean"
                  },
                  "language": {
                    "description": "Language of the response (survey should have this language enabled)",
                    "enum": ["en", "de", "pt", "etc.."],
                    "type": "string"
                  },
                  "surveyId": {
                    "description": "The ID of the survey this response belongs to",
                    "type": "string"
                  },
                  "updatedAt": {
                    "description": "Update timestamp (optional; usually set by server)",
                    "format": "date-time",
                    "type": "string"
                  }
                },
                "required": ["surveyId"],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-23T12:15:01.680Z",
                    "data": {
                      "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                      "hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
                      "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
                    },
                    "finished": true,
                    "id": "clvccml2p0009xz1zrlk1wbqb",
                    "language": "en",
                    "meta": {
                      "action": "test action",
                      "source": "Postman API",
                      "url": "https://postman.com",
                      "userAgent": {}
                    },
                    "person": {
                      "attributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "createdAt": "2024-04-23T07:39:22.696Z",
                      "id": "clvc2s3ig000k494jltkqkm2u",
                      "updatedAt": "2024-04-23T07:39:22.696Z",
                      "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    "personAttributes": {
                      "Created From": "API",
                      "created_from": "API"
                    },
                    "singleUseId": null,
                    "surveyId": "clus3omb00009oo10s53e2pa5",
                    "tags": [],
                    "ttc": {
                      "_total": 310,
                      "hs8yd14l9h8u353tjmv6rzawqqq": 120,
                      "tcgls0063n8ri7dtrbnepcmz": 190
                    },
                    "updatedAt": "2024-04-23T12:16:39.774Z"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:16:39 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "code": "unauthorized",
                  "details": {},
                  "message": "You are not authorized to access this resource"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:10:34 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Create Response",
        "tags": ["Management API - Response"]
      }
    },
    "/api/v1/management/responses/{responseId}": {
      "delete": {
        "description": "Delete a response with its ID",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "responseId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-23T08:03:32.901Z",
                    "data": {
                      "1": "clicked",
                      "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                      "hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
                      "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?",
                      "tcgls012312312063n8ri7dtrbnepcmz": "Who? Who? Who?"
                    },
                    "finished": true,
                    "id": "clvc3n6hy000u494jn2ypw30r",
                    "language": null,
                    "meta": {
                      "action": "test action",
                      "source": "Postman API",
                      "url": "https://postman.com",
                      "userAgent": {}
                    },
                    "person": {
                      "attributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "createdAt": "2024-04-23T07:39:22.696Z",
                      "id": "clvc2s3ig000k494jltkqkm2u",
                      "updatedAt": "2024-04-23T07:39:22.696Z",
                      "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    "personAttributes": {
                      "Created From": "API",
                      "created_from": "API"
                    },
                    "singleUseId": null,
                    "surveyId": "clusgqpml0000135cxet3y8vh",
                    "tags": [],
                    "ttc": {},
                    "updatedAt": "2024-04-23T08:14:12.343Z"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:46:40 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "code": "unauthorized",
                  "details": {},
                  "message": "You are not authorized to access this resource"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:46:49 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Delete Response",
        "tags": ["Management API - Response"]
      },
      "get": {
        "description": "Fetch the entire response object based on its ID",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "responseId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-23T08:03:32.901Z",
                    "data": {
                      "1": "clicked",
                      "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                      "hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
                      "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?",
                      "tcgls012312312063n8ri7dtrbnepcmz": "Who? Who? Who?"
                    },
                    "finished": true,
                    "id": "clvc3n6hy000u494jn2ypw30r",
                    "language": null,
                    "meta": {
                      "action": "test action",
                      "source": "Postman API",
                      "url": "https://postman.com",
                      "userAgent": {}
                    },
                    "person": {
                      "attributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "createdAt": "2024-04-23T07:39:22.696Z",
                      "id": "clvc2s3ig000k494jltkqkm2u",
                      "updatedAt": "2024-04-23T07:39:22.696Z",
                      "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    "personAttributes": {
                      "Created From": "API",
                      "created_from": "API"
                    },
                    "singleUseId": null,
                    "surveyId": "clusgqpml0000135cxet3y8vh",
                    "tags": [],
                    "ttc": {},
                    "updatedAt": "2024-04-23T08:14:12.343Z"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:46:08 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "code": "unauthorized",
                  "details": {},
                  "message": "You are not authorized to access this resource"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:45:38 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get Response by ID",
        "tags": ["Management API - Response"]
      },
      "put": {
        "description": "Update an existing user response with new data. This will trigger the response pipeline, including webhooks, integrations, follow-up emails (if the response is marked as finished), and other configured actions.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "responseId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "data": {
                    "hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
                    "language": "en",
                    "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?",
                    "ttc": {
                      "hs8yd14l9h8u353tjmv6rzawqqq": 120,
                      "tcgls0063n8ri7dtrbnepcmz": 190
                    }
                  },
                  "finished": true
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-23T12:15:01.680Z",
                    "data": {
                      "hs8yd14l9h8u353tjmv6rzaw": "clicked",
                      "hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
                      "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
                    },
                    "finished": true,
                    "id": "clvccml2p0009xz1zrlk1wbqb",
                    "language": "en",
                    "meta": {
                      "action": "test action",
                      "source": "Postman API",
                      "url": "https://postman.com",
                      "userAgent": {}
                    },
                    "person": {
                      "attributes": {
                        "Created From": "API",
                        "created_from": "API"
                      },
                      "createdAt": "2024-04-23T07:39:22.696Z",
                      "id": "clvc2s3ig000k494jltkqkm2u",
                      "updatedAt": "2024-04-23T07:39:22.696Z",
                      "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    "personAttributes": {
                      "Created From": "API",
                      "created_from": "API"
                    },
                    "singleUseId": null,
                    "surveyId": "clus3omb00009oo10s53e2pa5",
                    "tags": [],
                    "ttc": {
                      "_total": 310,
                      "hs8yd14l9h8u353tjmv6rzawqqq": 120,
                      "tcgls0063n8ri7dtrbnepcmz": 190
                    },
                    "updatedAt": "2024-04-23T12:16:39.774Z"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:16:39 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "code": "unauthorized",
                  "details": {},
                  "message": "You are not authorized to access this resource"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:10:34 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Update Response",
        "tags": ["Management API - Response"]
      }
    },
    "/api/v1/management/storage": {
      "post": {
        "description": "API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication and enforces a hard limit of 5 MB for all uploads. It accepts a JSON body with fileName, fileType, workspaceId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "allowedFileExtensions": ["png", "jpg", "jpeg"],
                "fileName": "profile.png",
                "fileType": "image/png",
                "workspaceId": "env123"
              },
              "schema": {
                "properties": {
                  "allowedFileExtensions": {
                    "description": "Optional. List of allowed file extensions.",
                    "items": {
                      "enum": [
                        "heic",
                        "png",
                        "jpeg",
                        "jpg",
                        "webp",
                        "ico",
                        "pdf",
                        "eml",
                        "doc",
                        "docx",
                        "xls",
                        "xlsx",
                        "ppt",
                        "pptx",
                        "txt",
                        "csv",
                        "mp4",
                        "mov",
                        "avi",
                        "mkv",
                        "webm",
                        "mp3",
                        "zip",
                        "rar",
                        "7z",
                        "tar"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "fileName": {
                    "description": "The name of the file to be uploaded.",
                    "type": "string"
                  },
                  "fileType": {
                    "description": "The MIME type of the file.",
                    "type": "string"
                  },
                  "workspaceId": {
                    "description": "The ID of the workspace.",
                    "type": "string"
                  }
                },
                "required": ["fileName", "fileType", "workspaceId"],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "fileUrl": "http://localhost:3000/storage/cm1ubebtj000614kqe4hs3c67/public/profile--fid--abc123.png",
                    "presignedFields": {
                      "Policy": "base64EncodedPolicy",
                      "X-Amz-Algorithm": "AWS4-HMAC-SHA256",
                      "X-Amz-Credential": "your-credential",
                      "X-Amz-Date": "20250312T000000Z",
                      "X-Amz-Signature": "your-signature",
                      "key": "uploads/public/profile--fid--abc123.png"
                    },
                    "signedUrl": "https://s3.example.com/your-bucket",
                    "updatedFileName": "profile--fid--abc123.png"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "fileUrl": {
                          "description": "URL where the uploaded file can be accessed.",
                          "type": "string"
                        },
                        "presignedFields": {
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Form fields to include in the multipart/form-data POST to S3.",
                          "type": "object"
                        },
                        "signedUrl": {
                          "description": "Signed URL for uploading the file to S3.",
                          "type": "string"
                        },
                        "updatedFileName": {
                          "description": "The updated file name after processing.",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK - Returns the signed URL, presigned fields, updated file name, and file URL."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": "fileName is required"
                },
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Detailed error message.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Bad Request - Missing required fields or invalid file extension."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": "Not authenticated"
                },
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Detailed error message.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unauthorized - Authentication failed or user not logged in."
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": "User does not have access to environment env123"
                },
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Detailed error message.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Forbidden - User does not have access to the specified workspace."
          }
        },
        "summary": "Upload Public File",
        "tags": ["Management API - Storage"]
      }
    },
    "/api/v1/management/surveys": {
      "get": {
        "description": "Fetches all existing surveys. Each survey includes both `questions` (the legacy structure) and `blocks` (the newer structure). `questions` is always derived from `blocks` for backwards compatibility, so integrations may read either field.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "autoClose": null,
                      "autoComplete": null,
                      "autoSelectLanguage": null,
                      "blocks": [
                        {
                          "elements": [
                            {
                              "headline": {
                                "default": "What would you like to know?"
                              },
                              "id": "ovpy6va1hab7fl12n913zua0",
                              "inputType": "text",
                              "placeholder": {
                                "default": "Type your answer here..."
                              },
                              "required": true,
                              "subheader": {
                                "default": "This is an example survey."
                              },
                              "type": "openText"
                            }
                          ],
                          "id": "qp8j2k0fx3m9wd1c7b5n4tva",
                          "name": "Block 1"
                        },
                        {
                          "elements": [
                            {
                              "choices": [
                                {
                                  "id": "xpoxuu3sifk1ee8he67ctf5i",
                                  "label": {
                                    "default": "Sun ☀️"
                                  }
                                },
                                {
                                  "id": "hnsovcdmxtcbly6tig1az3qc",
                                  "label": {
                                    "default": "Ocean 🌊"
                                  }
                                },
                                {
                                  "id": "kcnelzdxknvwo8fq20d3nrr5",
                                  "label": {
                                    "default": "Palms 🌴"
                                  }
                                }
                              ],
                              "headline": {
                                "default": "What's important on vacay?"
                              },
                              "id": "awkn2llljy7a4oulp5t15yec",
                              "required": true,
                              "shuffleOption": "none",
                              "type": "multipleChoiceMulti"
                            }
                          ],
                          "id": "rk4v9m2dqz7n0fyt8c3b1xws",
                          "name": "Block 2"
                        }
                      ],
                      "createdAt": "2024-08-05T11:08:27.042Z",
                      "createdBy": "clfv1zvij0000ru0gunwpy43a",
                      "delay": 0,
                      "displayLimit": null,
                      "displayOption": "displayOnce",
                      "displayPercentage": null,
                      "endings": [
                        {
                          "buttonLabel": {
                            "default": "Create your own Survey"
                          },
                          "buttonLink": "https://formbricks.com/signup",
                          "headline": {
                            "default": "Thank you!"
                          },
                          "id": "p73t62dgwq0cvmtt6ug0hmfc",
                          "subheader": {
                            "default": "We appreciate your feedback."
                          },
                          "type": "endScreen"
                        }
                      ],
                      "hiddenFields": {
                        "enabled": false,
                        "fieldIds": []
                      },
                      "id": "clzgw1k4i0001mny1unf8eggn",
                      "isVerifyEmailEnabled": false,
                      "languages": [],
                      "name": "Example Survey",
                      "pin": null,
                      "productOverwrites": null,
                      "questions": [
                        {
                          "headline": {
                            "default": "What would you like to know?"
                          },
                          "id": "ovpy6va1hab7fl12n913zua0",
                          "inputType": "text",
                          "placeholder": {
                            "default": "Type your answer here..."
                          },
                          "required": true,
                          "subheader": {
                            "default": "This is an example survey."
                          },
                          "type": "openText"
                        },
                        {
                          "choices": [
                            {
                              "id": "xpoxuu3sifk1ee8he67ctf5i",
                              "label": {
                                "default": "Sun ☀️"
                              }
                            },
                            {
                              "id": "hnsovcdmxtcbly6tig1az3qc",
                              "label": {
                                "default": "Ocean 🌊"
                              }
                            },
                            {
                              "id": "kcnelzdxknvwo8fq20d3nrr5",
                              "label": {
                                "default": "Palms 🌴"
                              }
                            }
                          ],
                          "headline": {
                            "default": "What's important on vacay?"
                          },
                          "id": "awkn2llljy7a4oulp5t15yec",
                          "required": true,
                          "shuffleOption": "none",
                          "type": "multipleChoiceMulti"
                        }
                      ],
                      "recontactDays": null,
                      "redirectUrl": null,
                      "segment": null,
                      "showLanguageSwitch": null,
                      "singleUse": {
                        "enabled": false,
                        "isEncrypted": true
                      },
                      "status": "inProgress",
                      "styling": null,
                      "surveyClosedMessage": null,
                      "triggers": [],
                      "type": "link",
                      "updatedAt": "2024-08-05T11:09:21.826Z",
                      "welcomeCard": {
                        "enabled": true,
                        "fileUrl": "",
                        "headline": {
                          "default": "Welcome!"
                        },
                        "html": {
                          "default": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span style=\"white-space: pre-wrap;\">Thanks for providing your feedback - let's go!</span></p>"
                        },
                        "showResponseCount": false,
                        "timeToFinish": false
                      },
                      "workspaceId": "clygwxsbh01v5aga1sdien2th"
                    }
                  ]
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:48:18 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get All Surveys",
        "tags": ["Management API - Survey"]
      },
      "post": {
        "description": "Create a survey with granular settings, questions, their types, welcomeCard, thankYouCard, languages, etc right from this API. We'd however recommend you to do this via our Formbricks App with the UI for a better visual experience.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "default": {
                  "value": {
                    "autoClose": null,
                    "autoComplete": null,
                    "autoSelectLanguage": null,
                    "createdBy": null,
                    "delay": 0,
                    "displayLimit": null,
                    "displayOption": "displayOnce",
                    "displayPercentage": null,
                    "endings": [
                      {
                        "buttonLabel": {
                          "default": "Create your own Survey"
                        },
                        "buttonLink": "https://formbricks.com/signup",
                        "headline": {
                          "default": "Thank you!"
                        },
                        "id": "p73t62dgwq0cvmtt6ug0hmfc",
                        "subheader": {
                          "default": "We appreciate your feedback."
                        },
                        "type": "endScreen"
                      }
                    ],
                    "hiddenFields": {
                      "enabled": false,
                      "fieldIds": []
                    },
                    "isVerifyEmailEnabled": false,
                    "languages": [],
                    "name": "Example Survey",
                    "pin": null,
                    "productOverwrites": null,
                    "questions": [
                      {
                        "headline": {
                          "default": "What would you like to know?"
                        },
                        "id": "ovpy6va1hab7fl12n913zua0",
                        "inputType": "text",
                        "placeholder": {
                          "default": "Type your answer here..."
                        },
                        "required": true,
                        "subheader": {
                          "default": "This is an example survey."
                        },
                        "type": "openText"
                      },
                      {
                        "choices": [
                          {
                            "id": "xpoxuu3sifk1ee8he67ctf5i",
                            "label": {
                              "default": "Sun ☀️"
                            }
                          },
                          {
                            "id": "hnsovcdmxtcbly6tig1az3qc",
                            "label": {
                              "default": "Ocean 🌊"
                            }
                          },
                          {
                            "id": "kcnelzdxknvwo8fq20d3nrr5",
                            "label": {
                              "default": "Palms 🌴"
                            }
                          }
                        ],
                        "headline": {
                          "default": "What's important on vacay?"
                        },
                        "id": "awkn2llljy7a4oulp5t15yec",
                        "required": true,
                        "shuffleOption": "none",
                        "type": "multipleChoiceMulti"
                      }
                    ],
                    "recontactDays": null,
                    "redirectUrl": null,
                    "segmentId": null,
                    "showLanguageSwitch": null,
                    "singleUse": {
                      "enabled": false,
                      "isEncrypted": true
                    },
                    "status": "inProgress",
                    "styling": null,
                    "surveyClosedMessage": null,
                    "triggers": [],
                    "type": "link",
                    "welcomeCard": {
                      "enabled": true,
                      "fileUrl": "",
                      "headline": {
                        "default": "Welcome!"
                      },
                      "html": {
                        "default": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span style=\"white-space: pre-wrap;\">Thanks for providing your feedback - let's go!</span></p>"
                      },
                      "showResponseCount": false,
                      "timeToFinish": false
                    },
                    "workspaceId": "{{workspaceId}}"
                  }
                }
              },
              "schema": {
                "properties": {
                  "displayOption": {
                    "enum": ["displayOnce", "displayMultiple", "respondMultiple", "displaySome"],
                    "type": "string"
                  },
                  "languages": {
                    "items": {
                      "properties": {
                        "default": {
                          "type": "boolean"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "language": {
                          "description": "Language of the survey (This language should exist in your workspace)",
                          "enum": ["en", "de", "pt", "etc.."],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "name": {
                    "type": "string"
                  },
                  "questions": {
                    "items": {
                      "properties": {
                        "date": {
                          "properties": {
                            "format": {
                              "enum": ["M-d-y", "d-M-y", "y-M-d"],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "id": {
                          "type": "string"
                        },
                        "inputType": {
                          "enum": ["text", "email", "url", "number", "phone"],
                          "type": "string"
                        },
                        "rating": {
                          "properties": {
                            "range": {
                              "enum": [3, 4, 5, 6, 7, 10],
                              "type": "integer"
                            },
                            "scale": {
                              "enum": ["number", "smiley", "star"],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "shuffleOption": {
                          "enum": ["none", "all", "exceptLast"],
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "address",
                            "cta",
                            "consent",
                            "date",
                            "fileUpload",
                            "matrix",
                            "multipleChoiceMulti",
                            "multipleChoiceSingle",
                            "nps",
                            "openText",
                            "pictureSelection",
                            "rating",
                            "cal",
                            "ranking",
                            "contactInfo",
                            "signature"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "status": {
                    "enum": ["draft", "inProgress", "paused", "completed"],
                    "type": "string"
                  },
                  "type": {
                    "enum": ["link", "app"],
                    "type": "string"
                  },
                  "workspaceId": {
                    "type": "string"
                  }
                },
                "required": ["workspaceId", "name", "type", "status"],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "autoClose": null,
                    "autoComplete": null,
                    "autoSelectLanguage": null,
                    "blocks": [
                      {
                        "elements": [
                          {
                            "headline": {
                              "default": "What would you like to know?"
                            },
                            "id": "ovpy6va1hab7fl12n913zua0",
                            "inputType": "text",
                            "placeholder": {
                              "default": "Type your answer here..."
                            },
                            "required": true,
                            "subheader": {
                              "default": "This is an example survey."
                            },
                            "type": "openText"
                          }
                        ],
                        "id": "qp8j2k0fx3m9wd1c7b5n4tva",
                        "name": "Block 1"
                      },
                      {
                        "elements": [
                          {
                            "choices": [
                              {
                                "id": "xpoxuu3sifk1ee8he67ctf5i",
                                "label": {
                                  "default": "Sun ☀️"
                                }
                              },
                              {
                                "id": "hnsovcdmxtcbly6tig1az3qc",
                                "label": {
                                  "default": "Ocean 🌊"
                                }
                              },
                              {
                                "id": "kcnelzdxknvwo8fq20d3nrr5",
                                "label": {
                                  "default": "Palms 🌴"
                                }
                              }
                            ],
                            "headline": {
                              "default": "What's important on vacay?"
                            },
                            "id": "awkn2llljy7a4oulp5t15yec",
                            "required": true,
                            "shuffleOption": "none",
                            "type": "multipleChoiceMulti"
                          }
                        ],
                        "id": "rk4v9m2dqz7n0fyt8c3b1xws",
                        "name": "Block 2"
                      }
                    ],
                    "createdAt": "2024-08-05T11:08:27.042Z",
                    "createdBy": "clfv1zvij0000ru0gunwpy43a",
                    "delay": 0,
                    "displayLimit": null,
                    "displayOption": "displayOnce",
                    "displayPercentage": null,
                    "endings": [
                      {
                        "buttonLabel": {
                          "default": "Create your own Survey"
                        },
                        "buttonLink": "https://formbricks.com/signup",
                        "headline": {
                          "default": "Thank you!"
                        },
                        "id": "p73t62dgwq0cvmtt6ug0hmfc",
                        "subheader": {
                          "default": "We appreciate your feedback."
                        },
                        "type": "endScreen"
                      }
                    ],
                    "hiddenFields": {
                      "enabled": false,
                      "fieldIds": []
                    },
                    "id": "clzgw1k4i0001mny1unf8eggn",
                    "isVerifyEmailEnabled": false,
                    "languages": [],
                    "name": "Example Survey",
                    "pin": null,
                    "productOverwrites": null,
                    "questions": [
                      {
                        "headline": {
                          "default": "What would you like to know?"
                        },
                        "id": "ovpy6va1hab7fl12n913zua0",
                        "inputType": "text",
                        "placeholder": {
                          "default": "Type your answer here..."
                        },
                        "required": true,
                        "subheader": {
                          "default": "This is an example survey."
                        },
                        "type": "openText"
                      },
                      {
                        "choices": [
                          {
                            "id": "xpoxuu3sifk1ee8he67ctf5i",
                            "label": {
                              "default": "Sun ☀️"
                            }
                          },
                          {
                            "id": "hnsovcdmxtcbly6tig1az3qc",
                            "label": {
                              "default": "Ocean 🌊"
                            }
                          },
                          {
                            "id": "kcnelzdxknvwo8fq20d3nrr5",
                            "label": {
                              "default": "Palms 🌴"
                            }
                          }
                        ],
                        "headline": {
                          "default": "What's important on vacay?"
                        },
                        "id": "awkn2llljy7a4oulp5t15yec",
                        "required": true,
                        "shuffleOption": "none",
                        "type": "multipleChoiceMulti"
                      }
                    ],
                    "recontactDays": null,
                    "redirectUrl": null,
                    "segment": null,
                    "showLanguageSwitch": null,
                    "singleUse": {
                      "enabled": false,
                      "isEncrypted": true
                    },
                    "status": "inProgress",
                    "styling": null,
                    "surveyClosedMessage": null,
                    "triggers": [],
                    "type": "link",
                    "updatedAt": "2024-08-05T11:09:21.826Z",
                    "welcomeCard": {
                      "enabled": true,
                      "fileUrl": "",
                      "headline": {
                        "default": "Welcome!"
                      },
                      "html": {
                        "default": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span style=\"white-space: pre-wrap;\">Thanks for providing your feedback - let's go!</span></p>"
                      },
                      "showResponseCount": false,
                      "timeToFinish": false
                    },
                    "workspaceId": "clygwxsbh01v5aga1sdien2th"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:29:29 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "code": "bad_request",
                  "details": {
                    "hiddenFields.enabled": "Required"
                  },
                  "message": "Fields are missing or incorrectly formatted"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:29:50 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "access-control-allow-headers": {
                "schema": {
                  "example": "Content-Type, Authorization",
                  "type": "string"
                }
              },
              "access-control-allow-methods": {
                "schema": {
                  "example": "GET, POST, PUT, DELETE, OPTIONS",
                  "type": "string"
                }
              },
              "access-control-allow-origin": {
                "schema": {
                  "example": "*",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Create Survey",
        "tags": ["Management API - Survey"]
      }
    },
    "/api/v1/management/surveys/{surveyId}": {
      "delete": {
        "description": "Delete a Survey by its ID. Please use this only when extrememly necessary.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "surveyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "autoClose": null,
                    "autoComplete": null,
                    "autoSelectLanguage": null,
                    "blocks": [
                      {
                        "elements": [
                          {
                            "headline": {
                              "default": "What would you like to know?"
                            },
                            "id": "ovpy6va1hab7fl12n913zua0",
                            "inputType": "text",
                            "placeholder": {
                              "default": "Type your answer here..."
                            },
                            "required": true,
                            "subheader": {
                              "default": "This is an example survey."
                            },
                            "type": "openText"
                          }
                        ],
                        "id": "qp8j2k0fx3m9wd1c7b5n4tva",
                        "name": "Block 1"
                      },
                      {
                        "elements": [
                          {
                            "choices": [
                              {
                                "id": "xpoxuu3sifk1ee8he67ctf5i",
                                "label": {
                                  "default": "Sun ☀️"
                                }
                              },
                              {
                                "id": "hnsovcdmxtcbly6tig1az3qc",
                                "label": {
                                  "default": "Ocean 🌊"
                                }
                              },
                              {
                                "id": "kcnelzdxknvwo8fq20d3nrr5",
                                "label": {
                                  "default": "Palms 🌴"
                                }
                              }
                            ],
                            "headline": {
                              "default": "What's important on vacay?"
                            },
                            "id": "awkn2llljy7a4oulp5t15yec",
                            "required": true,
                            "shuffleOption": "none",
                            "type": "multipleChoiceMulti"
                          }
                        ],
                        "id": "rk4v9m2dqz7n0fyt8c3b1xws",
                        "name": "Block 2"
                      }
                    ],
                    "createdAt": "2024-08-05T11:08:27.042Z",
                    "createdBy": "clfv1zvij0000ru0gunwpy43a",
                    "delay": 0,
                    "displayLimit": null,
                    "displayOption": "displayOnce",
                    "displayPercentage": null,
                    "endings": [
                      {
                        "buttonLabel": {
                          "default": "Create your own Survey"
                        },
                        "buttonLink": "https://formbricks.com/signup",
                        "headline": {
                          "default": "Thank you!"
                        },
                        "id": "p73t62dgwq0cvmtt6ug0hmfc",
                        "subheader": {
                          "default": "We appreciate your feedback."
                        },
                        "type": "endScreen"
                      }
                    ],
                    "hiddenFields": {
                      "enabled": false,
                      "fieldIds": []
                    },
                    "id": "clzgw1k4i0001mny1unf8eggn",
                    "isVerifyEmailEnabled": false,
                    "languages": [],
                    "name": "Example Survey",
                    "pin": null,
                    "productOverwrites": null,
                    "questions": [
                      {
                        "headline": {
                          "default": "What would you like to know?"
                        },
                        "id": "ovpy6va1hab7fl12n913zua0",
                        "inputType": "text",
                        "placeholder": {
                          "default": "Type your answer here..."
                        },
                        "required": true,
                        "subheader": {
                          "default": "This is an example survey."
                        },
                        "type": "openText"
                      },
                      {
                        "choices": [
                          {
                            "id": "xpoxuu3sifk1ee8he67ctf5i",
                            "label": {
                              "default": "Sun ☀️"
                            }
                          },
                          {
                            "id": "hnsovcdmxtcbly6tig1az3qc",
                            "label": {
                              "default": "Ocean 🌊"
                            }
                          },
                          {
                            "id": "kcnelzdxknvwo8fq20d3nrr5",
                            "label": {
                              "default": "Palms 🌴"
                            }
                          }
                        ],
                        "headline": {
                          "default": "What's important on vacay?"
                        },
                        "id": "awkn2llljy7a4oulp5t15yec",
                        "required": true,
                        "shuffleOption": "none",
                        "type": "multipleChoiceMulti"
                      }
                    ],
                    "recontactDays": null,
                    "redirectUrl": null,
                    "segment": null,
                    "showLanguageSwitch": null,
                    "singleUse": {
                      "enabled": false,
                      "isEncrypted": true
                    },
                    "status": "inProgress",
                    "styling": null,
                    "surveyClosedMessage": null,
                    "triggers": [],
                    "type": "link",
                    "updatedAt": "2024-08-05T11:09:21.826Z",
                    "welcomeCard": {
                      "enabled": true,
                      "fileUrl": "",
                      "headline": {
                        "default": "Welcome!"
                      },
                      "html": {
                        "default": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span style=\"white-space: pre-wrap;\">Thanks for providing your feedback - let's go!</span></p>"
                      },
                      "showResponseCount": false,
                      "timeToFinish": false
                    },
                    "workspaceId": "clygwxsbh01v5aga1sdien2th"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:49:26 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "details": {
                    "resource_id": "clusgqpml0000135cxet3y8vh",
                    "resource_type": "Survey"
                  },
                  "message": "Survey not found"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:49:33 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Delete Survey",
        "tags": ["Management API - Survey"]
      },
      "get": {
        "description": "Fetch a survey object based on its ID. The response includes both `questions` (the legacy structure) and `blocks` (the newer structure). `questions` is always derived from `blocks` for backwards compatibility, so integrations may read either field.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "surveyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "autoClose": null,
                    "autoComplete": null,
                    "autoSelectLanguage": null,
                    "blocks": [
                      {
                        "elements": [
                          {
                            "headline": {
                              "default": "What would you like to know?"
                            },
                            "id": "ovpy6va1hab7fl12n913zua0",
                            "inputType": "text",
                            "placeholder": {
                              "default": "Type your answer here..."
                            },
                            "required": true,
                            "subheader": {
                              "default": "This is an example survey."
                            },
                            "type": "openText"
                          }
                        ],
                        "id": "qp8j2k0fx3m9wd1c7b5n4tva",
                        "name": "Block 1"
                      },
                      {
                        "elements": [
                          {
                            "choices": [
                              {
                                "id": "xpoxuu3sifk1ee8he67ctf5i",
                                "label": {
                                  "default": "Sun ☀️"
                                }
                              },
                              {
                                "id": "hnsovcdmxtcbly6tig1az3qc",
                                "label": {
                                  "default": "Ocean 🌊"
                                }
                              },
                              {
                                "id": "kcnelzdxknvwo8fq20d3nrr5",
                                "label": {
                                  "default": "Palms 🌴"
                                }
                              }
                            ],
                            "headline": {
                              "default": "What's important on vacay?"
                            },
                            "id": "awkn2llljy7a4oulp5t15yec",
                            "required": true,
                            "shuffleOption": "none",
                            "type": "multipleChoiceMulti"
                          }
                        ],
                        "id": "rk4v9m2dqz7n0fyt8c3b1xws",
                        "name": "Block 2"
                      }
                    ],
                    "createdAt": "2024-08-05T11:08:27.042Z",
                    "createdBy": "clfv1zvij0000ru0gunwpy43a",
                    "delay": 0,
                    "displayLimit": null,
                    "displayOption": "displayOnce",
                    "displayPercentage": null,
                    "endings": [
                      {
                        "buttonLabel": {
                          "default": "Create your own Survey"
                        },
                        "buttonLink": "https://formbricks.com/signup",
                        "headline": {
                          "default": "Thank you!"
                        },
                        "id": "p73t62dgwq0cvmtt6ug0hmfc",
                        "subheader": {
                          "default": "We appreciate your feedback."
                        },
                        "type": "endScreen"
                      }
                    ],
                    "hiddenFields": {
                      "enabled": false,
                      "fieldIds": []
                    },
                    "id": "clzgw1k4i0001mny1unf8eggn",
                    "isVerifyEmailEnabled": false,
                    "languages": [],
                    "name": "Example Survey",
                    "pin": null,
                    "productOverwrites": null,
                    "questions": [
                      {
                        "headline": {
                          "default": "What would you like to know?"
                        },
                        "id": "ovpy6va1hab7fl12n913zua0",
                        "inputType": "text",
                        "placeholder": {
                          "default": "Type your answer here..."
                        },
                        "required": true,
                        "subheader": {
                          "default": "This is an example survey."
                        },
                        "type": "openText"
                      },
                      {
                        "choices": [
                          {
                            "id": "xpoxuu3sifk1ee8he67ctf5i",
                            "label": {
                              "default": "Sun ☀️"
                            }
                          },
                          {
                            "id": "hnsovcdmxtcbly6tig1az3qc",
                            "label": {
                              "default": "Ocean 🌊"
                            }
                          },
                          {
                            "id": "kcnelzdxknvwo8fq20d3nrr5",
                            "label": {
                              "default": "Palms 🌴"
                            }
                          }
                        ],
                        "headline": {
                          "default": "What's important on vacay?"
                        },
                        "id": "awkn2llljy7a4oulp5t15yec",
                        "required": true,
                        "shuffleOption": "none",
                        "type": "multipleChoiceMulti"
                      }
                    ],
                    "recontactDays": null,
                    "redirectUrl": null,
                    "segment": null,
                    "showLanguageSwitch": null,
                    "singleUse": {
                      "enabled": false,
                      "isEncrypted": true
                    },
                    "status": "inProgress",
                    "styling": null,
                    "surveyClosedMessage": null,
                    "triggers": [],
                    "type": "link",
                    "updatedAt": "2024-08-05T11:09:21.826Z",
                    "welcomeCard": {
                      "enabled": true,
                      "fileUrl": "",
                      "headline": {
                        "default": "Welcome!"
                      },
                      "html": {
                        "default": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span style=\"white-space: pre-wrap;\">Thanks for providing your feedback - let's go!</span></p>"
                      },
                      "showResponseCount": false,
                      "timeToFinish": false
                    },
                    "workspaceId": "clygwxsbh01v5aga1sdien2th"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 11:49:06 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get Survey by ID",
        "tags": ["Management API - Survey"]
      },
      "put": {
        "description": "Update an existing survey with new properties. This is also what we'd recommend you to do from the UI for a better visual feedback.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "surveyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "name": "Example Survey"
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "autoClose": null,
                    "autoComplete": null,
                    "autoSelectLanguage": null,
                    "blocks": [
                      {
                        "elements": [
                          {
                            "headline": {
                              "default": "What would you like to know?"
                            },
                            "id": "ovpy6va1hab7fl12n913zua0",
                            "inputType": "text",
                            "placeholder": {
                              "default": "Type your answer here..."
                            },
                            "required": true,
                            "subheader": {
                              "default": "This is an example survey."
                            },
                            "type": "openText"
                          }
                        ],
                        "id": "qp8j2k0fx3m9wd1c7b5n4tva",
                        "name": "Block 1"
                      },
                      {
                        "elements": [
                          {
                            "choices": [
                              {
                                "id": "xpoxuu3sifk1ee8he67ctf5i",
                                "label": {
                                  "default": "Sun ☀️"
                                }
                              },
                              {
                                "id": "hnsovcdmxtcbly6tig1az3qc",
                                "label": {
                                  "default": "Ocean 🌊"
                                }
                              },
                              {
                                "id": "kcnelzdxknvwo8fq20d3nrr5",
                                "label": {
                                  "default": "Palms 🌴"
                                }
                              }
                            ],
                            "headline": {
                              "default": "What's important on vacay?"
                            },
                            "id": "awkn2llljy7a4oulp5t15yec",
                            "required": true,
                            "shuffleOption": "none",
                            "type": "multipleChoiceMulti"
                          }
                        ],
                        "id": "rk4v9m2dqz7n0fyt8c3b1xws",
                        "name": "Block 2"
                      }
                    ],
                    "createdAt": "2024-08-05T11:08:27.042Z",
                    "createdBy": "clfv1zvij0000ru0gunwpy43a",
                    "delay": 0,
                    "displayLimit": null,
                    "displayOption": "displayOnce",
                    "displayPercentage": null,
                    "endings": [
                      {
                        "buttonLabel": {
                          "default": "Create your own Survey"
                        },
                        "buttonLink": "https://formbricks.com/signup",
                        "headline": {
                          "default": "Thank you!"
                        },
                        "id": "p73t62dgwq0cvmtt6ug0hmfc",
                        "subheader": {
                          "default": "We appreciate your feedback."
                        },
                        "type": "endScreen"
                      }
                    ],
                    "hiddenFields": {
                      "enabled": false,
                      "fieldIds": []
                    },
                    "id": "clzgw1k4i0001mny1unf8eggn",
                    "isVerifyEmailEnabled": false,
                    "languages": [],
                    "name": "Example Survey",
                    "pin": null,
                    "productOverwrites": null,
                    "questions": [
                      {
                        "headline": {
                          "default": "What would you like to know?"
                        },
                        "id": "ovpy6va1hab7fl12n913zua0",
                        "inputType": "text",
                        "placeholder": {
                          "default": "Type your answer here..."
                        },
                        "required": true,
                        "subheader": {
                          "default": "This is an example survey."
                        },
                        "type": "openText"
                      },
                      {
                        "choices": [
                          {
                            "id": "xpoxuu3sifk1ee8he67ctf5i",
                            "label": {
                              "default": "Sun ☀️"
                            }
                          },
                          {
                            "id": "hnsovcdmxtcbly6tig1az3qc",
                            "label": {
                              "default": "Ocean 🌊"
                            }
                          },
                          {
                            "id": "kcnelzdxknvwo8fq20d3nrr5",
                            "label": {
                              "default": "Palms 🌴"
                            }
                          }
                        ],
                        "headline": {
                          "default": "What's important on vacay?"
                        },
                        "id": "awkn2llljy7a4oulp5t15yec",
                        "required": true,
                        "shuffleOption": "none",
                        "type": "multipleChoiceMulti"
                      }
                    ],
                    "recontactDays": null,
                    "redirectUrl": null,
                    "segment": null,
                    "showLanguageSwitch": null,
                    "singleUse": {
                      "enabled": false,
                      "isEncrypted": true
                    },
                    "status": "inProgress",
                    "styling": null,
                    "surveyClosedMessage": null,
                    "triggers": [],
                    "type": "link",
                    "updatedAt": "2024-08-05T11:09:21.826Z",
                    "welcomeCard": {
                      "enabled": true,
                      "fileUrl": "",
                      "headline": {
                        "default": "Welcome!"
                      },
                      "html": {
                        "default": "<p class=\"fb-editor-paragraph\" dir=\"ltr\"><span style=\"white-space: pre-wrap;\">Thanks for providing your feedback - let's go!</span></p>"
                      },
                      "showResponseCount": false,
                      "timeToFinish": false
                    },
                    "workspaceId": "clygwxsbh01v5aga1sdien2th"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:34:09 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "code": "bad_request",
                  "details": {},
                  "message": "Survey with ID cls79mi7j0000hq9o4dd60xsk not found"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:30:32 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Update Survey",
        "tags": ["Management API - Survey"]
      }
    },
    "/api/v1/management/surveys/{surveyId}/singleUseIds": {
      "get": {
        "description": "Generates multiple single use survey links for a survey based on its id.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "surveyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Number of links to generate.",
            "example": 10,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "exclusiveMaximum": false,
              "exclusiveMinimum": false,
              "maximum": 5000,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=ohkj3qx6d0wdo9r3nfpm3bgj",
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=ci6la2lzj63pvsp6x3eqbhff",
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=ge8xc013ad5elmt144h2gpl4",
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=zqh6x0judrawhasr4pmywbkb",
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=mpqm14y2ub8utokxci6phr1y",
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=g5ej7f8w9tc87xkvefeajoxa",
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=av7swj3jlld97ejbw7lymbau",
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=sub2yfok3sdsje2dddzf0l5d",
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=hbiee77q8qunti3lxmtoq7w9",
                    "https://app.formbricks.com/s/clzqym2l300015ycm88weliq0?suId=eo5kb2suapyks59j84egijso"
                  ]
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Mon, 19 Aug 2024 12:55:21 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "example": "nosniff",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "code": "bad_request",
                  "details": {},
                  "message": "Single use links are not enabled for this survey"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Mon, 19 Aug 2024 12:58:34 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "example": "nosniff",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get SingleUse Links",
        "tags": ["Management API - Survey"]
      }
    },
    "/api/v1/webhooks": {
      "get": {
        "description": "Retrieve a list of all webhooks for the current workspace",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "createdAt": "2024-04-23T12:35:45.326Z",
                      "id": "clvcdd8oe000nxz1zhz6q9z3l",
                      "name": null,
                      "source": "user",
                      "surveyIds": [],
                      "triggers": ["responseCreated", "responseUpdated", "responseFinished"],
                      "updatedAt": "2024-04-23T12:35:45.326Z",
                      "url": "https://eoy8o887lmsqmhz.m.pipedream.net",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    {
                      "createdAt": "2024-04-23T12:36:07.100Z",
                      "id": "clvcddph9000oxz1zsnjhvllw",
                      "name": null,
                      "source": "user",
                      "surveyIds": [],
                      "triggers": ["responseCreated", "responseUpdated", "responseFinished"],
                      "updatedAt": "2024-04-23T12:36:07.100Z",
                      "url": "https://eoy8o887lmsqmhz.m.pipedream.net",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    },
                    {
                      "createdAt": "2024-04-23T12:36:56.507Z",
                      "id": "clvcderln000pxz1z95jqj0qw",
                      "name": null,
                      "source": "user",
                      "surveyIds": [],
                      "triggers": ["responseCreated", "responseUpdated", "responseFinished"],
                      "updatedAt": "2024-04-23T12:36:56.507Z",
                      "url": "https://eoy8o887lmsqmhz.m.pipedream.net",
                      "workspaceId": "clurwouax000azffxt7n5unn3"
                    }
                  ]
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:37:25 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get All Webhooks",
        "tags": ["Management API - Webhook"]
      },
      "post": {
        "description": "Create a new webhook right from the API and see it active right away!",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "default": {
                  "value": {
                    "triggers": ["responseCreated", "responseUpdated", "responseFinished"],
                    "url": "https://eoy8o887lmsqmhz.m.pipedream.net"
                  }
                }
              },
              "schema": {
                "properties": {
                  "name": {
                    "description": "Optional name for the webhook",
                    "type": "string"
                  },
                  "surveyIds": {
                    "description": "Optional list of survey IDs to filter webhook calls",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "triggers": {
                    "description": "List of events that trigger this webhook",
                    "items": {
                      "enum": ["responseCreated", "responseUpdated", "responseFinished"],
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "url": {
                    "description": "The webhook URL to call when triggers are fired",
                    "type": "string"
                  }
                },
                "required": ["url", "triggers"],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-23T12:35:45.326Z",
                    "id": "clvcdd8oe000nxz1zhz6q9z3l",
                    "name": null,
                    "source": "user",
                    "surveyIds": [],
                    "triggers": ["responseCreated", "responseUpdated", "responseFinished"],
                    "updatedAt": "2024-04-23T12:35:45.326Z",
                    "url": "https://eoy8o887lmsqmhz.m.pipedream.net",
                    "workspaceId": "clurwouax000azffxt7n5unn3"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:35:45 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Create Webhook",
        "tags": ["Management API - Webhook"]
      }
    },
    "/api/v1/webhooks/{webhookId}": {
      "delete": {
        "description": "Delete an existing webhook by provifding it's ID. It will immediately apply and not trigger again.",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "webhookId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-23T12:35:45.326Z",
                    "id": "clvcdd8oe000nxz1zhz6q9z3l",
                    "name": null,
                    "source": "user",
                    "surveyIds": [],
                    "triggers": ["responseCreated", "responseUpdated", "responseFinished"],
                    "updatedAt": "2024-04-23T12:35:45.326Z",
                    "url": "https://eoy8o887lmsqmhz.m.pipedream.net",
                    "workspaceId": "clurwouax000azffxt7n5unn3"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:38:57 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "details": {
                    "resource_id": "clvcdd8oe000nxz1zhz6q9z3l",
                    "resource_type": "Webhook"
                  },
                  "message": "Webhook not found"
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:39:22 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Delete Webhook",
        "tags": ["Management API - Webhook"]
      },
      "get": {
        "description": "Get a specific webhook object based on its ID",
        "parameters": [
          {
            "example": "{{apiKey}}",
            "in": "header",
            "name": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "webhookId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2024-04-23T12:35:45.326Z",
                    "id": "clvcdd8oe000nxz1zhz6q9z3l",
                    "name": null,
                    "source": "user",
                    "surveyIds": [],
                    "triggers": ["responseCreated", "responseUpdated", "responseFinished"],
                    "updatedAt": "2024-04-23T12:35:45.326Z",
                    "url": "https://eoy8o887lmsqmhz.m.pipedream.net",
                    "workspaceId": "clurwouax000azffxt7n5unn3"
                  }
                },
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 12:38:29 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "cache-control": {
                "schema": {
                  "example": "private, no-store",
                  "type": "string"
                }
              },
              "content-type": {
                "schema": {
                  "example": "application/json",
                  "type": "string"
                }
              },
              "vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Get Webhook",
        "tags": ["Management API - Webhook"]
      }
    },
    "/api/v2/client/{workspaceId}/creatives/events": {
      "post": {
        "description": "Counts the Impressions and Clicks of creatives on one page view. The web SDK sends it as `text/plain` with `keepalive`, 2 s after the first event of a page or when the page is hidden. An Impression is one page view on which a creative showed; a Click is one press that opened its Destination. The answer is always 204 with no body: requests from bots, over the IP rate limit (600 per minute) or with a body of another shape count nothing, and events for creatives the workspace hasn't published (or has archived) are dropped. Counts reach `GET /api/v3/creatives/{creativeId}/stats` within about a minute, through the BullMQ worker. Source of truth for the body: `TCreativeEventsBody` in `packages/creatives/src/events.ts`.",
        "parameters": [
          {
            "in": "path",
            "name": "workspaceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "text/plain": {
              "schema": {
                "example": {
                  "deviceType": "phone",
                  "events": [
                    { "creativeId": "clcr1234567890123456789012", "type": "impression" },
                    { "creativeId": "clcr1234567890123456789012", "type": "click" }
                  ],
                  "page": "example.com/pricing"
                },
                "properties": {
                  "deviceType": {
                    "enum": ["phone", "tablet", "desktop"],
                    "type": "string"
                  },
                  "events": {
                    "items": {
                      "properties": {
                        "creativeId": {
                          "type": "string"
                        },
                        "type": {
                          "enum": ["impression", "click"],
                          "type": "string"
                        }
                      },
                      "required": ["creativeId", "type"],
                      "type": "object"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "type": "array"
                  },
                  "page": {
                    "description": "Host and path, without query string or hash.",
                    "maxLength": 512,
                    "type": "string"
                  }
                },
                "required": ["page", "deviceType", "events"],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Always, whether or not anything was counted."
          }
        },
        "summary": "Count creative events",
        "tags": ["Client API - Creatives"]
      }
    },
    "/health": {
      "get": {
        "description": "Formbricks' Health Check endpoint to make sure the App & the Database are connected with each other & up!",
        "responses": {
          "200": {
            "content": {
              "text/plain": {
                "example": "<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charSet=\"utf-8\"/>\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n        <link rel=\"stylesheet\" href=\"/_next/static/css/css-app_globals_css.css?v=1713855830239\" data-precedence=\"next_static/css/css-app_globals_css.css\"/>\n        <link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/webpack.js?v=1713855830239\"/>\n        <script src=\"/_next/static/chunks/main-app.js?v=1713855830239\" async=\"\"></script>\n        <script src=\"/_next/static/chunks/app-pages-internals.js\" async=\"\"></script>\n        <script src=\"/_next/static/chunks/app/health/error.js\" async=\"\"></script>\n        <script src=\"/_next/static/chunks/app/error.js\" async=\"\"></script>\n        <script src=\"/_next/static/chunks/app/not-found.js\" async=\"\"></script>\n        <script src=\"/_next/static/chunks/app/global-error.js\" async=\"\"></script>\n        <title>Formbricks</title>\n        <meta name=\"description\" content=\"Open-Source Survey Suite\"/>\n        <meta name=\"robots\" content=\"noindex, nofollow\"/>\n        <meta name=\"googlebot\" content=\"noindex, nofollow\"/>\n        <link rel=\"icon\" href=\"/favicon.ico\" type=\"image/x-icon\" sizes=\"48x48\"/>\n        <script src=\"/_next/static/chunks/polyfills.js\" noModule=\"\"></script>\n    </head>\n    <body class=\"flex h-screen flex-col\">\n        <div class=\"mx-auto flex h-full max-w-xl flex-col items-center justify-center text-center\">\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"40\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"green\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-badge-check \">\n                <path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\"></path>\n                <path d=\"m9 12 2 2 4-4\"></path>\n            </svg>\n            <p class=\"text-md mt-4 font-bold text-zinc-900\">All systems are up and running</p>\n        </div>\n        <script src=\"/_next/static/chunks/webpack.js?v=1713855830239\" async=\"\"></script>\n        <script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script>\n        <script>self.__next_f.push([1,\"1:HL[\\\"/_next/static/css/css-app_globals_css.css?v=1713855830239\\\",\\\"style\\\"]\\n0:D{\\\"name\\\":\\\"rQ\\\",\\\"env\\\":\\\"Server\\\"}\\n\"])</script>\n        <script>self.__next_f.push([1,\"2:I[\\\"(app-pages-browser)/../../node_modules/next/dist/client/components/app-router.js\\\",[\\\"app-pages-internals\\\",\\\"static/chunks/app-pages-internals.js\\\"],\\\"\\\"]\\n5:I[\\\"(app-pages-browser)/../../node_modules/next/dist/client/components/layout-router.js\\\",[\\\"app-pages-internals\\\",\\\"static/chunks/app-pages-internals.js\\\"],\\\"\\\"]\\n6:I[\\\"(app-pages-browser)/./app/health/error.tsx\\\",[\\\"app/health/error\\\",\\\"static/chunks/app/health/error.js\\\"],\\\"default\\\"]\\n7:I[\\\"(app-pages-browser)/../../node_modules/next/dist/client/components/render-from-template-context.js\\\",[\\\"app-pages-internals\\\",\\\"static/chunks/app-pages-internals.js\\\"],\\\"\\\"]\\n9:I[\\\"(app-pages-browser)/./app/error.tsx\\\",[\\\"app/error\\\",\\\"static/chunks/app/error.js\\\"],\\\"default\\\"]\\nb:I[\\\"(app-pages-browser)/../../node_modules/next/dist/client/link.js\\\",[\\\"app/not-found\\\",\\\"static/chunks/app/not-found.js\\\"],\\\"\\\"]\\ne:I[\\\"(app-pages-browser)/./app/global-error.tsx\\\",[\\\"app/global-error\\\",\\\"static/chunks/app/global-error.js\\\"],\\\"default\\\"]\\n3:D{\\\"name\\\":\\\"\\\",\\\"env\\\":\\\"Server\\\"}\\n4:D{\\\"name\\\":\\\"HealthPage\\\",\\\"env\\\":\\\"Server\\\"}\\n8:D{\\\"name\\\":\\\"RootLayout\\\",\\\"env\\\":\\\"Server\\\"}\\na:D{\\\"name\\\":\\\"NotFound\\\",\\\"env\\\":\\\"Server\\\"}\\nc:D{\\\"name\\\":\\\"Button\\\",\\\"env\\\":\\\"Server\\\"}\\nc:[\\\"$\\\",\\\"button\\\",null,{\\\"className\\\":\\\"inline-flex items-center appearance-none px-6 py-3 text-sm font-medium rounded-md relative text-white bg-brand-dark hover:bg-brand focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-slate-900 mt-8\\\",\\\"children\\\":[\\\"$undefined\\\",\\\"Back to home\\\",false,\\\"$undefined\\\"],\\\"disabled\\\":false,\\\"onClick\\\":\\\"$undefined\\\"}]\\na:[\\\"$\\\",\\\"div\\\",null,{\\\"className\\\":\\\"mx-auto flex h-full max-w-xl flex-col items-center justify-center py-16 text-center\\\",\\\"children\\\":[[\\\"$\\\",\\\"p\\\",null,{\\\"className\\\":\\\"text-sm font-semibold text-zinc-900 dark:text-white\\\",\\\"children\\\":\\\"404\\\"}],[\\\"$\\\",\\\"h1\\\",null,{\\\"className\\\":\\\"mt-2 text-2xl font-bold text-zinc-900 dark:text-white\\\",\\\"children\\\":\\\"Page not found\\\"}],[\\\"$\\\",\\\"p\\\",null,{\\\"className\\\":\\\"mt-2 text-base text-zinc-600 dark:text-zinc-400\\\",\\\"children\\\":\\\"Sorry, we couldn't find the page you're looking for.\\\"}],[\\\"$\\\",\\\"$Lb\\\",null,{\\\"href\\\":\\\"/\\\",\\\"children\\\":\\\"$c\\\"}]]}]\\n8:[\\\"$\\\",\\\"html\\\",null,{\\\"lang\\\":\\\"en\\\",\\\"child\"])</script>\n        <script>self.__next_f.push([1,\"ren\\\":[false,[\\\"$\\\",\\\"body\\\",null,{\\\"className\\\":\\\"flex h-screen flex-col\\\",\\\"children\\\":[\\\"$\\\",\\\"$L5\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\"],\\\"error\\\":\\\"$9\\\",\\\"errorStyles\\\":[],\\\"errorScripts\\\":[],\\\"template\\\":[\\\"$\\\",\\\"$L7\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$a\\\",\\\"notFoundStyles\\\":[],\\\"styles\\\":null}]}]]}]\\nd:D{\\\"name\\\":\\\"\\\",\\\"env\\\":\\\"Server\\\"}\\nf:[]\\n0:[[[\\\"$\\\",\\\"link\\\",\\\"0\\\",{\\\"rel\\\":\\\"stylesheet\\\",\\\"href\\\":\\\"/_next/static/css/css-app_globals_css.css?v=1713855830239\\\",\\\"precedence\\\":\\\"next_static/css/css-app_globals_css.css\\\",\\\"crossOrigin\\\":\\\"$undefined\\\"}]],[\\\"$\\\",\\\"$L2\\\",null,{\\\"buildId\\\":\\\"development\\\",\\\"assetPrefix\\\":\\\"\\\",\\\"initialCanonicalUrl\\\":\\\"/health\\\",\\\"initialTree\\\":[\\\"\\\",{\\\"children\\\":[\\\"health\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]}]},\\\"$undefined\\\",\\\"$undefined\\\",true],\\\"initialSeedData\\\":[\\\"\\\",{\\\"children\\\":[\\\"health\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{},[[\\\"$L3\\\",\\\"$L4\\\"],null],null]},[\\\"$\\\",\\\"$L5\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\",\\\"health\\\",\\\"children\\\"],\\\"error\\\":\\\"$6\\\",\\\"errorStyles\\\":[],\\\"errorScripts\\\":[],\\\"template\\\":[\\\"$\\\",\\\"$L7\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$undefined\\\",\\\"notFoundStyles\\\":\\\"$undefined\\\",\\\"styles\\\":null}],null]},[\\\"$8\\\",null],null],\\\"couldBeIntercepted\\\":false,\\\"initialHead\\\":[false,\\\"$Ld\\\"],\\\"globalErrorComponent\\\":\\\"$e\\\",\\\"missingSlots\\\":\\\"$Wf\\\"}]]\\n\"])</script>\n        <script>self.__next_f.push([1,\"d:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"title\\\",\\\"2\\\",{\\\"children\\\":\\\"Formbricks\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"3\\\",{\\\"name\\\":\\\"description\\\",\\\"content\\\":\\\"Open-Source Survey Suite\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"4\\\",{\\\"name\\\":\\\"robots\\\",\\\"content\\\":\\\"noindex, nofollow\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"5\\\",{\\\"name\\\":\\\"googlebot\\\",\\\"content\\\":\\\"noindex, nofollow\\\"}],[\\\"$\\\",\\\"link\\\",\\\"6\\\",{\\\"rel\\\":\\\"icon\\\",\\\"href\\\":\\\"/favicon.ico\\\",\\\"type\\\":\\\"image/x-icon\\\",\\\"sizes\\\":\\\"48x48\\\"}]]\\n3:null\\n10:D{\\\"name\\\":\\\"BadgeCheck\\\",\\\"env\\\":\\\"Server\\\"}\\n10:[\\\"$\\\",\\\"svg\\\",null,{\\\"xmlns\\\":\\\"http://www.w3.org/2000/svg\\\",\\\"width\\\":24,\\\"height\\\":40,\\\"viewBox\\\":\\\"0 0 24 24\\\",\\\"fill\\\":\\\"none\\\",\\\"stroke\\\":\\\"green\\\",\\\"strokeWidth\\\":2,\\\"strokeLinecap\\\":\\\"round\\\",\\\"strokeLinejoin\\\":\\\"round\\\",\\\"className\\\":\\\"lucide lucide-badge-check \\\",\\\"children\\\":[[\\\"$\\\",\\\"path\\\",\\\"3c2336\\\",{\\\"d\\\":\\\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\\\"}],[\\\"$\\\",\\\"path\\\",\\\"dzmm74\\\",{\\\"d\\\":\\\"m9 12 2 2 4-4\\\"}],\\\"$undefined\\\"]}]\\n4:[\\\"$\\\",\\\"div\\\",null,{\\\"className\\\":\\\"mx-auto flex h-full max-w-xl flex-col items-center justify-center text-center\\\",\\\"children\\\":[\\\"$10\\\",[\\\"$\\\",\\\"p\\\",null,{\\\"className\\\":\\\"text-md mt-4 font-bold text-zinc-900\\\",\\\"children\\\":\\\"All systems are up and running\\\"}]]}]\\n\"])</script>\n    </body>\n</html>",
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "example": "no-store, must-revalidate",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Content-Encoding": {
                "schema": {
                  "example": "gzip",
                  "type": "string"
                }
              },
              "Content-Type": {
                "schema": {
                  "example": "text/html; charset=utf-8",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:03:50 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "Vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch, Accept-Encoding",
                  "type": "string"
                }
              },
              "X-Powered-By": {
                "schema": {
                  "example": "Next.js",
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "text/plain": {
                "example": "<!DOCTYPE html>\n<html id=\"__next_error__\">\n    <head>\n        <meta charSet=\"utf-8\"/>\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n        <link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/webpack.js\"/>\n        <script src=\"/_next/static/chunks/main-app.js\" async=\"\"></script>\n        <script src=\"/_next/static/chunks/app-pages-internals.js\" async=\"\"></script>\n        <script src=\"/_next/static/chunks/app/global-error.js\" async=\"\"></script>\n        <meta name=\"robots\" content=\"noindex\"/>\n        <meta name=\"next-error\" content=\"not-found\"/>\n        <title>Formbricks</title>\n        <meta name=\"description\" content=\"Open-Source Survey Suite\"/>\n        <meta name=\"robots\" content=\"noindex, nofollow\"/>\n        <meta name=\"googlebot\" content=\"noindex, nofollow\"/>\n        <link rel=\"icon\" href=\"/favicon.ico\" type=\"image/x-icon\" sizes=\"48x48\"/>\n        <script src=\"/_next/static/chunks/polyfills.js\" noModule=\"\"></script>\n    </head>\n    <body>\n        <script src=\"/_next/static/chunks/webpack.js\" async=\"\"></script>\n        <script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script>\n        <script>self.__next_f.push([1,\"1:HL[\\\"/_next/static/css/css-app_globals_css.css?v=1713855907820\\\",\\\"style\\\"]\\n0:D{\\\"name\\\":\\\"rQ\\\",\\\"env\\\":\\\"Server\\\"}\\n\"])</script>\n        <script>self.__next_f.push([1,\"2:I[\\\"(app-pages-browser)/../../node_modules/next/dist/client/components/app-router.js\\\",[\\\"app-pages-internals\\\",\\\"static/chunks/app-pages-internals.js\\\"],\\\"\\\"]\\n5:I[\\\"(app-pages-browser)/../../node_modules/next/dist/client/components/layout-router.js\\\",[\\\"app-pages-internals\\\",\\\"static/chunks/app-pages-internals.js\\\"],\\\"\\\"]\\n6:I[\\\"(app-pages-browser)/./app/health/error.tsx\\\",[\\\"app/health/error\\\",\\\"static/chunks/app/health/error.js\\\"],\\\"default\\\"]\\n7:I[\\\"(app-pages-browser)/../../node_modules/next/dist/client/components/render-from-template-context.js\\\",[\\\"app-pages-internals\\\",\\\"static/chunks/app-pages-internals.js\\\"],\\\"\\\"]\\n9:I[\\\"(app-pages-browser)/./app/error.tsx\\\",[\\\"app/error\\\",\\\"static/chunks/app/error.js\\\"],\\\"default\\\"]\\nb:I[\\\"(app-pages-browser)/../../node_modules/next/dist/client/link.js\\\",[\\\"app/not-found\\\",\\\"static/chunks/app/not-found.js\\\"],\\\"\\\"]\\ne:I[\\\"(app-pages-browser)/./app/global-error.tsx\\\",[\\\"app/global-error\\\",\\\"static/chunks/app/global-error.js\\\"],\\\"default\\\"]\\n3:D{\\\"name\\\":\\\"\\\",\\\"env\\\":\\\"Server\\\"}\\n4:D{\\\"name\\\":\\\"HealthPage\\\",\\\"env\\\":\\\"Server\\\"}\\n8:D{\\\"name\\\":\\\"RootLayout\\\",\\\"env\\\":\\\"Server\\\"}\\na:D{\\\"name\\\":\\\"NotFound\\\",\\\"env\\\":\\\"Server\\\"}\\nc:D{\\\"name\\\":\\\"Button\\\",\\\"env\\\":\\\"Server\\\"}\\nc:[\\\"$\\\",\\\"button\\\",null,{\\\"className\\\":\\\"inline-flex items-center appearance-none px-6 py-3 text-sm font-medium rounded-md relative text-white bg-brand-dark hover:bg-brand focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-slate-900 mt-8\\\",\\\"children\\\":[\\\"$undefined\\\",\\\"Back to home\\\",false,\\\"$undefined\\\"],\\\"disabled\\\":false,\\\"onClick\\\":\\\"$undefined\\\"}]\\na:[\\\"$\\\",\\\"div\\\",null,{\\\"className\\\":\\\"mx-auto flex h-full max-w-xl flex-col items-center justify-center py-16 text-center\\\",\\\"children\\\":[[\\\"$\\\",\\\"p\\\",null,{\\\"className\\\":\\\"text-sm font-semibold text-zinc-900 dark:text-white\\\",\\\"children\\\":\\\"404\\\"}],[\\\"$\\\",\\\"h1\\\",null,{\\\"className\\\":\\\"mt-2 text-2xl font-bold text-zinc-900 dark:text-white\\\",\\\"children\\\":\\\"Page not found\\\"}],[\\\"$\\\",\\\"p\\\",null,{\\\"className\\\":\\\"mt-2 text-base text-zinc-600 dark:text-zinc-400\\\",\\\"children\\\":\\\"Sorry, we couldn't find the page you're looking for.\\\"}],[\\\"$\\\",\\\"$Lb\\\",null,{\\\"href\\\":\\\"/\\\",\\\"children\\\":\\\"$c\\\"}]]}]\\n8:[\\\"$\\\",\\\"html\\\",null,{\\\"lang\\\":\\\"en\\\",\\\"child\"])</script>\n        <script>self.__next_f.push([1,\"ren\\\":[false,[\\\"$\\\",\\\"body\\\",null,{\\\"className\\\":\\\"flex h-screen flex-col\\\",\\\"children\\\":[\\\"$\\\",\\\"$L5\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\"],\\\"error\\\":\\\"$9\\\",\\\"errorStyles\\\":[],\\\"errorScripts\\\":[],\\\"template\\\":[\\\"$\\\",\\\"$L7\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$a\\\",\\\"notFoundStyles\\\":[],\\\"styles\\\":null}]}]]}]\\nd:D{\\\"name\\\":\\\"\\\",\\\"env\\\":\\\"Server\\\"}\\nf:[]\\n0:[[[\\\"$\\\",\\\"link\\\",\\\"0\\\",{\\\"rel\\\":\\\"stylesheet\\\",\\\"href\\\":\\\"/_next/static/css/css-app_globals_css.css?v=1713855907820\\\",\\\"precedence\\\":\\\"next_static/css/css-app_globals_css.css\\\",\\\"crossOrigin\\\":\\\"$undefined\\\"}]],[\\\"$\\\",\\\"$L2\\\",null,{\\\"buildId\\\":\\\"development\\\",\\\"assetPrefix\\\":\\\"\\\",\\\"initialCanonicalUrl\\\":\\\"/health\\\",\\\"initialTree\\\":[\\\"\\\",{\\\"children\\\":[\\\"health\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]}]},\\\"$undefined\\\",\\\"$undefined\\\",true],\\\"initialSeedData\\\":[\\\"\\\",{\\\"children\\\":[\\\"health\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{},[[\\\"$L3\\\",\\\"$L4\\\"],null],null]},[\\\"$\\\",\\\"$L5\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"segmentPath\\\":[\\\"children\\\",\\\"health\\\",\\\"children\\\"],\\\"error\\\":\\\"$6\\\",\\\"errorStyles\\\":[],\\\"errorScripts\\\":[],\\\"template\\\":[\\\"$\\\",\\\"$L7\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$undefined\\\",\\\"notFoundStyles\\\":\\\"$undefined\\\",\\\"styles\\\":null}],null]},[\\\"$8\\\",null],null],\\\"couldBeIntercepted\\\":false,\\\"initialHead\\\":[false,\\\"$Ld\\\"],\\\"globalErrorComponent\\\":\\\"$e\\\",\\\"missingSlots\\\":\\\"$Wf\\\"}]]\\n\"])</script>\n        <script>self.__next_f.push([1,\"d:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"title\\\",\\\"2\\\",{\\\"children\\\":\\\"Formbricks\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"3\\\",{\\\"name\\\":\\\"description\\\",\\\"content\\\":\\\"Open-Source Survey Suite\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"4\\\",{\\\"name\\\":\\\"robots\\\",\\\"content\\\":\\\"noindex, nofollow\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"5\\\",{\\\"name\\\":\\\"googlebot\\\",\\\"content\\\":\\\"noindex, nofollow\\\"}],[\\\"$\\\",\\\"link\\\",\\\"6\\\",{\\\"rel\\\":\\\"icon\\\",\\\"href\\\":\\\"/favicon.ico\\\",\\\"type\\\":\\\"image/x-icon\\\",\\\"sizes\\\":\\\"48x48\\\"}]]\\n3:null\\n10:D{\\\"name\\\":\\\"BadgeCheck\\\",\\\"env\\\":\\\"Server\\\"}\\n10:[\\\"$\\\",\\\"svg\\\",null,{\\\"xmlns\\\":\\\"http://www.w3.org/2000/svg\\\",\\\"width\\\":24,\\\"height\\\":40,\\\"viewBox\\\":\\\"0 0 24 24\\\",\\\"fill\\\":\\\"none\\\",\\\"stroke\\\":\\\"green\\\",\\\"strokeWidth\\\":2,\\\"strokeLinecap\\\":\\\"round\\\",\\\"strokeLinejoin\\\":\\\"round\\\",\\\"className\\\":\\\"lucide lucide-badge-check \\\",\\\"children\\\":[[\\\"$\\\",\\\"path\\\",\\\"3c2336\\\",{\\\"d\\\":\\\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\\\"}],[\\\"$\\\",\\\"path\\\",\\\"dzmm74\\\",{\\\"d\\\":\\\"m9 12 2 2 4-4\\\"}],\\\"$undefined\\\"]}]\\n4:[\\\"$\\\",\\\"div\\\",null,{\\\"className\\\":\\\"mx-auto flex h-full max-w-xl flex-col items-center justify-center text-center\\\",\\\"children\\\":[\\\"$10\\\",[\\\"$\\\",\\\"p\\\",null,{\\\"className\\\":\\\"text-md mt-4 font-bold text-zinc-900\\\",\\\"children\\\":\\\"All systems are up and running\\\"}]]}]\\n\"])</script>\n    </body>\n</html>",
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "example": "no-store, must-revalidate",
                  "type": "string"
                }
              },
              "Connection": {
                "schema": {
                  "example": "keep-alive",
                  "type": "string"
                }
              },
              "Content-Encoding": {
                "schema": {
                  "example": "gzip",
                  "type": "string"
                }
              },
              "Content-Type": {
                "schema": {
                  "example": "text/html; charset=utf-8",
                  "type": "string"
                }
              },
              "Date": {
                "schema": {
                  "example": "Tue, 23 Apr 2024 07:05:08 GMT",
                  "type": "string"
                }
              },
              "Keep-Alive": {
                "schema": {
                  "example": "timeout=5",
                  "type": "string"
                }
              },
              "Transfer-Encoding": {
                "schema": {
                  "example": "chunked",
                  "type": "string"
                }
              },
              "Vary": {
                "schema": {
                  "example": "RSC, Next-Router-State-Tree, Next-Router-Prefetch, Accept-Encoding",
                  "type": "string"
                }
              },
              "X-Powered-By": {
                "schema": {
                  "example": "Next.js",
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Health Check",
        "tags": ["Health"]
      }
    }
  },
  "servers": [
    {
      "url": "https://{baseurl}",
      "variables": {
        "baseurl": {
          "default": "app.formbricks.com"
        }
      }
    }
  ],
  "tags": [
    {
      "description": "The Public Client API is designed for the JavaScript SDK and does not require authentication. It's primarily used for creating persons, sessions, and responses within the Formbricks platform. This API is ideal for client-side interactions, as it doesn't expose sensitive information.\n- Displays API - Mark Survey as Displayed or Responded for a Person\n- Responses API - Create & update responses for a survey\n- Workspace API - Get the workspace state to be used in Formbricks SDKs\n- Contacts API - Identify & update contacts (e.g. attributes)\n- User API - Identify & track users based on their attributes, device type, etc.",
      "name": "Client API"
    },
    {
      "description": "Displays are metrics used to measure the number of times a survey was viewed both by unidentified or identified users.",
      "name": "Client API - Display"
    },
    {
      "description": "Responses are captured whenever a user fills in your survey either partially or completely.",
      "name": "Client API - Response"
    },
    {
      "description": "Get the workspace state to be used in Formbricks SDKs",
      "name": "Client API - Environment"
    },
    {
      "description": "Contacts are the identified users on Formbricks app that get initated when you pass a userId and have user activation enabled. This now allows you to track & show them targeted surveys based on their attributes, device type, etc.",
      "name": "Client API - Contacts"
    },
    {
      "description": "Users are the identified users on Formbricks app that get initated when you pass a userId and have user activation enabled. This now allows you to track & show them targeted surveys based on their attributes, device type, etc. Currently, this api is only being used in the react-native sdk.",
      "name": "Client API - User"
    },
    {
      "description": "The Management API provides access to all data and settings that are visible in the Formbricks App. This API requires a personal API Key for authentication, which can be generated in the Settings section of the Formbricks App. With the Management API, you can manage your Formbricks account programmatically, accessing and modifying data and settings as needed.\n\n> **For Auth:** we use the `x-api-key` header \n  \n\nAPI requests made to the Management API are authorized using a personal API key. This key grants only its configured permissions and workspace access. It's essential to keep your API key secure and not share it with others.\n\nTo generate, store, or delete an API key, follow the instructions provided on the following page [API Key](https://formbricks.com/docs/api-reference/generate-key).",
      "name": "Management API"
    },
    {
      "description": "Action Classes allow you to set behaviour methods such as when a user clicks on a buy now button, or when a user leaves the page, etc. These allow you to trigger specific surveys to these users.\n\nMethods: Get All, Get, Create, Update, and Delete Action Classes",
      "name": "Management API - Action Class"
    },
    {
      "description": "Attribute Classes help you categorize attributes so that you can target users based on specific values of their attributes. They are associated with a Person. Read more [here](https://formbricks.com/docs/in-app-surveys/attributes)",
      "name": "Management API - Attribute Class"
    },
    {
      "description": "The Contacts API allows you to retrieve information about contacts in your workspace. Contacts represent users who have interacted with your surveys or forms.",
      "name": "Management API - Contacts"
    },
    {
      "description": "The Contact Attributes API allows you to retrieve information about attributes associated with contacts in your workspace. These attributes can include custom properties and values assigned to your contacts.",
      "name": "Management API - Contact Attributes"
    },
    {
      "description": "The Contact Attribute Keys API allows you to retrieve information about the defined attribute keys in your workspace. These keys define the structure and properties that can be assigned to contacts, such as email, name, or custom attributes.",
      "name": "Management API - Contact Attribute Keys"
    },
    {
      "description": "Retrieve Account Information",
      "name": "Management API - Me"
    },
    {
      "description": "Enable User Identification in Formbricks to granularly target users to show surveys to without spraying across them. This API will help you utilise Formbricks User Identification to its maximum.\n\nMethods: Get All, Get, and Delete Persons",
      "name": "Management API - People"
    },
    {
      "description": "Responses are what your users fill in as answers to a survey. Use this cautiosly and make sure you handle this data carefully.\n\nMethods allowed: Get All, Get by Survey, Get, Update, and Delete Responses",
      "name": "Management API - Response"
    },
    {
      "description": "Surveys are the core of user data & feedback collection. We have various types of surveys to cater to you:\n\n- In-App Surveys\n    \n- Website Surveys\n    \n- Link Surveys\n    \n\nCreate surveys & then trigger them as per your actions & attribute filterings that you have set to make the most of them.\n\nMethods allowed: Get All, Get, Create, Update, and Delete Surveys",
      "name": "Management API - Survey"
    },
    {
      "description": "Formbricks' Webhook API offers a powerful interface for interacting with webhooks. Webhooks allow you to receive real-time HTTP notifications of changes to specific objects in the Formbricks workspace.\n\nThe behavior of the webhooks is determined by their trigger settings. The trigger determines which updates the webhook sends. Current available triggers include:\n\n- \"responseCreated\"\n    \n- \"responseUpdated\", and\n    \n- \"responseFinished\".\n    \n\nThese APIs are designed to facilitate seamless integration of Formbricks with third-party systems. By making use of our webhook API, you can automate the process of sending data to these systems whenever significant events occur within your Formbricks workspace.\n\n  \n\nMethods allowed: Get All, Get ,Create, and Delete Webhooks",
      "name": "Management API - Webhook"
    }
  ]
}
