---
title: "Add conversations to a view"
method: POST
path: "/api/v1/views/{viewId}/conversations"
tags: ["Visibility & Mentions"]
---

# Add conversations to a view

`POST /api/v1/views/{viewId}/conversations`

## Request

- Base URL: `https://app.promptingco.com`
- URL: `https://app.promptingco.com/api/v1/views/{viewId}/conversations`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

Adds conversation queries of the view's brand to the view. Send conversationQueryIds, or promptIds to add each prompt's active conversation queries, not both. Ids outside the brand are skipped; the request fails with 400 when none are valid. Answers 200 with addedCount 0 when every valid id is already in the view.

## Path parameters

- `viewId` string, required

## Request body

- union
  - object
    - `conversationQueryIds` string[], required
    - `promptIds` string[]
  - object
    - `conversationQueryIds` string[]
    - `promptIds` string[], required

## Response `200`

Every valid conversation query was already in the view

- object
  - `ok` true, required
  - `data` unknown

## Other responses

- `201`: Successful response
- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Not found
- `422`: Validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api.md) - [All operations](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/revisions/c0451ea10e9a?raw)
