---
title: "Findings"
description: "The findings endpoints of the HTTP API."
---

> Documentation Index
> Fetch the complete documentation index at: https://slashobserve.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Findings

## GET /findings

List the findings the caller can read, newest first.

Without a filter the caller's own findings are listed whose observation sits in a folder the caller can view. With `dashboard_id` only that dashboard's findings are listed, and a dashboard the caller cannot view gives 404. With `folder_id` only the findings without a dashboard whose observation sits in that folder are listed, and a folder the caller cannot view gives 404; findings on the folder's dashboards are not included, so list them with `dashboard_id`. `dashboard_id` and `folder_id` do not go together. Deprecated: findings are observations now; use /observations. Removed in the release after this one.

### Parameters

| Name | In | Type | Description |
| --- | --- | --- | --- |
| `dashboard_id` | query | `string` (uuid) |   |
| `folder_id` | query | `string` (uuid) |   |
| `limit` | query | `integer` | Between 1 and 100. Default `20`. |
| `cursor` | query | `string` | The `next_cursor` of the previous page. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| `200` | One page of findings. | [`FindingList`](/docs/reference/api/schemas/#findinglist) |
| `400` | The request is malformed or fails validation. | [`Error`](/docs/reference/api/schemas/#error) |
| `401` | Authentication is missing or invalid. | [`Error`](/docs/reference/api/schemas/#error) |
| `404` | The resource does not exist, or the caller cannot see it; the two are never told apart. | [`Error`](/docs/reference/api/schemas/#error) |
| `500` | The server failed to handle the request. | [`Error`](/docs/reference/api/schemas/#error) |

## GET /findings/{id}

Read one finding.

A finding follows the folder of its observation: anyone who can view that folder may read it, on a dashboard or not. `folder` is that folder and `permissions` what the caller may do with the finding. A finding the caller cannot read gives 404, never 403. The answer to a plain question has no observation until its requester saves it: only the requester and an Admin read it, on a dashboard only while they can view that dashboard, `folder` is null and `permissions` allow viewing only. A read of such an answer is recorded in the audit trail as `run.view` of its request, once per reader and request in 10 minutes. A refused read is recorded every time, as a denied `run.view` with the finding as its target. The `Link` header names the observation as the `successor-version`, and is absent while there is none. Deprecated: findings are observations now; use /observations. Removed in the release after this one.

### Parameters

| Name | In | Type | Description |
| --- | --- | --- | --- |
| `id` (required) | path | `string` (uuid) |   |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| `200` | The finding. | [`FindingEnvelope`](/docs/reference/api/schemas/#findingenvelope) |
| `400` | The request is malformed or fails validation. | [`Error`](/docs/reference/api/schemas/#error) |
| `401` | Authentication is missing or invalid. | [`Error`](/docs/reference/api/schemas/#error) |
| `404` | The resource does not exist, or the caller cannot see it; the two are never told apart. | [`Error`](/docs/reference/api/schemas/#error) |
| `500` | The server failed to handle the request. | [`Error`](/docs/reference/api/schemas/#error) |

## POST /findings/{id}/pin

Pin a finding to its dashboard as an annotation.

The annotation's text is the finding's first line and a link to it, tagged `finding`, at the end of the finding's window; pinning needs Edit on the dashboard. Pinning a finding that is already pinned answers 200 with the same annotation. Deprecated: findings are observations now; use /observations. Removed in the release after this one.

### Parameters

| Name | In | Type | Description |
| --- | --- | --- | --- |
| `id` (required) | path | `string` (uuid) |   |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| `200` | The finding was already pinned; this is its annotation. | [`Annotation`](/docs/reference/api/schemas/#annotation) |
| `201` | The annotation made for the finding. | [`Annotation`](/docs/reference/api/schemas/#annotation) |
| `400` | The request is malformed or fails validation. | [`Error`](/docs/reference/api/schemas/#error) |
| `401` | Authentication is missing or invalid. | [`Error`](/docs/reference/api/schemas/#error) |
| `403` | The caller is not allowed to perform the request; a role that is too low is code `forbidden_role`. | [`Error`](/docs/reference/api/schemas/#error) |
| `404` | The resource does not exist, or the caller cannot see it; the two are never told apart. | [`Error`](/docs/reference/api/schemas/#error) |
| `409` | The finding has no dashboard to pin to (`finding_has_no_dashboard`), or is the answer to a plain question that is not an observation yet (`finding_not_saved`). Or the content reads a datasource only Admins can query and the folder is not one only Admins can read (`restricted_content`, naming the `datasource`). Or the finding is `restricted` and its dashboard is not in a folder only Admins can read (`restricted_answer`, saying why). | [`Error`](/docs/reference/api/schemas/#error) or [`RestrictedContentError`](/docs/reference/api/schemas/#restrictedcontenterror) |
| `500` | The server failed to handle the request. | [`Error`](/docs/reference/api/schemas/#error) |

## POST /findings/{id}/dashboard

Save a finding's evidence panels as a new dashboard.

Anyone who can read the finding may call it; the dashboard lands in the caller's My Dashboards and every evidence query is run again before it is saved. The caller's own chat that the answer came from becomes a chat about the new dashboard, when it is about no dashboard or observation yet; it stays private to the caller, and a failure to attach it does not fail the call. A finding without evidence gives 409 `finding_has_no_evidence`. Deprecated: findings are observations now; use /observations. Removed in the release after this one.

### Parameters

| Name | In | Type | Description |
| --- | --- | --- | --- |
| `id` (required) | path | `string` (uuid) |   |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| `201` | The new dashboard and its first version. | [`DashboardWithVersion`](/docs/reference/api/schemas/#dashboardwithversion) |
| `400` | The request is malformed or fails validation. | [`Error`](/docs/reference/api/schemas/#error) |
| `401` | Authentication is missing or invalid. | [`Error`](/docs/reference/api/schemas/#error) |
| `403` | The caller is not allowed to perform the request; a role that is too low is code `forbidden_role`. | [`Error`](/docs/reference/api/schemas/#error) |
| `404` | The resource does not exist, or the caller cannot see it; the two are never told apart. | [`Error`](/docs/reference/api/schemas/#error) |
| `409` | The finding has no evidence panels (`finding_has_no_evidence`). Or the content reads a datasource only Admins can query and the folder is not one only Admins can read (`restricted_content`, naming the `datasource`). Or the finding is `restricted` and your default folder is not one only Admins can read (`restricted_answer`, saying why). | [`Error`](/docs/reference/api/schemas/#error) or [`RestrictedContentError`](/docs/reference/api/schemas/#restrictedcontenterror) |
| `422` | The Spec fails validation or one of its queries fails; every problem is listed in `issues`. | [`ValidationError`](/docs/reference/api/schemas/#validationerror) |
| `500` | The server failed to handle the request. | [`Error`](/docs/reference/api/schemas/#error) |

## GET /findings/{id}/panels/{panel_id}/data

Run the queries of one evidence panel of a finding and return their frames.

Runs one evidence panel of a finding. Only browser sessions may call it; a key gets 403 `user_session_required`. Evidence queries are stored with the finding and were checked when it was saved. Anyone who can read the finding may call it, `from` and `to` default to the finding's window, nothing is cached, and the response has the shape of panel data. Deprecated: findings are observations now; use /observations. Removed in the release after this one.

### Parameters

| Name | In | Type | Description |
| --- | --- | --- | --- |
| `id` (required) | path | `string` (uuid) |   |
| `panel_id` (required) | path | `string` |   |
| `from` | query | `string` |   |
| `to` | query | `string` |   |
| `tz` | query | `string` |   |
| `max_data_points` | query | `integer` | Between 10 and 11000. Default `1000`. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| `200` | The frames the evidence panel's queries returned. | [`PanelData`](/docs/reference/api/schemas/#paneldata) |
| `400` | The request is malformed or fails validation. | [`PanelDataError`](/docs/reference/api/schemas/#paneldataerror) |
| `401` | Authentication is missing or invalid. | [`Error`](/docs/reference/api/schemas/#error) |
| `403` | The request carried query text (`query_not_in_spec`), or the caller is not a signed-in user (`user_session_required`). | [`Error`](/docs/reference/api/schemas/#error) |
| `404` | There is no such finding for the caller (`not_found`), or the finding has no such evidence panel (`panel_not_found`). | [`PanelDataError`](/docs/reference/api/schemas/#paneldataerror) |
| `422` | A query or a variable cannot run, with the codes of panel data. | [`PanelDataError`](/docs/reference/api/schemas/#paneldataerror) |
| `429` | The caller already has the maximum number of query requests in flight, or the server's shared upstream call slots stayed busy for 5 seconds. | [`Error`](/docs/reference/api/schemas/#error) |
| `500` | The server failed to handle the request. | [`PanelDataError`](/docs/reference/api/schemas/#paneldataerror) |
| `502` | A datasource is unavailable. | [`PanelDataError`](/docs/reference/api/schemas/#paneldataerror) |
| `504` | A datasource did not answer within the query timeout. | [`PanelDataError`](/docs/reference/api/schemas/#paneldataerror) |

Generated from [`api/openapi.yaml`](https://github.com/slashobserve/slashobserve/blob/c770e5e0/api/openapi.yaml) at `c770e5e0`. [Report a problem](https://github.com/slashobserve/slashobserve/issues/new).
