---
title: Retrive all support logs
slug: docs/demo/retrive-all-support-logs
description: Learn how to use the curl command to effortlessly make a GET request to a fictive website's API endpoint. This code example shows how to retrieve support logs for an account and ensures that the response is received in a JSON format. Check out this helpfu
docTags: 
createdAt: 2022-03-21T20:12:45.000Z
---

{
  "id": "1TqhCGHIDxeHGdWI2Sj57",
  "data": {
    "url": "https://api.fictive.com/REST/api/accounts/{accountReference}/support-logs",
    "name": "Retrive all support logs",
    "method": "GET",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "accountReference",
          "type": "string",
          "description": ""
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "pageNumber",
          "type": "integer",
          "description": ""
        },
        {
          "kind": "optional",
          "name": "recordsPerPage",
          "type": "integer",
          "description": ""
        }
      ],
      "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": "logs",
                "type": "array",
                "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[]"
              },
              {
                "kind": "optional",
                "name": "totalNumberOfRecords",
                "type": "integer<int32>",
                "example": 0
              },
              {
                "kind": "optional",
                "name": "pageNumber",
                "type": "integer<int32>",
                "example": 0
              }
            ],
            "modelRef": "#/definitions/FictiveGlobal.Api.Rest.Dtos.v1.CustomerSupportLogEntrySearch",
            "customType": "FictiveGlobal.Api.Rest.Dtos.v1.CustomerSupportLogEntrySearch",
            "isExpanded": true
          }
        ],
        "isExpanded": true,
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "[\n  {\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.4322365\",\n    \"lastUpdatedDate\": \"2021-09-21T05:33:16.4322365\"\n  }\n]"
      }
    ],
    "contentType": "application/json",
    "description": "This endpoint will provide the ability to return all support log entries for an account. This endpoint will return both API generated and system generated logs.\r\n            <br /><br />The following custom headers will be returned in the response of the API\r\n            <br />X-totalNumberOfRecords\r\n            <br />X-pageNumber",
    "examples": {
      "languages": [
        {
          "id": "fyovrXMs3JnHlWUs1L3Tt",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.fictive.com/REST/api/accounts/{accountReference}/support-logs \\\n     --header 'accept: application/json' \\\n     --header 'x-version: string'"
        },
        {
          "id": "SLG55UCjMxaULi0ZR_o-g",
          "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\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "fLVzqPDgsNFV0FeNy4_Ky",
          "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\")\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": "OVBZuh6Lt3Qls7WYmkczF",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.fictive.com/REST/api/accounts/{accountReference}/support-logs\"\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": "fyovrXMs3JnHlWUs1L3Tt"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "[\n  {\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.4322365\",\n    \"lastUpdatedDate\": \"2021-09-21T05:33:16.4322365\"\n  }\n]"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}