API Overview
The REST API gives you the same brands, questions, answers and results you see in the dashboard, so you can pull them into your own reports and tools. It comes with every paid plan.
https://app.vyingfor.com/api/v1Authentication
Create a key in the app under Organization Settings → API Keys (organization admins only). Each key works inside one workspace. It can read only, or read and change things. You can limit it to some of your brands, and give it an expiry of 30, 90, 180 or 365 days, or none.
Send the key with every request:
curl https://app.vyingfor.com/api/v1/me \
-H "Authorization: Bearer YOUR_API_KEY"The Describe the Calling Key endpoint tells you which workspace and brands a key can reach. Keep keys secret: anyone with a key can act as it.
| Access | What It Allows |
|---|---|
read | Reading brands, questions, competitors, answers, sources, results, and your plan and usage |
write | Everything read allows, plus adding and changing brands, questions and competitors, and removing competitors. To stop tracking a question, turn it off. |
Errors
Every error has the same shape, with a code that stays the same so your code can check it:
{ "error": "Not Found", "message": "Brand not found", "code": "not_found" }401: the key is missing or not valid, or the workspace isn't on a paid plan.403: the key is valid but doesn't have the access the request needs. The message says which.404: the thing doesn't exist, or the key can't reach it. Both look the same on purpose.409: a limit was reached, such as the number of questions a brand can have, or the thing already exists.429: too many requests. Wait and try again.
Pages and Dates
Lists take page (starting at 1) and limit, and return a pagination object. Each endpoint's page shows its default and largest limit: 100 for most lists, 1,000 for questions and results lists. Times are ISO 8601 in UTC, and dates are YYYY-MM-DD.
Results endpoints take a start and an end time. The start is included and the end is not, so 2026-11-01T00:00:00Z to 2026-12-01T00:00:00Z is exactly November. Times are rounded down to the quarter hour, and a window can be at most 1,096 days long. Question snapshots take startDate and endDate as UTC days instead, and include both.
Endpoints
Identity
- Describe the Calling Key
GET /me
Brands
- List Brands
GET /brands - Create a Brand
POST /brands - Get a Brand
GET /brands/{brandId} - Update a Brand
PATCH /brands/{brandId}
Prompts
- List All Prompts
GET /prompts - Create a New Prompt
POST /prompts - Get a Prompt
GET /prompts/{promptId} - Update a Prompt
PATCH /prompts/{promptId}
Competitors
- List Competitors
GET /competitors - Add a Competitor
POST /competitors - Get a Competitor
GET /competitors/{competitorId} - Update a Competitor
PATCH /competitors/{competitorId} - Delete a Competitor
DELETE /competitors/{competitorId}
Analytics
- Get a Brand's Analytics
GET /brands/{brandId}/analytics - Get Brand Visibility Series
GET /brands/{brandId}/analytics/visibility - Get Brand Share of Voice
GET /brands/{brandId}/analytics/share-of-voice - List Cited Domains
GET /brands/{brandId}/citations/domains - List Cited URLs
GET /brands/{brandId}/citations/urls - List Named Organisations
GET /brands/{brandId}/entities - List Prompt Performance
GET /brands/{brandId}/prompt-performance - Get Query Fan-out
GET /brands/{brandId}/query-fanout
Runs
- List Runs for a Prompt
GET /prompts/{promptId}/runs - Get a Run
GET /prompts/{promptId}/runs/{runId}
Snapshots
- Get Prompt Snapshot
GET /prompts/{promptId}/snapshot
Opportunities
- Get the Latest Opportunities Report
GET /brands/{brandId}/opportunities
Tags
- List a Brand's Tags
GET /brands/{brandId}/tags
Models
- List Trackable Models
GET /models
Organizations
- List Organizations
GET /organizations - Get an Organization
GET /organizations/{organizationId} - Get Billing State
GET /organizations/{organizationId}/billing
Webhooks
- List Webhooks
GET /webhooks - Create a Webhook
POST /webhooks - Get a Webhook
GET /webhooks/{webhookId} - Update a Webhook
PATCH /webhooks/{webhookId} - Delete a Webhook
DELETE /webhooks/{webhookId} - Rotate Webhook Signing Secret
POST /webhooks/{webhookId}/rotate-secret - Send a Test Webhook Ping
POST /webhooks/{webhookId}/test - List Webhook Deliveries
GET /webhooks/{webhookId}/deliveries