---
updatedAt: 2026-08-11T04:24:20.000Z
agentTools:
  projectIndex: https://developer.mitti.com/llms.txt
---

# Data feed for inspections

> 📘️ **Important update**
>
> Starting **February 1, 2025**, we will standardize the date and time format in Feed APIs.
>
> * **New format:** `{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z`
>
> * **Example:** `2014-01-28T23:14:23.000Z`
>
> Until this change is implemented, you can continue to use the current format. After this date, API requests with incorrect formats will return an error. We would recommend that you update your applications to the new format as soon as possible.
> [Learn more](https://developer.mitti.com/reference/date-time-format)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Mitti API",
    "version": "v1.358.2",
    "contact": {
      "name": "Mitti Support",
      "url": "https://help.mitti.com",
      "email": "support@mitti.com"
    }
  },
  "paths": {
    "/feed/inspections": {
      "get": {
        "summary": "Data feed for inspections",
        "operationId": "ThePubService_FeedInspections",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/s12.thepub.v1.FeedInspectionsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "modified_after",
            "description": "Filter inspections modified after this date in the Internet Date-Time format. For example, `2014-01-28T23:14:23.000Z`.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "modified_before",
            "description": "Filter inspections modified before this date in the Internet Date-Time format. For example, `2014-01-28T23:14:23.000Z`.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "template",
            "description": "Filter inspections conducted from these template IDs.",
            "in": "query",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "archived",
            "description": "Filter inspections that are archived.\n\n - false: Only include unarchived inspections.\n - true: Only include archived inspections.\n - both: Include both unarchived and archived inspections.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "false",
                "true",
                "both"
              ],
              "default": "false"
            }
          },
          {
            "name": "completed",
            "description": "Filter inspections that are complete.\n\n - true: Only include complete inspections.\n - false: Only include incomplete inspections.\n - both: Include both completed and incomplete inspections.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false",
                "both"
              ],
              "default": "true"
            }
          },
          {
            "name": "web_report_link",
            "description": "The format for web report links returned.\n\n - private: Return private web report links that require login.\n - public: Return public web report links.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "private",
                "public"
              ],
              "default": "private"
            }
          }
        ],
        "tags": [
          "Data Feeds"
        ]
      }
    }
  },
  "externalDocs": {
    "description": "How to generate an API Token",
    "url": "https://help.mitti.com/en-US/000007/"
  },
  "servers": [
    {
      "url": "https://api.mitti.com"
    }
  ],
  "components": {
    "schemas": {
      "google.protobuf.Any": {
        "type": "object",
        "properties": {
          "@type": {
            "type": "string",
            "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
          }
        },
        "additionalProperties": {},
        "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := ptypes.MarshalAny(foo)\n     ...\n     foo := &pb.Foo{}\n     if err := ptypes.UnmarshalAny(any, foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
      },
      "google.rpc.Status": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "array",
            "items": {
              "type": "object",
              "$ref": "#/components/schemas/google.protobuf.Any"
            }
          }
        }
      },
      "s12.thepub.v1.FeedInspectionsResponse": {
        "type": "object",
        "properties": {
          "metadata": {
            "description": "The metadata for the feed.",
            "allOf": [
              {
                "$ref": "#/components/schemas/s12.thepub.v1.FeedMetadata"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "$ref": "#/components/schemas/s12.thepub.v1.FeedInspectionsResponse.FeedInspection"
            },
            "description": "The inspections returned."
          }
        },
        "description": "The response for `FeedInspections`",
        "title": "FeedInspectionsResponse"
      },
      "s12.thepub.v1.FeedInspectionsResponse.FeedInspection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of this inspection."
          },
          "name": {
            "type": "string",
            "description": "The name of this inspection."
          },
          "archived": {
            "type": "boolean",
            "description": "If this inspection is archived."
          },
          "organisation_id": {
            "type": "string",
            "description": "The organisation this inspection belongs to."
          },
          "owner_name": {
            "type": "string",
            "description": "The name of the user who created this inspection."
          },
          "owner_id": {
            "type": "string",
            "description": "The ID of the user who created this inspection."
          },
          "author_name": {
            "type": "string",
            "description": "The name of the user who last updated this inspection."
          },
          "author_id": {
            "type": "string",
            "description": "The ID of the user who last updated this inspection."
          },
          "score": {
            "type": "number",
            "format": "double",
            "description": "The score of this inspection."
          },
          "max_score": {
            "type": "number",
            "format": "double",
            "description": "The maximum score of this inspection."
          },
          "score_percentage": {
            "type": "number",
            "format": "double",
            "description": "The percentage of the inspection score."
          },
          "duration": {
            "type": "integer",
            "format": "int64",
            "description": "The duration of this inspection."
          },
          "site_id": {
            "type": "string",
            "description": "The site this inspection was conducted at."
          },
          "template_id": {
            "type": "string",
            "description": "The ID of the template this inspection was conducted from."
          },
          "template_name": {
            "type": "string",
            "description": "The name of the template this inspection was conducted from."
          },
          "template_author": {
            "type": "string",
            "description": "The author of the template."
          },
          "date_started": {
            "type": "string",
            "format": "date-time",
            "description": "The date this inspection was started."
          },
          "date_completed": {
            "type": "string",
            "format": "date-time",
            "description": "The date this inspection was completed."
          },
          "date_modified": {
            "type": "string",
            "format": "date-time",
            "description": "The date this inspection was last updated."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "The date this inspection was created on the server."
          },
          "modified_at": {
            "type": "string",
            "format": "date-time",
            "description": "The date this inspection was last updated on the server."
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "description": "The latitude this inspection was conducted at."
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "description": "The longitude this inspection was conducted at."
          },
          "document_no": {
            "type": "string",
            "description": "The document number of this inspection."
          },
          "prepared_by": {
            "type": "string",
            "description": "The user who created this inspection."
          },
          "location": {
            "type": "string",
            "description": "The location this inspection was conducted at."
          },
          "conducted_on": {
            "type": "string",
            "description": "The date this inspection was conducted."
          },
          "personnel": {
            "type": "string",
            "description": "The people involved in this inspection."
          },
          "client_site": {
            "type": "string",
            "description": "The site this inspection was conducted at."
          },
          "web_report_link": {
            "type": "string",
            "description": "The URL to the web report for this inspection."
          }
        },
        "description": "A inspection returned from `FeedInspections`",
        "title": "FeedInspection"
      },
      "s12.thepub.v1.FeedMetadata": {
        "type": "object",
        "properties": {
          "next_page": {
            "type": "string",
            "description": "The path to fetch the next page on."
          },
          "remaining_records": {
            "type": "integer",
            "format": "int32",
            "description": "Estimated remaining records."
          }
        },
        "description": "The metadata returned on a feed",
        "title": "FeedMetadata"
      }
    },
    "securitySchemes": {
      "BearerAuthentication": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "metrics-enabled": false,
    "proxy-enabled": false,
    "samples-languages": [
      "curl",
      "node",
      "ruby",
      "javascript",
      "python"
    ]
  },
  "security": [
    {
      "BearerAuthentication": []
    }
  ]
}
```