---
updatedAt: 2025-02-14T22:16:30.000Z
agentTools:
  projectIndex: https://digitaal-logboek.readme.io/llms.txt
---

# Find Logs by Installation ID or Custom ID and Postal code

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "API digitaal logboek",
    "version": "2.0",
    "description": "API digitaal logboek"
  },
  "paths": {
    "/installations/logs": {
      "get": {
        "summary": "Find Logs by Installation ID or Custom ID and Postal code",
        "tags": [
          "Log"
        ],
        "parameters": [
          {
            "name": "id",
            "description": "Installation ID or Custom ID",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postalCode",
            "description": "Postal code",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manufacturerId",
            "description": "Manufacturer ID",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "referenceId",
            "description": "Reference ID",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "description": "Page number",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "description": "Max items per page (Default 30, Max 100)",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Logs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "52f34043-33f9-4400-935e-56c233097d51"
                              },
                              "sbclId": {
                                "type": "string",
                                "example": "06f02b6a-b1f3-4e05-a1d0-2a75de65d286"
                              }
                            }
                          },
                          {
                            "$ref": "#/components/schemas/Log"
                          }
                        ]
                      }
                    },
                    "paging": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "integer"
                        },
                        "current": {
                          "type": "integer"
                        },
                        "pages": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              },
              "text/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "52f34043-33f9-4400-935e-56c233097d51"
                              },
                              "sbclId": {
                                "type": "string",
                                "example": "06f02b6a-b1f3-4e05-a1d0-2a75de65d286"
                              }
                            }
                          },
                          {
                            "$ref": "#/components/schemas/Log"
                          }
                        ]
                      }
                    },
                    "paging": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "integer"
                        },
                        "current": {
                          "type": "integer"
                        },
                        "pages": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters"
          },
          "422": {
            "description": "Missing required parameters"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "//logboek-api.sbcl.nl/api/v2"
    }
  ],
  "components": {
    "schemas": {
      "Log": {
        "type": "object",
        "required": [
          "type",
          "end",
          "description"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "maintenance",
              "repair",
              "check",
              "commissioning inspection",
              "modification inspection",
              "periodic inspection",
              "assistance inspection",
              "other"
            ],
            "example": "maintenance"
          },
          "end": {
            "type": "string",
            "example": "2022-01-01T12:00:00Z",
            "description": "**Note**: parameter must be in UTC format"
          },
          "description": {
            "type": "string",
            "example": "Lorem ipsum dolor sit amet"
          },
          "referenceId": {
            "type": "string",
            "example": "OT319319"
          },
          "approved": {
            "type": "string",
            "enum": [
              "true",
              "false",
              "not inspected"
            ],
            "example": "true",
            "description": "**Note**: parameter can only be used with Type commissioning inspection, modification inspection or periodic inspection"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```