Skip to main content
POST
/
api
/
v1
/
views
Create a view
curl --request POST \
  --url https://app.promptingco.com/api/v1/views \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "brandId": "<string>"
}
'
{
  "ok": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "brandId": "<string>",
    "organizationId": "<string>",
    "isDefault": true,
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "deletedAt": "<string>",
    "conversationCount": 1,
    "brand": {
      "id": "<string>",
      "name": "<string>",
      "slug": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.promptingcompany.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer session or OAuth access token. Available OAuth scopes:

  • content:read: Read site pages, markdown content, and llms.txt files
  • content:write: Create, update, and delete site pages and content
  • prompts:read: Read prompts, topics, and prompt analysis results
  • prompts:write: Create, update, archive prompts
  • simulations:read: Read agent-simulation tasks, runs, environments, and analytics
  • simulations:write: Create and trigger simulation runs
  • logs:read: Read AI-traffic logs and request-level audit events
  • analytics:read: Read analytics aggregates (rankings, mentions, sources, SOV)
  • products:read: Read product metadata and competitor data
  • products:write: Update product settings and competitor lists

Body

application/json
name
string
required
Required string length: 1 - 100
brandId
string
required
Minimum string length: 1
description
string
Maximum string length: 500
conversationQueryIds
string[]

Response

Successful response

ok
enum<boolean>
required
Available options:
true
data
object
required