---
title: /v2/events/helplineDisplay
slug: v2eventshelplinedisplay
docTags: 
createdAt: 2026-05-28T20:42:36.152Z
---

{
  "id": "3QGblmHHd0Z3Bp6dHzDWe",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.throughlinecare.com/v2/events/helplineDisplay",
    "description": "Record a helpline display event.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "HelplineDisplay",
          "type": "object",
          "description": "Record a helpline display event.",
          "customType": "HelplineDisplay",
          "schema": [
            {
              "name": "noDisplay",
              "kind": "optional",
              "type": "boolean",
              "description": "Set to true to record that the API was used but no helplines were displayed"
            },
            {
              "name": "helplineId",
              "kind": "required",
              "type": "string",
              "description": "ID of the helpline"
            },
            {
              "name": "sessionId",
              "kind": "required",
              "type": "string",
              "description": "<p>Client-generated session identifier</p>"
            },
            {
              "name": "timestamp",
              "kind": "required",
              "type": "string",
              "description": "ISO 8601 timestamp"
            }
          ],
          "modelRef": "#/definitions/HelplineDisplay",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearerAuth",
          "name": "Authorization",
          "kind": "optional",
          "type": "apiKey",
          "description": "<p>Enter the token with the \"Bearer: \" prefix e.g. \"Bearer ABC...\"</p>",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "201",
        "description": "Event recorded successfully.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Event recorded successfully.",
            "customType": "HelplineDisplay",
            "schema": [
              {
                "name": "noDisplay",
                "kind": "optional",
                "type": "boolean",
                "description": "Set to true to record that the API was used but no helplines were displayed"
              },
              {
                "name": "helplineId",
                "kind": "required",
                "type": "string",
                "description": "ID of the helpline"
              },
              {
                "name": "sessionId",
                "kind": "required",
                "type": "string",
                "description": "<p>Client-generated session identifier</p>"
              },
              {
                "name": "timestamp",
                "kind": "required",
                "type": "string",
                "description": "ISO 8601 timestamp"
              }
            ],
            "modelRef": "#/definitions/HelplineDisplay",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Missing or invalid required fields",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Missing or invalid required fields",
            "customType": "HelplineDisplay",
            "schema": [
              {
                "name": "noDisplay",
                "kind": "optional",
                "type": "boolean",
                "description": "Set to true to record that the API was used but no helplines were displayed"
              },
              {
                "name": "helplineId",
                "kind": "required",
                "type": "string",
                "description": "ID of the helpline"
              },
              {
                "name": "sessionId",
                "kind": "required",
                "type": "string",
                "description": "<p>Client-generated session identifier</p>"
              },
              {
                "name": "timestamp",
                "kind": "required",
                "type": "string",
                "description": "ISO 8601 timestamp"
              }
            ],
            "modelRef": "#/definitions/HelplineDisplay",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Unauthorized",
            "customType": "HelplineDisplay",
            "schema": [
              {
                "name": "noDisplay",
                "kind": "optional",
                "type": "boolean",
                "description": "Set to true to record that the API was used but no helplines were displayed"
              },
              {
                "name": "helplineId",
                "kind": "required",
                "type": "string",
                "description": "ID of the helpline"
              },
              {
                "name": "sessionId",
                "kind": "required",
                "type": "string",
                "description": "<p>Client-generated session identifier</p>"
              },
              {
                "name": "timestamp",
                "kind": "required",
                "type": "string",
                "description": "ISO 8601 timestamp"
              }
            ],
            "modelRef": "#/definitions/HelplineDisplay",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "422",
        "description": "Invalid helpline",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Invalid helpline",
            "customType": "HelplineDisplay",
            "schema": [
              {
                "name": "noDisplay",
                "kind": "optional",
                "type": "boolean",
                "description": "Set to true to record that the API was used but no helplines were displayed"
              },
              {
                "name": "helplineId",
                "kind": "required",
                "type": "string",
                "description": "ID of the helpline"
              },
              {
                "name": "sessionId",
                "kind": "required",
                "type": "string",
                "description": "<p>Client-generated session identifier</p>"
              },
              {
                "name": "timestamp",
                "kind": "required",
                "type": "string",
                "description": "ISO 8601 timestamp"
              }
            ],
            "modelRef": "#/definitions/HelplineDisplay",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "VAMkAOmIzx_k_yR0wAP5d",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"helplineId\": \"\",\n   \"sessionId\": \"\",\n   \"timestamp\": \"\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.throughlinecare.com/v2/events/helplineDisplay\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "nXIGad1LSJ9olcOjcWPdK",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.throughlinecare.com/v2/events/helplineDisplay\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"helplineId\": \"\",\n   \"sessionId\": \"\",\n   \"timestamp\": \"\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "TjLVYNGNcsLrblhbj0Cb9",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.throughlinecare.com/v2/events/helplineDisplay\"\n\npayload = json.dumps({\n   \"helplineId\": \"\",\n   \"sessionId\": \"\",\n   \"timestamp\": \"\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        },
        {
          "id": "99Y-Pj2AHxkuOL9vgG9Z5",
          "language": "java",
          "label": "Java",
          "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n   .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n  \\\"helplineId\\\": \\\"\\\",\\n  \\\"sessionId\\\": \\\"\\\",\\n  \\\"timestamp\\\": \\\"\\\"\\n}\");\nRequest request = new Request.Builder()\n   .url(\"https://api.throughlinecare.com/v2/events/helplineDisplay\")\n   .method(\"POST\", body)\n   .addHeader(\"accept\", \"application/json\")\n   .addHeader(\"content-type\", \"application/json\")\n   .build();\nResponse response = client.newCall(request).execute();"
        },
        {
          "id": "IMhVGxkAy2pibi5G33lO4",
          "language": "swift",
          "label": "Swift",
          "code": "let parameters = \"{\\n  \\\"helplineId\\\": \\\"\\\",\\n  \\\"sessionId\\\": \\\"\\\",\\n  \\\"timestamp\\\": \\\"\\\"\\n}\"\nlet postData = parameters.data(using: .utf8)\n\nvar request = URLRequest(url: URL(string: \"https://api.throughlinecare.com/v2/events/helplineDisplay\")!,timeoutInterval: Double.infinity)\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"accept\")\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"content-type\")\n\nrequest.httpMethod = \"POST\"\nrequest.httpBody = postData\n\nlet task = URLSession.shared.dataTask(with: request) { data, response, error in \n   guard let data = data else {\n      print(String(describing: error))\n      return\n   }\n   print(String(data: data, encoding: .utf8)!)\n}\n\ntask.resume()\n"
        }
      ],
      "selectedLanguageId": "VAMkAOmIzx_k_yR0wAP5d"
    },
    "results": {
      "languages": [
        {
          "id": "zavEVpQ7yiu09CSrtAN22",
          "language": "201",
          "code": "// Event recorded successfully.\n{\n  \"noDisplay\": false,\n  \"helplineId\": \"\",\n  \"sessionId\": \"\",\n  \"timestamp\": \"\"\n}"
        },
        {
          "id": "pCNY8uKqx21w2mA9Ra4GI",
          "language": "400",
          "code": "// Missing or invalid required fields\n{\n  \"noDisplay\": false,\n  \"helplineId\": \"\",\n  \"sessionId\": \"\",\n  \"timestamp\": \"\"\n}"
        },
        {
          "id": "gLbocFyraCw0W26JXJYzE",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"noDisplay\": false,\n  \"helplineId\": \"\",\n  \"sessionId\": \"\",\n  \"timestamp\": \"\"\n}"
        },
        {
          "id": "1a0HSMoEmWeb86H56KNPY",
          "language": "422",
          "code": "// Invalid helpline\n{\n  \"noDisplay\": false,\n  \"helplineId\": \"\",\n  \"sessionId\": \"\",\n  \"timestamp\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "zavEVpQ7yiu09CSrtAN22"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}