API Documentation
Serve schema and manage pages from your server.
Getting Started
The v2 API lists and selects pages, starts schema generation and serves JSON-LD. Every call needs an API key.
Authentication
All API requests must include your API key in the Authorization header using the Bearer scheme:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://brandop.ai/api/v2/pagesBase URL
https://brandop.ai/api/v2API Endpoints
Complete REST API reference - All endpoints use API key authentication
Pages
/pagesList all pages for the workspace (automatically determined from API key)
Query params: page, limit, activeOnly
/pagesCreate a new page manually.
{
"urlPath": "/new-page"
}/pagesSelect or deselect a page for schema delivery. A deselected page stops at once.
{
"urlPath": "/about",
"isSelectedForSchema": true
}Schemas
/schema?urlPath=/aboutGet the latest schema for a page by URL path. Send the path without a trailing slash. Query strings are ignored. A new page returns schema null until its first generation finishes. A regenerated page keeps the previous schema until the new one is ready. Brandop caches each schema for up to one hour. A new generation, an edit or a restore clears the cache.
/schema/processAll-in-one endpoint: creates the page if needed, crawls it if there is no HTML, generates schema and selects the page for delivery. A page with a manual edit starts no job.
{
"urlPath": "/about"
}Analytics
/analyticsGet schema delivery stats: total requests, requests this week, active pages, unique paths, the last 7 days and the top 10 paths.
Jobs
/jobs/stopCancels every pending and running job in the workspace: crawls, schema generation, AI visibility scans and Content Studio jobs. Pages with no schema yet are deselected. Returns the count and details of the stopped jobs. Use it with care.
Response: stoppedCount, jobs[] (id, type, previousStatus)
Response Format
All API responses follow this format:
{
"success": true,
"data": { ... }
}{
"error": "Error message here"
}Rate Limiting
API requests are rate limited per workspace in a one-minute window. The limit depends on your plan. See the plan limits on the technical docs page.
Rate limit information is included in response headers:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640000000Rate limits per plan and the status codes of each endpoint are in Technical docs. Full responses are in the Quickstart.
Example Requests
Complete examples using cURL
# List all pages for the workspace (determined by API key)
curl -X GET https://brandop.ai/api/v2/pages \
-H "Authorization: Bearer YOUR_API_KEY"
# List only active pages (with schema enabled)
curl -X GET "https://brandop.ai/api/v2/pages?activeOnly=true" \
-H "Authorization: Bearer YOUR_API_KEY"
# Create a new page manually
curl -X POST https://brandop.ai/api/v2/pages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"urlPath": "/new-page"
}'
# Select a page for schema delivery (a deselected page stops at once)
curl -X PATCH https://brandop.ai/api/v2/pages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"urlPath": "/about",
"isSelectedForSchema": true
}'
# Get schema for a page by URL path (no trailing slash; query strings are ignored)
curl -X GET "https://brandop.ai/api/v2/schema?urlPath=/about" \
-H "Authorization: Bearer YOUR_API_KEY"
# Process schema (all-in-one: create page + crawl + generate + activate)
# A page with a manual edit starts no job (hasCustomSchema: true)
curl -X POST https://brandop.ai/api/v2/schema/process \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"urlPath": "/about"
}'
# Get schema delivery analytics
curl -X GET https://brandop.ai/api/v2/analytics \
-H "Authorization: Bearer YOUR_API_KEY"
# Cancel every pending and running job in the workspace (crawls, schema,
# AI visibility scans, Content Studio). Pages with no schema yet are deselected.
curl -X POST https://brandop.ai/api/v2/jobs/stop \
-H "Authorization: Bearer YOUR_API_KEY"Best Practices
- Store API keys securely in environment variables
- Implement exponential backoff for rate limit errors (429)
- Use urlPath parameter to identify pages (not internal IDs)
- Rotate API keys regularly for security
- The workspace is set by your API key
HTTP Status Codes
| Status | Description |
|---|---|
200 | Success |
201 | Created. Returned when a page is added or a processing job starts. |
400 | Bad request. A parameter is missing or invalid. |
401 | Unauthorized. The API key is missing or invalid. Other v2 routes also return 401 when the plan has no API access or the workspace is inactive. |
403 | Forbidden. Returned by GET /api/v2/schema when the plan has no API access or the workspace is inactive. |
404 | Not found. On GET /api/v2/schema: the page does not exist or is not selected for schema. |
409 | Conflict. The page already exists. |
429 | Too many requests. The per-minute rate limit is exceeded. |
500 | Internal server error. |