---
title: Create an integration log entry
slug: create-an-integration-log-entry
docTags: 
createdAt: 2026-10-08T08:29:29.588Z
---

{
  "id": "fh6TKX8faHkceVTIx-kHW",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://dev1.frontu.com//client/api/v2/integration/log",
    "servers": [
      {
        "url": "https://dev1.frontu.com//client/api/v2/integration/log"
      }
    ],
    "name": "Create an integration log entry",
    "description": "<p>Records an integration log entry. Posting an integration_error entry queues a delayed (~5 min) notification job that e-mails unsent errors to the office and marks them sent. Omitted boolean fields are stored as false — send new=true explicitly so the entry is counted as a new error in the admin panel.</p>",
    "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": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "message",
              "kind": "optional",
              "type": "string",
              "description": "<p>Human-readable summary.</p>"
            },
            {
              "name": "data",
              "kind": "optional",
              "type": "string",
              "description": "<p>Free-form payload string (embed JSON as an escaped string).</p>"
            },
            {
              "name": "level",
              "kind": "required",
              "type": "string<integration_info | integration_debug | integration_error>",
              "description": "",
              "enum": [
                "integration_info",
                "integration_debug",
                "integration_error"
              ]
            },
            {
              "name": "action",
              "kind": "required",
              "type": "string",
              "description": "<p>Direction of the integration action, e.g. import or export.</p>"
            },
            {
              "name": "new",
              "kind": "optional",
              "type": "boolean",
              "description": "Send true so the entry counts as a new error in the admin panel."
            },
            {
              "name": "sent",
              "kind": "optional",
              "type": "boolean",
              "description": "<p>Leave out or false; true suppresses the error e-mail.</p>"
            },
            {
              "name": "office",
              "kind": "optional",
              "type": "string",
              "description": "Optional Office GUID to scope the error notification."
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Authorization",
          "kind": "optional",
          "type": "apiKey",
          "description": "<p>Value: Bearer {access_token}</p>",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "201",
        "description": "<p>Returned when successfully created, with the serialized entry</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "integer",
                "description": ""
              },
              {
                "name": "version",
                "kind": "optional",
                "type": "integer",
                "description": ""
              },
              {
                "name": "created",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "level",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": ""
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": ""
              },
              {
                "name": "action",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "new",
                "kind": "optional",
                "type": "boolean",
                "description": ""
              },
              {
                "name": "sent",
                "kind": "optional",
                "type": "boolean",
                "description": ""
              },
              {
                "name": "office",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": ""
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Form validation errors",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "FY5fUWmlU-DjHuhyhr0DD",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://dev1.frontu.com//client/api/v2/integration/log \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"level\": \"\",\n     \"action\": \"\"\n     }'"
        },
        {
          "id": "TGth08Jq-hjW8G3lKN9_E",
          "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   \"level\": \"\",\n   \"action\": \"\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://dev1.frontu.com//client/api/v2/integration/log\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "2sarNNHdplBL3JMzbrdbE",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://dev1.frontu.com//client/api/v2/integration/log\")\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   \"level\": \"\",\n   \"action\": \"\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "ZfW9WeL6SVq5CqZEFyw1X",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://dev1.frontu.com//client/api/v2/integration/log\"\n\npayload = json.dumps({\n   \"level\": \"\",\n   \"action\": \"\"\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"
        }
      ],
      "selectedLanguageId": "FY5fUWmlU-DjHuhyhr0DD"
    },
    "results": {
      "languages": [
        {
          "id": "MGgtjyrblnZ3srl1QmuEk",
          "language": "201",
          "code": "// Returned when successfully created, with the serialized entry\n{\n  \"id\": 0,\n  \"version\": 0,\n  \"created\": \"\",\n  \"level\": \"\",\n  \"message\": \"\",\n  \"data\": \"\",\n  \"action\": \"\",\n  \"new\": false,\n  \"sent\": false,\n  \"office\": \"\"\n}"
        },
        {
          "id": "ML_5zinaA7bR6SjVqOndR",
          "language": "400",
          "code": "// Form validation errors\n"
        }
      ],
      "selectedLanguageId": "MGgtjyrblnZ3srl1QmuEk"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}