---
updatedAt: 2026-08-10T17:16:13.000Z
agentTools:
  projectIndex: https://docs.salussafety.io/llms.txt
---

# Search Observations

Search for observations that match the provided filters.

Keywords are searched for in the observation _value_ field. For image and voice observations,
the response includes a time-limited _signed_url_ to access the media file.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "SALUS Developer API",
    "version": "0.11.71"
  },
  "servers": [
    {
      "url": "https://developer.beta.salussafety.io"
    }
  ],
  "paths": {
    "/v1/observation/": {
      "get": {
        "tags": [
          "Observations"
        ],
        "summary": "Search Observations",
        "description": "Search for observations that match the provided filters.\n\nKeywords are searched for in the observation _value_ field. For image and voice observations,\nthe response includes a time-limited _signed_url_ to access the media file.",
        "operationId": "search_observations_v1_observation__get",
        "security": [
          {
            "HTTPBearer": []
          },
          {
            "OAuth2ClientCredentialsBearer": []
          },
          {
            "OAuth2AuthorizationCodeBearer": []
          }
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Keyword to match in the observation text. Empty string returns recent observations.",
              "default": "",
              "title": "Query"
            },
            "description": "Keyword to match in the observation text. Empty string returns recent observations."
          },
          {
            "name": "site_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Filter to observations from a specific site/project.",
              "title": "Site Id",
              "type": "integer",
              "nullable": true
            },
            "description": "Filter to observations from a specific site/project."
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Filter by media type: 'text', 'image', or 'voice'. Note: 'audio' is a legacy value on older rows; filter on both 'voice' and 'audio' for complete history.",
              "title": "Type",
              "type": "string",
              "nullable": true
            },
            "description": "Filter by media type: 'text', 'image', or 'voice'. Note: 'audio' is a legacy value on older rows; filter on both 'voice' and 'audio' for complete history."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 250,
              "minimum": 1,
              "description": "Maximum number of results to return.",
              "default": 50,
              "title": "Limit"
            },
            "description": "Maximum number of results to return."
          },
          {
            "name": "skip",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Number of results to skip for pagination.",
              "default": 0,
              "title": "Skip"
            },
            "description": "Number of results to skip for pagination."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiGenericResponse_PaginatedResponse_ObservationModel__"
                }
              }
            }
          },
          "400": {
            "description": "Business Logic Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiGenericResponse_ErrorDetail_"
                }
              }
            }
          },
          "403": {
            "description": "Permission Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiGenericResponse_ErrorDetail_"
                }
              }
            }
          },
          "409": {
            "description": "Integrity Error or Data Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiGenericResponse_ErrorDetail_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiGenericResponse_ErrorDetail_": {
        "properties": {
          "error": {
            "type": "boolean",
            "title": "Error Indicator",
            "description": "A boolean error indicator.",
            "default": false
          },
          "message": {
            "title": "Response Message",
            "description": "Optional message.",
            "type": "string",
            "nullable": true
          },
          "data": {
            "title": "Response Data",
            "description": "The response data for any given request.",
            "$ref": "#/components/schemas/ErrorDetail",
            "nullable": true
          }
        },
        "type": "object",
        "title": "ApiGenericResponse[ErrorDetail]"
      },
      "ApiGenericResponse_PaginatedResponse_ObservationModel__": {
        "properties": {
          "error": {
            "type": "boolean",
            "title": "Error Indicator",
            "description": "A boolean error indicator.",
            "default": false
          },
          "message": {
            "title": "Response Message",
            "description": "Optional message.",
            "type": "string",
            "nullable": true
          },
          "data": {
            "title": "Response Data",
            "description": "The response data for any given request.",
            "$ref": "#/components/schemas/PaginatedResponse_ObservationModel_",
            "nullable": true
          }
        },
        "type": "object",
        "title": "ApiGenericResponse[PaginatedResponse[ObservationModel]]"
      },
      "ErrorDetail": {
        "properties": {
          "requestPath": {
            "title": "Request Path",
            "description": "The path of the request that generated the error.",
            "type": "string",
            "nullable": true
          },
          "requestMethod": {
            "title": "Request HTTP Method",
            "description": "The HTTP method of the request that generated the error.",
            "type": "string",
            "nullable": true
          },
          "errorType": {
            "type": "string",
            "title": "The Error Type that Occurred",
            "description": "The type of error that occurred, broadly it can be 'Database', 'BusinessLogic', or 'Permissions`"
          },
          "errorTypeDetail": {
            "title": "Errortypedetail",
            "description": "If available, an additional categorization of the error that occurred.",
            "type": "string",
            "nullable": true
          },
          "errorDetail": {
            "title": "Errordetail",
            "type": "string",
            "nullable": true
          }
        },
        "type": "object",
        "required": [
          "errorType"
        ],
        "title": "ErrorDetail",
        "description": "Generic error detail object that the API will return where errors are encountered. Details will be extracted to\nmake error processing more straight forward."
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ObservationModel": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Observation UUID."
          },
          "companyId": {
            "type": "integer",
            "title": "Companyid"
          },
          "userId": {
            "type": "integer",
            "title": "Userid",
            "description": "The user who captured the observation."
          },
          "siteId": {
            "title": "Siteid",
            "type": "integer",
            "nullable": true
          },
          "capturedAt": {
            "type": "string",
            "format": "date-time",
            "title": "Capturedat"
          },
          "type": {
            "type": "string",
            "title": "Type",
            "description": "Media kind: 'text', 'image', or 'voice' ('audio' is a legacy value on older rows)."
          },
          "value": {
            "type": "string",
            "title": "Value",
            "description": "Payload: note text, or the stored S3 object key for image/voice."
          },
          "signedUrl": {
            "title": "Signedurl",
            "description": "For image/voice observations: a time-limited presigned URL to fetch the media. Null for text. Use this (not `value`) to access the media; it expires.",
            "type": "string",
            "nullable": true
          },
          "imageUrl": {
            "title": "Imageurl",
            "description": "For image observations: a URL served by the image-resize utility. Not presigned and does not expire, and already sized for report display. Hand it to a vision model or embed it directly in report markdown. Null for text and voice — the resize utility cannot serve audio, so use `signedUrl` for voice media.",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "additionalProperties": true,
            "type": "object",
            "title": "Metadata",
            "description": "Enrichment bag — transcription, AI analysis, etc."
          },
          "deleted": {
            "type": "boolean",
            "title": "Deleted",
            "default": false
          },
          "groupIds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Groupids",
            "description": "UUIDs of the observation_groups this observation belongs to."
          },
          "createdAt": {
            "title": "Createdat",
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedAt": {
            "title": "Updatedat",
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "companyId",
          "userId",
          "capturedAt",
          "type",
          "value"
        ],
        "title": "ObservationModel",
        "description": "A single observation artifact."
      },
      "PaginatedResponse_ObservationModel_": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/ObservationModel"
            },
            "type": "array",
            "title": "Results"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "current_page": {
            "type": "integer",
            "title": "Current Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "total_pages": {
            "type": "integer",
            "title": "Total Pages"
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More"
          }
        },
        "type": "object",
        "required": [
          "results",
          "total",
          "current_page",
          "page_size",
          "total_pages",
          "has_more"
        ],
        "title": "PaginatedResponse[ObservationModel]"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "description": "Used for authentication using the _classic_ authorization protocol flow, against the Core API. \n\n",
        "scheme": "bearer"
      },
      "OAuth2ClientCredentialsBearer": {
        "type": "oauth2",
        "description": "Used for authentication using the _credentials_grant_ OAuth protocol flow.",
        "flows": {
          "clientCredentials": {
            "scopes": {
              "sls:idn": "Request Salus identity information."
            },
            "tokenUrl": "https://guardian.beta.salussafety.io/token"
          }
        }
      },
      "OAuth2AuthorizationCodeBearer": {
        "type": "oauth2",
        "description": "Used for authentication using the _authorization_code_ OAuth protocol flow.",
        "flows": {
          "authorizationCode": {
            "refreshUrl": "https://guardian.beta.salussafety.io/token",
            "scopes": {
              "sls:idn": "Request Salus identity information."
            },
            "authorizationUrl": "https://guardian.beta.salussafety.io/authorize",
            "tokenUrl": "https://guardian.beta.salussafety.io/token"
          }
        }
      }
    }
  }
}
```