Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Pineprompt Brands API
description: 'The Pineprompt REST API gives you programmatic access to everything Pineprompt monitors on your behalf: how ChatGPT, Gemini, Claude, Google AI Overview, and Google AI Mode answer questions about your brand. Grok is listed but temporarily unavailable.'
contact:
name: Pineprompt Support
email: support@pineprompt.com
version: 1.0.0
servers:
- url: https://pineprompt.com
description: Production
tags:
- name: Brands
description: 'Brands are the entities matched against platform answers: your own brand and any competitors you would like to track. Brand matches are what drive share of voice, sentiment, and citation tracking. Brands themselves are created by Pineprompt; only their classification is editable.'
x-title: Brands
x-objects:
- Brand
paths:
/api/v1/brands:
get:
tags:
- Brands
summary: List brands
description: Returns every brand belonging to the active project. The response is paginated.
operationId: list-brands
parameters:
- $ref: '#/components/parameters/ProjectHeader'
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
- name: sort_by
in: query
description: The column to sort by. Defaults to `display_name`.
required: false
schema:
type: string
enum:
- created_at
- updated_at
- display_name
- $ref: '#/components/parameters/SortOrder'
- $ref: '#/components/parameters/IncludeBrand'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/BrandList'
'400':
description: Missing project header
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Missing required header Pineprompt-Project-Id.
'401':
description: Unauthorized
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Unauthenticated.
'403':
description: Missing ability
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: 'Missing ability: brands:read'
'404':
description: Project not in this organization
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Project not found.
'422':
description: Validation failed
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorEnvelope'
example:
message: Invalid sort_by value.
errors:
sort_by:
- Invalid sort_by value.
security:
- BearerToken:
- brands:read
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET https://pineprompt.com/api/v1/brands \\\n -H \"Authorization: Bearer $PINEPROMPT_TOKEN\" \\\n -H \"Pineprompt-Project-Id: 1\""
- lang: javascript
label: JavaScript (fetch)
source: "const response = await fetch(\"https://pineprompt.com/api/v1/brands\", {\n method: \"GET\",\n headers: {\n \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n \"Pineprompt-Project-Id\": \"1\",\n },\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
- lang: python
label: Python (requests)
source: "import os\nimport requests\n\nresponse = requests.get(\n \"https://pineprompt.com/api/v1/brands\",\n headers={\n \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n \"Pineprompt-Project-Id\": \"1\",\n },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
- lang: php
label: PHP (Guzzle)
source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->get('https://pineprompt.com/api/v1/brands', [\n 'headers' => [\n 'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n 'Pineprompt-Project-Id' => '1',\n ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
post:
tags:
- Brands
summary: Create a brand
description: Creates a brand in the active project. Typically, Pineprompt discovers brands from AI responses on its own, so you should reach for this endpoint when you want to track a brand before it has appeared in a response. Segment membership is what makes a brand a competitor, so a brand created with `segment_ids` starts out tracked and one created without them starts out `discovered`. If you would like to designate a brand as the project's own brand, you may point the project's `brand_id` at it via the update-project endpoint.
operationId: create-brand
parameters:
- $ref: '#/components/parameters/ProjectHeader'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/StoreBrand'
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/Brand'
'400':
description: Missing project header
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Missing required header Pineprompt-Project-Id.
'401':
description: Unauthorized
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Unauthenticated.
'403':
description: Missing ability
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: 'Missing ability: brands:write'
'404':
description: Project not in this organization
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Project not found.
'422':
description: Validation failed
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorEnvelope'
example:
message: The field name is required.
errors:
field_name:
- The field name is required.
security:
- BearerToken:
- brands:write
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X POST https://pineprompt.com/api/v1/brands \\\n -H \"Authorization: Bearer $PINEPROMPT_TOKEN\" \\\n -H \"Pineprompt-Project-Id: 1\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"display_name\": \"Vrbo\",\n \"aliases\": [\n \"Vrbo\",\n \"vrbo.com\"\n ],\n \"domains\": [\n \"vrbo.com\"\n ],\n \"segment_ids\": [\n 7\n ]\n}'"
- lang: javascript
label: JavaScript (fetch)
source: "const response = await fetch(\"https://pineprompt.com/api/v1/brands\", {\n method: \"POST\",\n headers: {\n \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n \"Pineprompt-Project-Id\": \"1\",\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n display_name: \"Vrbo\",\n aliases: [\"Vrbo\", \"vrbo.com\"],\n domains: [\"vrbo.com\"],\n segment_ids: [7],\n }),\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
- lang: python
label: Python (requests)
source: "import os\nimport requests\n\nresponse = requests.post(\n \"https://pineprompt.com/api/v1/brands\",\n headers={\n \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n \"Pineprompt-Project-Id\": \"1\",\n \"Content-Type\": \"application/json\",\n },\n json={\n \"display_name\": \"Vrbo\",\n \"aliases\": [\"Vrbo\", \"vrbo.com\"],\n \"domains\": [\"vrbo.com\"],\n \"segment_ids\": [7],\n },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
- lang: php
label: PHP (Guzzle)
source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->post('https://pineprompt.com/api/v1/brands', [\n 'headers' => [\n 'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n 'Pineprompt-Project-Id' => '1',\n ],\n 'json' => [\n 'display_name' => 'Vrbo',\n 'aliases' => ['Vrbo', 'vrbo.com'],\n 'domains' => ['vrbo.com'],\n 'segment_ids' => [7],\n ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
/api/v1/brands/{brand}:
get:
tags:
- Brands
summary: Get a brand
description: Returns a single brand. The brand must belong to the active project.
operationId: get-brand
parameters:
- $ref: '#/components/parameters/ProjectHeader'
- name: brand
in: path
description: The numeric ID of the brand.
required: true
schema:
type: integer
example: 555
- $ref: '#/components/parameters/IncludeBrand'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Brand'
'400':
description: Missing project header
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Missing required header Pineprompt-Project-Id.
'401':
description: Unauthorized
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Unauthenticated.
'403':
description: Missing ability
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: 'Missing ability: brands:read'
'404':
description: Not found
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Brand not found.
'422':
description: Validation failed
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorEnvelope'
example:
message: Invalid sort_by value.
errors:
sort_by:
- Invalid sort_by value.
security:
- BearerToken:
- brands:read
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET https://pineprompt.com/api/v1/brands/555 \\\n -H \"Authorization: Bearer $PINEPROMPT_TOKEN\" \\\n -H \"Pineprompt-Project-Id: 1\""
- lang: javascript
label: JavaScript (fetch)
source: "const response = await fetch(\"https://pineprompt.com/api/v1/brands/555\", {\n method: \"GET\",\n headers: {\n \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n \"Pineprompt-Project-Id\": \"1\",\n },\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
- lang: python
label: Python (requests)
source: "import os\nimport requests\n\nresponse = requests.get(\n \"https://pineprompt.com/api/v1/brands/555\",\n headers={\n \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n \"Pineprompt-Project-Id\": \"1\",\n },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
- lang: php
label: PHP (Guzzle)
source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->get('https://pineprompt.com/api/v1/brands/555', [\n 'headers' => [\n 'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n 'Pineprompt-Project-Id' => '1',\n ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
patch:
tags:
- Brands
summary: Update a brand
description: 'Updates a brand''s display name, aliases, domains, or ignored state. Every field is optional, so you may send only the fields you would like to change; a field that is omitted keeps its current value. A brand''s kind is derived from its context and cannot be written directly: pass `ignored` to move the brand in or out of the ignored state, attach it to a segment to make it a competitor, or point the project''s `brand_id` at it to make it the own brand. An ignored brand cannot sit in a segment, so ignoring one detaches it everywhere; ignoring the own brand returns a `422`.'
operationId: update-brand
parameters:
- $ref: '#/components/parameters/ProjectHeader'
- name: brand
in: path
description: The numeric ID of the brand.
required: true
schema:
type: integer
example: 555
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateBrand'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Brand'
'400':
description: Missing project header
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Missing required header Pineprompt-Project-Id.
'401':
description: Unauthorized
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Unauthenticated.
'403':
description: Missing ability
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: 'Missing ability: brands:write'
'404':
description: Not found
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Brand not found.
'422':
description: Validation failed
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorEnvelope'
example:
message: The field name is required.
errors:
field_name:
- The field name is required.
security:
- BearerToken:
- brands:write
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X PATCH https://pineprompt.com/api/v1/brands/555 \\\n -H \"Authorization: Bearer $PINEPROMPT_TOKEN\" \\\n -H \"Pineprompt-Project-Id: 1\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"display_name\": \"Vrbo\",\n \"aliases\": [\n \"Vrbo\",\n \"vrbo.com\"\n ],\n \"domains\": [\n \"vrbo.com\"\n ],\n \"ignored\": true\n}'"
- lang: javascript
label: JavaScript (fetch)
source: "const response = await fetch(\"https://pineprompt.com/api/v1/brands/555\", {\n method: \"PATCH\",\n headers: {\n \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n \"Pineprompt-Project-Id\": \"1\",\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n display_name: \"Vrbo\",\n aliases: [\"Vrbo\", \"vrbo.com\"],\n domains: [\"vrbo.com\"],\n ignored: true,\n }),\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
- lang: python
label: Python (requests)
source: "import os\nimport requests\n\nresponse = requests.patch(\n \"https://pineprompt.com/api/v1/brands/555\",\n headers={\n \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n \"Pineprompt-Project-Id\": \"1\",\n \"Content-Type\": \"application/json\",\n },\n json={\n \"display_name\": \"Vrbo\",\n \"aliases\": [\"Vrbo\", \"vrbo.com\"],\n \"domains\": [\"vrbo.com\"],\n \"ignored\": True,\n },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
- lang: php
label: PHP (Guzzle)
source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->patch('https://pineprompt.com/api/v1/brands/555', [\n 'headers' => [\n 'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n 'Pineprompt-Project-Id' => '1',\n ],\n 'json' => [\n 'display_name' => 'Vrbo',\n 'aliases' => ['Vrbo', 'vrbo.com'],\n 'domains' => ['vrbo.com'],\n 'ignored' => true,\n ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
components:
schemas:
Project:
title: The project object
description: A project represents a single brand or site you monitor. Its `brand_id` names the own brand, the brand every core metric is computed for.
properties:
id:
description: The unique ID of the project.
type: integer
example: 42
organization_id:
description: The ID of the organization that owns the project.
type: integer
example: 7
name:
description: The display name of the project.
type: string
example: Acme Marketing
brand_id:
description: The ID of the project's own brand, or null while none has been designated.
type:
- integer
- 'null'
example: 555
organization:
description: The parent organization. Returned when requested via `include=organization`.
allOf:
- $ref: '#/components/schemas/Organization'
x-relation: include
created_at:
description: When the project was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the project was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
PaginationLink:
title: Pagination link
properties:
url:
description: The URL for this link, or `null` for the disabled previous and next boundaries.
type:
- string
- 'null'
example: https://pineprompt.com/api/v1/monitors?page=2
label:
description: The label for this link, either a page number or a localized previous or next caption.
type: string
example: '2'
page:
description: The page number this link points to, or `null` for the disabled previous and next boundaries.
type:
- integer
- 'null'
example: 2
active:
description: Whether this link is the page currently being returned.
type: boolean
example: false
type: object
PaginationMeta:
title: Pagination metadata
properties:
current_page:
type: integer
example: 1
from:
type:
- integer
- 'null'
example: 1
last_page:
type: integer
example: 1
path:
type: string
example: https://pineprompt.com/api/v1/monitors
per_page:
type: integer
example: 25
to:
type:
- integer
- 'null'
example: 1
total:
type: integer
example: 1
links:
description: The page-link rows, in display order from the first page through the last. The set always opens with a previous link and closes with a next link.
type: array
items:
$ref: '#/components/schemas/PaginationLink'
type: object
Brand:
title: The brand object
description: 'A brand is an entity Pineprompt matches against platform answers: your own brand, a competitor you track, or a brand discovered in an answer. Matches are found through the display name, the aliases, and the domains.'
properties:
id:
description: The unique ID of the brand.
type: integer
example: 555
project_id:
description: The ID of the project the brand belongs to.
type: integer
example: 42
display_name:
description: The canonical display name of the brand.
type: string
example: Acme Inc.
aliases:
description: Alternative names that the brand is referred to by.
type: array
items:
type: string
example:
- Acme
- Acme Co
domains:
description: The web domains associated with the brand.
type: array
items:
type: string
example:
- acme.com
- acme.co
kind:
description: 'The brand''s classification, derived from its context rather than stored: the brand the project''s `brand_id` points at is `own`, a brand with `ignored_at` set is `ignored`, a brand attached to any segment is a `competitor`, and a brand with none of those is `discovered`. This field is read-only.'
type: string
example: competitor
enum:
- own
- competitor
- discovered
- ignored
color:
description: A hex color used to color the brand consistently across charts. It is derived from the brand's favicon, or assigned automatically when no color can be derived. This field is read-only and is always present.
type: string
example: '#008FFB'
ignored_at:
description: When the brand was ignored, or null while it is not. Set and cleared through the `ignored` field on the update endpoint.
type:
- string
- 'null'
format: date-time
example: null
project:
description: The parent project. Returned when requested via `include=project` or `include=project.organization`.
allOf:
- $ref: '#/components/schemas/Project'
x-relation: include
created_at:
description: When the brand was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the brand was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
PaginationLinks:
title: Pagination links
properties:
first:
type:
- string
- 'null'
example: https://pineprompt.com/api/v1/monitors?page=1
last:
type:
- string
- 'null'
example: https://pineprompt.com/api/v1/monitors?page=1
prev:
type:
- string
- 'null'
example: null
next:
type:
- string
- 'null'
example: null
type: object
UpdateBrand:
title: Update a brand
properties:
display_name:
description: The name the brand is shown under. Display names are unique per project and case-insensitive, and a display name may not collide with an alias of another brand, since both would compete for the same mentions.
type: string
example: Vrbo
maxLength: 255
minLength: 2
aliases:
description: The names Pineprompt matches against when it attributes a mention to the brand. Aliases are stored as you send them and compared while ignoring casing and punctuation. The list you send replaces the current one.
type: array
items:
type: string
maxLength: 255
example:
- Vrbo
- vrbo.com
minItems: 1
domains:
description: The domains Pineprompt matches against when it attributes a citation to the brand. The list you send replaces the current one. You may pass full URLs; each entry is reduced to a bare lowercase host before it is stored.
type: array
items:
type: string
maxLength: 255
example:
- vrbo.com
ignored:
description: Pass `true` to ignore the brand. An ignored brand cannot sit in a segment, so it is detached from every segment as the mark is set; ignoring the own brand returns a `422`. Pass `false` to clear the mark and return the brand to the `discovered` pool.
type: boolean
example: true
type: object
x-form-request: App\Http\Requests\Projects\UpdateBrandRequest
StoreBrand:
title: Create a brand
required:
- display_name
properties:
display_name:
description: The name the brand is shown under. Display names are unique per project and case-insensitive, and a display name may not collide with an alias of another brand, since both would compete for the same mentions.
type: string
example: Vrbo
maxLength: 255
minLength: 2
aliases:
description: The names Pineprompt matches against when it attributes a mention to the brand. Aliases are stored as you send them and compared while ignoring casing and punctuation. When omitted, the brand is seeded with its display name.
type: array
items:
type: string
maxLength: 255
example:
- Vrbo
- vrbo.com
minItems: 1
domains:
description: The domains Pineprompt matches against when it attributes a citation to the brand. You may pass full URLs; each entry is reduced to a bare lowercase host before it is stored.
type: array
items:
type: string
maxLength: 255
example:
- vrbo.com
segment_ids:
description: The ids of the project segments the brand should join. Segment membership is what makes a brand a competitor, so a brand created with segments starts out tracked and one created without them starts out `discovered`. Each id must name a segment of the project.
type: array
items:
type: integer
example:
- 7
type: object
x-form-request: App\Http\Requests\Projects\StoreBrandRequest
BrandList:
properties:
data:
type: array
items:
$ref: '#/components/schemas/Brand'
links:
$ref: '#/components/schemas/PaginationLinks'
meta:
$ref: '#/components/schemas/PaginationMeta'
type: object
ErrorEnvelope:
properties:
message:
type: string
type: object
Organization:
title: The organization object
description: An organization is the top-level billing entity and tenant boundary in Pineprompt. Every project, member, and API key belongs to exactly one organization.
properties:
id:
description: The unique ID of the organization.
type: integer
example: 7
name:
description: The display name of the organization.
type: string
example: Acme Inc.
plan:
description: The key of the active plan, or null when the organization has no active subscription (including a past-due one). Without an active plan, daily monitor runs and write operations are unavailable.
type:
- string
- 'null'
example: pro
billing_url:
description: The billing page where the organization owner can choose a plan or fix a failed payment. Only set when the organization has no active plan and the request is made in the owner membership context (MCP organization tools); always null over the REST API.
type:
- string
- 'null'
format: uri
example: https://pineprompt.io/settings/organizations/7/billing
created_at:
description: When the organization was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the organization was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
ValidationErrorEnvelope:
properties:
message:
type: string
errors:
type: object
additionalProperties:
type: array
items:
type: string
type: object
parameters:
PerPage:
name: per_page
in: query
description: The number of items per page. Defaults to `25`, maximum `100`.
required: false
schema:
type: integer
example: 25
Page:
name: page
in: query
description: The page number to return. Defaults to `1`.
required: false
schema:
type: integer
example: 1
IncludeBrand:
name: include
in: query
description: 'A comma-separated list of related resources to include in the response. Allowed values: `project`, `project.organization`.'
required: false
schema:
type: string
example: project
SortOrder:
name: sort_order
in: query
description: The direction to sort by. Each endpoint has its own default.
required: false
schema:
type: string
enum:
- asc
- desc
ProjectHeader:
name: Pineprompt-Project-Id
in: header
description: The active project's numeric ID.
required: true
schema:
type: integer
securitySchemes:
BearerToken:
type: http
description: An API key bound to a single organization.
bearerFormat: Pineprompt API Key
scheme: bearer