GET
/
api
/
v1
/
client
/
{environmentId}
/
environment
curl --request GET \
  --url http:///%7B{baseurl}%7D/api/v1/client/{environmentId}/environment
{
  "data": {
    "actionClasses": [
      {
        "id": "cm6orqtdd000b19wjec82bpp2",
        "key": null,
        "name": "New Session",
        "noCodeConfig": null,
        "type": "automatic"
      },
      {
        "id": "cm6oryki3000i19wj860utcnn",
        "key": "code",
        "name": "code action",
        "noCodeConfig": null,
        "type": "code"
      }
    ],
    "project": {
      "clickOutsideClose": true,
      "darkOverlay": false,
      "id": "cm6orqtcl000319wj9wb7dltl",
      "inAppSurveyBranding": true,
      "placement": "bottomRight",
      "recontactDays": 7,
      "styling": {
        "allowStyleOverwrite": true,
        "brandColor": {
          "light": "#64748b"
        }
      }
    },
    "surveys": [
      {
        "autoClose": null,
        "delay": 0,
        "displayLimit": 5,
        "displayOption": "respondMultiple",
        "displayPercentage": null,
        "endings": [
          {
            "buttonLabel": "Create your own Survey",
            "buttonLink": "https://formbricks.com",
            "headline": "Thank you!",
            "id": "o729tod5klhix62njmk262dk",
            "subheader": "We appreciate your feedback.",
            "type": "endScreen"
          }
        ],
        "hiddenFields": {
          "enabled": true,
          "fieldIds": [
            "<string>"
          ]
        },
        "id": "cm6orr901000g19wjwwa690eo",
        "languages": [
          "<string>"
        ],
        "name": "Start from scratch",
        "questions": [
          {
            "buttonLabel": "Next",
            "charLimit": false,
            "headline": "What would you like to know?",
            "id": "dd5c8w2a4ttkbnjb9nwhtb17",
            "inputType": "text",
            "placeholder": "Type your answer here...",
            "required": true,
            "type": "openText"
          }
        ],
        "recontactDays": 0,
        "segment": {
          "createdAt": "2025-02-03T08:08:33.377Z",
          "description": null,
          "filters": [
            "<string>"
          ],
          "id": "cm6orr90h000h19wj1lnwoxwg",
          "isPrivate": true,
          "title": "cm6orr901000g19wjwwa690eo",
          "updatedAt": "2025-02-03T08:08:33.377Z"
        },
        "showLanguageSwitch": null,
        "status": "inProgress",
        "styling": null,
        "triggers": [
          {
            "actionClass": "code action"
          }
        ],
        "type": "app",
        "variables": [
          "<string>"
        ],
        "welcomeCard": {
          "buttonLabel": "Next",
          "enabled": false,
          "headline": "Welcome!",
          "html": "Thanks for providing your feedback - let's go!",
          "showResponseCount": false,
          "timeToFinish": false
        }
      }
    ]
  }
}

Path Parameters

environmentId
string
required

The ID of the environment

Response

200
application/json
HTTP Status 200
data
object

Was this page helpful?