---
title: "Create a new saved view"
method: POST
path: "/api/{org_id}/savedviews"
tags: ["Saved Views"]
---

# Create a new saved view

`POST /api/{org_id}/savedviews`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/savedviews`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/savedviews/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a saved search view with specified query parameters and filters

## Path parameters

- `org_id` string, required

## Request body

- object
  - `data` unknown, required
  - `view_name` string, required: User-readable name of the view, must be unique within the organization.
  - `view_type` string, nullable: View kind, `logs`, `traces` or `metrics_explorer`; absent means `logs`.

## Response `200`

Success

- object
  - `org_id` string, required
  - `view_id` string, required
  - `view_name` string, required

## Other responses

- `400`: Failure
- `500`: Failure

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
