---
title: Retrieve a support log
slug: docs/demo/retrieve-a-support-log
description: Learn how to make a GET request to a specific URL with this handy code example. Ensure seamless data communication by incorporating JSON through custom headers. Improve your programming skills and enhance data exchange efficiency today!
docTags: 
createdAt: 2022-03-21T20:12:45.000Z
---

{
  "id": "2uEgIJ_7gFpKUCKJMcItw",
  "data": {
    "url": "https://api.fictive.com/REST/api/accounts/{accountReference}/support-logs/{supportLogReference}",
    "name": "Retrieve a support log",
    "method": "GET",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "accountReference",
          "type": "string",
          "description": ""
        },
        {
          "kind": "required",
          "name": "supportLogReference",
          "type": "string",
          "description": ""
        }
      ],
      "queryParameters": [],
      "headerParameters": [
        {
          "kind": "optional",
          "name": "X-TokenId",
          "type": "string",
          "description": "The eSuite Token Id"
        },
        {
          "kind": "optional",
          "name": "X-SessionId",
          "type": "string",
          "description": "The eSuite Session Id"
        },
        {
          "kind": "required",
          "name": "X-Version",
          "type": "string",
          "description": "The eSuite Version"
        },
        {
          "kind": "optional",
          "name": "Origin",
          "type": "string",
          "description": "The eSuite Origin"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "responses": [
      {
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "schema": [
              {
                "kind": "optional",
                "name": "logType",
                "type": "string<Undefined | ManageOffer | ViewAccount | SystemAccount | Chargeback | Email | PhoneCall | Skype | OtherIm | PaperMail | SupportNote | BackOffice | TextOrSMSMessage | InPerson>",
                "example": ""
              },
              {
                "kind": "optional",
                "name": "logStatus",
                "type": "string<Undefined | Open | Closed>",
                "example": ""
              },
              {
                "kind": "optional",
                "name": "logTitle",
                "type": "string",
                "example": ""
              },
              {
                "kind": "optional",
                "name": "logDetails",
                "type": "string",
                "example": ""
              },
              {
                "kind": "optional",
                "name": "systemAccountId",
                "type": "integer<int32>",
                "example": 0
              },
              {
                "kind": "optional",
                "name": "supportLogReference",
                "type": "string",
                "example": ""
              },
              {
                "kind": "optional",
                "name": "createdDate",
                "type": "string<date-time>",
                "example": ""
              },
              {
                "kind": "optional",
                "name": "lastUpdatedDate",
                "type": "string<date-time>",
                "example": ""
              }
            ],
            "modelRef": "#/definitions/FictiveGlobal.Api.Rest.Dtos.v1.CustomerSupportLogEntry",
            "customType": "FictiveGlobal.Api.Rest.Dtos.v1.CustomerSupportLogEntry",
            "isExpanded": true
          }
        ],
        "isExpanded": true,
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "{\n  \"logType\": \"SupportNote\",\n  \"logStatus\": \"Open\",\n  \"logTitle\": \"Example string\",\n  \"logDetails\": \"smthh\",\n  \"systemAccountId\": 125484599,\n  \"supportLogReference\": \"0010X2Y7GLHZ0Y1JH2\",\n  \"createdDate\": \"2021-09-21T05:33:16.4634941\",\n  \"lastUpdatedDate\": \"2021-09-21T05:33:16.4634941\"\n}"
      }
    ],
    "contentType": "application/json",
    "description": "This endpoint will provide the ability to return a support log entry for an account. This endpoint will return both API generated and system generated logs",
    "examples": {
      "languages": [
        {
          "id": "uBM4IAv_6BCn-Risaybwl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.fictive.com/REST/api/accounts/{accountReference}/support-logs/{supportLogReference} \\\n     --header 'accept: application/json' \\\n     --header 'x-version: string'"
        },
        {
          "id": "7LwFiKVRzXM0Kw1YiFOYY",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-version\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.fictive.com/REST/api/accounts/{accountReference}/support-logs/{supportLogReference}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "u32vp0gTZXC-R7WWLc22B",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fictive.com/REST/api/accounts/{accountReference}/support-logs/{supportLogReference}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-version\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "zRi_C2-poaS2w8QSqV80n",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.fictive.com/REST/api/accounts/{accountReference}/support-logs/{supportLogReference}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-version': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "uBM4IAv_6BCn-Risaybwl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "{\n  \"logType\": \"SupportNote\",\n  \"logStatus\": \"Open\",\n  \"logTitle\": \"Example string\",\n  \"logDetails\": \"smthh\",\n  \"systemAccountId\": 125484599,\n  \"supportLogReference\": \"0010X2Y7GLHZ0Y1JH2\",\n  \"createdDate\": \"2021-09-21T05:33:16.4634941\",\n  \"lastUpdatedDate\": \"2021-09-21T05:33:16.4634941\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}