Pineprompt Citations API
A citation is a single URL that an AI platform linked to inside a response. Pineprompt aggregates citations into sources, which lets you see which pages drive your visibility over time. Citations are read-only.
A citation is a single URL that an AI platform linked to inside a response. Pineprompt aggregates citations into sources, which lets you see which pages drive your visibility over time. Citations are read-only.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pineprompt-com:pineprompt-com-citations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Pineprompt Citations 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: Citations
description: A citation is a single URL that an AI platform linked to inside a response. Pineprompt aggregates citations into sources, which lets you see which pages drive your visibility over time. Citations are read-only.
x-title: Citations
x-objects:
- Citation
paths:
/api/v1/citations:
get:
tags:
- Citations
summary: List citations
description: Returns every citation collected across the active project. The response is paginated, with the newest citations returned first by default.
operationId: list-citations
parameters:
- $ref: '#/components/parameters/ProjectHeader'
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
- name: response_id
in: query
description: Limit results to citations belonging to a single response.
required: false
schema:
type: integer
example: 7842
- name: sort_by
in: query
description: The column to sort by. Defaults to `created_at`.
required: false
schema:
type: string
enum:
- created_at
- updated_at
- position
- $ref: '#/components/parameters/SortOrder'
- $ref: '#/components/parameters/IncludeCitation'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/CitationList'
'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: citations: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:
- citations:read
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET https://pineprompt.com/api/v1/citations \\\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/citations\", {\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/citations\",\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/citations', [\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);"
/api/v1/citations/{citation}:
get:
tags:
- Citations
summary: Get a citation
description: Returns a single citation. The citation must belong to a response in the active project.
operationId: get-citation
parameters:
- $ref: '#/components/parameters/ProjectHeader'
- name: citation
in: path
description: The numeric ID of the citation.
required: true
schema:
type: integer
example: 55821
- $ref: '#/components/parameters/IncludeCitation'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Citation'
'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: citations:read'
'404':
description: Not found
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Citation 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:
- citations:read
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET https://pineprompt.com/api/v1/citations/55821 \\\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/citations/55821\", {\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/citations/55821\",\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/citations/55821', [\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);"
components:
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
IncludeCitation:
name: include
in: query
description: 'A comma-separated list of related resources to include in the response. Allowed values: `response`, `response.prompt`, `response.monitor`, `response.project`, `source_url`, `source_url.source`, `source_url.source.project`.'
required: false
schema:
type: string
example: source_url
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
schemas:
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
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
Citation:
title: The citation object
description: A citation is a single link an AI platform included in a response, recorded with the URL, its title and domain, and its position in the citation list.
properties:
id:
description: The unique ID of the citation.
type: integer
example: 55821
response_id:
description: The numeric ID of the response this citation came from. You may pass this ID to the `response_id` filter on the list endpoint.
type: integer
example: 7842
source_url_id:
description: The numeric ID of the classified source URL this citation belongs to.
type: integer
example: 3104
url:
description: The URL that the AI platform cited.
type: string
example: https://example.com/blog/comparison
title:
description: The title of the cited page, if known.
type:
- string
- 'null'
example: Comparison of AI visibility tools
description:
description: A short description of the cited page, if known.
type:
- string
- 'null'
domain:
description: The domain of the source that this citation belongs to.
type:
- string
- 'null'
example: example.com
position:
description: The one-indexed order in which the citation appeared in the response. A position of `1` means it was the first citation in the answer.
type:
- integer
- 'null'
example: 1
response:
description: The response this citation came from. Returned when requested via `include=response` or a deeper chain.
allOf:
- $ref: '#/components/schemas/Response'
x-relation: include
source_url:
description: The classified source URL this citation belongs to. Returned when requested via `include=source_url` or `include=source_url.source`.
allOf:
- $ref: '#/components/schemas/SourceUrl'
x-relation: include
created_at:
description: When the citation was recorded.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the citation was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
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
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
Response:
title: The response object
description: A response is one captured answer from an AI platform to one prompt on a single daily run. It carries the rendered content, the model that produced it, the monitor's country and language, and any search queries the platform issued.
properties:
id:
description: The unique ID of the response.
type: integer
example: 7842
prompt_id:
description: The numeric ID of the prompt that produced this response. You may pass this ID to the `prompt_id` filter on the list endpoint.
type: integer
example: 901
monitor_id:
description: The numeric ID of the monitor this response ran under.
type: integer
example: 271
prompt_text:
description: The exact prompt text the platform was given.
type: string
example: What are the best AI visibility monitoring tools?
platform:
description: The AI platform that produced this answer.
type: string
example: chatgpt
model:
description: The model identifier reported by the platform.
type: string
example: gpt-4
country:
description: The ISO 3166-1 alpha-2 country code the response was run in.
type: string
example: US
language:
description: The language the response was run in.
type: string
example: en
content:
description: The raw markdown content the platform produced.
type: string
html:
description: The rendered HTML form of the content, suitable for display.
type: string
excerpt:
description: A whitespace-collapsed plain-text excerpt of the content, suitable for list views.
type: string
search_queries:
description: The web search queries the platform ran while producing this answer, if any.
type:
- array
- 'null'
items:
type: string
prompt:
description: The originating prompt. Returned when requested via `include=prompt` or a deeper chain such as `prompt.monitor.project.organization`.
allOf:
- $ref: '#/components/schemas/Prompt'
x-relation: include
monitor:
description: The monitor this response ran under. Returned when requested via `include=monitor` or a deeper chain.
allOf:
- $ref: '#/components/schemas/Monitor'
x-relation: include
project:
description: The project this response belongs to. Returned when requested via `include=project` or `include=project.organization`.
allOf:
- $ref: '#/components/schemas/Project'
x-relation: include
created_at:
description: When the response was recorded.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the response was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
ErrorEnvelope:
properties:
message:
type: string
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
Monitor:
title: The monitor object
description: 'A monitor is a configured daily run: a set of prompts bound to one or more AI platforms in a chosen country and language. While a monitor is active, Pineprompt runs it once per day on your behalf.'
properties:
id:
description: The unique ID of the monitor.
type: integer
example: 271
project_id:
description: The ID of the project this monitor runs under.
type: integer
example: 42
name:
description: The display name of the monitor.
type: string
example: Brand visibility (US)
platforms:
description: The AI platforms the monitor runs against.
type: array
items:
type: string
example:
- chatgpt
- gemini
- claude
country:
description: The ISO 3166-1 alpha-2 country code.
type: string
example: US
language:
description: The language the monitor runs in.
type: string
example: en
is_active:
description: Whether the monitor will run on its next daily run.
type: boolean
example: true
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 monitor was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the monitor was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
SourceUrl:
title: The source URL object
description: A single URL that an AI platform cited. Every source URL belongs to a source, the domain that issued it.
properties:
id:
description: The unique ID of the source URL.
type: integer
example: 9912
source_id:
description: The ID of the source (domain) this URL belongs to.
type: integer
example: 4421
url:
description: The full URL that the platform cited.
type: string
example: https://example.com/article
title:
description: The page title for this URL. `null` until a title is known.
type:
- string
- 'null'
example: Comparison of AI visibility tools
type:
description: The URL's classification, as determined by Pineprompt.
type:
- string
- 'null'
analyzed_at:
description: When the URL was most recently analyzed by Pineprompt.
type:
- string
- 'null'
format: date-time
source:
description: The parent source (domain). Returned when requested via `include=source_url.source` from a citation.
allOf:
- $ref: '#/components/schemas/Source'
x-relation: include
created_at:
description: When the source URL was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the source URL was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
Prompt:
title: The prompt object
description: A prompt is a single question Pineprompt asks the AI platforms on your behalf. An active prompt runs with its monitor once per day; an inactive prompt keeps its history but no longer runs.
properties:
id:
description: The unique ID of the prompt.
type: integer
example: 901
monitor_id:
description: The ID of the monitor that owns this prompt.
type: integer
example: 271
prompt:
description: The question text the monitor asks each platform on every run.
type: string
example: What are the best AI visibility monitoring tools?
is_active:
description: Whether the prompt will run on each daily run of its monitor.
type: boolean
example: true
monitor:
description: The parent monitor. Returned when requested via `include=monitor` or a deeper chain.
allOf:
- $ref: '#/components/schemas/Monitor'
x-relation: include
created_at:
description: When the prompt was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the prompt was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
CitationList:
properties:
data:
type: array
items:
$ref: '#/components/schemas/Citation'
links:
$ref: '#/components/schemas/PaginationLinks'
meta:
$ref: '#/components/schemas/PaginationMeta'
type: object
Source:
title: The source object
description: A source is a domain that an AI platform cited inside an answer, recorded with its type classification and a playbook of recommended actions.
properties:
id:
description: The unique ID of the source.
type: integer
example: 4096
project_id:
description: The ID of the project the source belongs to.
type: integer
example: 42
domain:
description: The domain of the cited URL.
type: string
example: example.com
type:
description: The source type, as classified by Pineprompt.
type:
- string
- 'null'
example: blog
playbook:
description: The playbook category the source falls under.
type:
- string
- 'null'
example: pitch
enum:
- pitch
- buy
- participate
- claim
- hands_off
- null
analyzed_at:
description: When the source was most recently analyzed, or `null` if it has not yet been analyzed.
type:
- string
- 'null'
format: date-time
example: '2026-05-15T09:11:42+00:00'
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 source was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the source was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
securitySchemes:
BearerToken:
type: http
description: An API key bound to a single organization.
bearerFormat: Pineprompt API Key
scheme: bearer