SEO audits, reports and exports through the API
SEO audits, reports and exports through the API. HTTP requests, parameters, response schemas and Labrika workflows.
On this page
- Main report
- API method reference — MainReports
- API method reference — Site reports
- Monitoring HTML and screenshots
- API method reference — Files
Main report
main-reports The date, from and to parameters apply to metrics reads through /metrics. Preparing an archive with POST /exports takes the separate body {}, as shown below; do not add date parameters to that POST.
GET /main-reports/sites/{site_uuid}/dates · GET /main-reports/sites/{site_uuid}/metrics
Prepare a ZIP of the current main report using saved branding: DOCX, PDF and available XLSX attachments. This does not start a new audit.
Use date for one snapshot, or from and to for an inclusive range. Each metric array follows the dates array. A null value means the measurement is unavailable.
The account role needs public-api-main-reports.show and general Public API access. The key needs main-reports:read; preparation and downloading also require main-reports:export. Project and content permissions are checked on every request.
- Get site_uuid from the project list and check that export_available is true. Do not use identifiers from dashboard URLs.
- Send POST with an empty JSON object {} and a new Idempotency-Key. Keep export_id and status_url from the response.
- While status is pending or progress, poll status_url every 5–30 seconds. Do not create another export for each poll.
- When status=done, download archive.download_url and verify size_bytes and sha256. HEAD checks availability without spending the download quota.
The project owner's latest saved settings are captured when the request is accepted: company name, contacts, footer, logo, language and selected sections. Later edits do not change this request. Existing XLSX row limits remain in effect; the API reports existing_export_row_limits as a warning.
The ZIP contains mainreport.docx, mainreport.pdf, export_*.xlsx attachments and manifest.json. The manifest lists attachment sizes and SHA-256 hashes. A PDF or attachment failure does not produce a partial ZIP. The file is available until expires_at, approximately one day; revoked permissions can end access sooner.
Project list: limit is 1–100, default 50; offset starts at 0. Follow pagination.next_offset while has_more=true. site_uuid is 32 lowercase hex characters; export_id is a 20-character string returned by preparation. POST accepts only {}, without branding settings or URLs. Idempotency-Key is 1–128 ASCII characters: A–Z, a–z, 0–9, period, underscore, colon or hyphen. Replace SITE_UUID and EXPORT_ID in examples with your values.
/public-api/v1/main-reports/sites
List accessible projects, main report readiness and reasons why export is unavailable.
main-reports:read
curl
curl --fail-with-body --silent --show-error --location \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json' \
'https://app.labrika.com/public-api/v1/main-reports/sites?limit=50&offset=0'
JavaScript
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/main-reports/sites?limit=50&offset=0", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
const responseText = await response.text()
const data = responseText && response.headers.get("content-type")?.includes("application/json") ? JSON.parse(responseText) : responseText
console.log(data)
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
import requests
url = "https://app.labrika.com/public-api/v1/main-reports/sites?limit=50&offset=0"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.request(
"GET",
url,
headers=headers,
timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2) if response.content and "application/json" in response.headers.get("Content-Type", "") else response.text)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/main-reports/sites?limit=50&offset=0');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: application/json',
],
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
if ($response !== '' && str_contains($contentType, 'application/json')) {
print_r(json_decode($response, true, 512, JSON_THROW_ON_ERROR));
} else {
echo $response;
}
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/main-reports/sites?limit=50&offset=0", nil)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "application/json")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
if _, err := io.Copy(os.Stdout, response.Body); err != nil {
panic(err)
}
}
Google Apps Script
function callLabrikaPublicAPI() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/main-reports/sites?limit=50&offset=0", {
method: "get",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
followRedirects: false,
muteHttpExceptions: true,
});
const status = response.getResponseCode();
if (status < 200 || status >= 300) {
throw new Error('HTTP ' + status + ': ' + response.getContentText());
}
Logger.log(response.getContentText());
}
{
"data": [
{
"site_uuid": "d3c9e51b06a44e27831f205ceac20000",
"title": "Demo Shop",
"url": "https://demo-shop.example/",
"main_report_created_at": "2026-11-01T10:00:00Z",
"export_available": true,
"unavailable_reason": null
}
],
"pagination": {
"limit": 50,
"offset": 0,
"next_offset": null,
"has_more": false
}
}
/public-api/v1/main-reports/sites/SITE_UUID/limits
Read the account and project daily quotas and their reset_at time. This request does not spend the download quota.
main-reports:read
curl
curl --fail-with-body --silent --show-error --location \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json' \
'https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/limits'
JavaScript
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/limits", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
const responseText = await response.text()
const data = responseText && response.headers.get("content-type")?.includes("application/json") ? JSON.parse(responseText) : responseText
console.log(data)
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
import requests
url = "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/limits"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.request(
"GET",
url,
headers=headers,
timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2) if response.content and "application/json" in response.headers.get("Content-Type", "") else response.text)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/limits');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: application/json',
],
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
if ($response !== '' && str_contains($contentType, 'application/json')) {
print_r(json_decode($response, true, 512, JSON_THROW_ON_ERROR));
} else {
echo $response;
}
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/limits", nil)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "application/json")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
if _, err := io.Copy(os.Stdout, response.Body); err != nil {
panic(err)
}
}
Google Apps Script
function callLabrikaPublicAPI() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/limits", {
method: "get",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
followRedirects: false,
muteHttpExceptions: true,
});
const status = response.getResponseCode();
if (status < 200 || status >= 300) {
throw new Error('HTTP ' + status + ': ' + response.getContentText());
}
Logger.log(response.getContentText());
}
{
"data": {
"account": {
"limit": 100,
"used": 0,
"remaining": 100,
"reset_at": "2026-11-07T00:00:00Z"
},
"site": {
"limit": 3,
"used": 0,
"remaining": 3,
"reset_at": "2026-11-07T00:00:00Z"
}
}
}
/public-api/v1/main-reports/sites/SITE_UUID/exports
Prepare a ZIP. Usually returns 202 with export_id and status_url; a completed or failed replay returns 200.
main-reports:read + main-reports:export
curl
curl --fail-with-body --silent --show-error --location \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: main-report-001' \
--data '{}' \
'https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports'
JavaScript
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
"Content-Type": "application/json",
"Idempotency-Key": "main-report-001",
},
body: JSON.stringify({}),
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
const responseText = await response.text()
const data = responseText && response.headers.get("content-type")?.includes("application/json") ? JSON.parse(responseText) : responseText
console.log(data)
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
import requests
url = "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
"Content-Type": "application/json",
"Idempotency-Key": "main-report-001",
}
payload = json.loads("{}")
response = requests.request(
"POST",
url,
headers=headers,
json=payload,
timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2) if response.content and "application/json" in response.headers.get("Content-Type", "") else response.text)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: application/json',
'Content-Type: application/json',
'Idempotency-Key: main-report-001',
],
CURLOPT_POSTFIELDS => '{}',
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
if ($response !== '' && str_contains($contentType, 'application/json')) {
print_r(json_decode($response, true, 512, JSON_THROW_ON_ERROR));
} else {
echo $response;
}
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"strings"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodPost, "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports", strings.NewReader("{}"))
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "application/json")
request.Header.Set("Content-Type", "application/json")
request.Header.Set("Idempotency-Key", "main-report-001")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
if _, err := io.Copy(os.Stdout, response.Body); err != nil {
panic(err)
}
}
Google Apps Script
function callLabrikaPublicAPI() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports", {
method: "post",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
"Content-Type": "application/json",
"Idempotency-Key": "main-report-001",
},
payload: "{}",
followRedirects: false,
muteHttpExceptions: true,
});
const status = response.getResponseCode();
if (status < 200 || status >= 300) {
throw new Error('HTTP ' + status + ': ' + response.getContentText());
}
Logger.log(response.getContentText());
}
{
"data": {
"export_id": "c0000000000000000000g",
"site_uuid": "d3c9e51b06a44e27831f205ceac20000",
"status": "pending",
"created_at": "2026-11-06T10:00:00Z",
"finished_at": null,
"expires_at": null,
"main_report_created_at": "2026-11-01T10:00:00Z",
"settings_captured_at": "2026-11-06T10:00:00Z",
"language": "en",
"status_url": "/public-api/v1/main-reports/sites/d3c9e51b06a44e27831f205ceac20000/exports/c0000000000000000000g",
"progress_percent": null,
"retry_after_seconds": 5,
"archive": null,
"warnings": [],
"error": null
}
}
/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID
Read the current request state. HTTP 200 means the state was read successfully; the status field describes the export result.
main-reports:read
curl
curl --fail-with-body --silent --show-error --location \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json' \
'https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID'
JavaScript
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
const responseText = await response.text()
const data = responseText && response.headers.get("content-type")?.includes("application/json") ? JSON.parse(responseText) : responseText
console.log(data)
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
import requests
url = "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.request(
"GET",
url,
headers=headers,
timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2) if response.content and "application/json" in response.headers.get("Content-Type", "") else response.text)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: application/json',
],
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
if ($response !== '' && str_contains($contentType, 'application/json')) {
print_r(json_decode($response, true, 512, JSON_THROW_ON_ERROR));
} else {
echo $response;
}
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID", nil)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "application/json")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
if _, err := io.Copy(os.Stdout, response.Body); err != nil {
panic(err)
}
}
Google Apps Script
function callLabrikaPublicAPI() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID", {
method: "get",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
followRedirects: false,
muteHttpExceptions: true,
});
const status = response.getResponseCode();
if (status < 200 || status >= 300) {
throw new Error('HTTP ' + status + ': ' + response.getContentText());
}
Logger.log(response.getContentText());
}
{
"data": {
"export_id": "c0000000000000000000g",
"site_uuid": "d3c9e51b06a44e27831f205ceac20000",
"status": "done",
"created_at": "2026-11-06T10:00:00Z",
"finished_at": "2026-11-06T10:05:00Z",
"expires_at": "2026-11-07T10:04:00Z",
"main_report_created_at": "2026-11-01T10:00:00Z",
"settings_captured_at": "2026-11-06T10:00:00Z",
"language": "en",
"status_url": "/public-api/v1/main-reports/sites/d3c9e51b06a44e27831f205ceac20000/exports/c0000000000000000000g",
"progress_percent": 100,
"archive": {
"file_name": "mainreport-d3c9e51b06a44e27831f205ceac20000.zip",
"content_type": "application/zip",
"size_bytes": 123456,
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"download_url": "/public-api/v1/main-reports/sites/d3c9e51b06a44e27831f205ceac20000/exports/c0000000000000000000g/download",
"formats": [
"docx",
"pdf",
"xlsx"
]
},
"warnings": [
"existing_export_row_limits"
],
"error": null
}
}
/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download
Download the ready ZIP. Success is HTTP 200 with application/zip; do not save a JSON error as an archive.
main-reports:read + main-reports:export
curl
temporary=$(mktemp) || exit 1
trap 'rm -f "$temporary"' EXIT
if ! response_info=$(curl --fail-with-body --silent --show-error --max-time 300 \
--output "$temporary" --write-out "%{http_code} %{content_type}" \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/zip' \
'https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download'); then
exit 1
fi
if [ "$response_info" != "200 application/zip" ]; then
printf "%s\n" "Unexpected response: $response_info" >&2
exit 1
fi
mv "$temporary" 'mainreport.zip'
JavaScript
const { writeFile } = require("node:fs/promises")
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download", {
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/zip"
},
redirect: "error",
signal: AbortSignal.timeout(300_000),
})
const contentType = response.headers.get("content-type")?.split(";")[0].trim().toLowerCase()
if (response.status !== 200 || contentType !== "application/zip") {
throw new Error(`Unexpected response: ${response.status} ${contentType}`)
}
const bytes = Buffer.from(await response.arrayBuffer())
if (!bytes.length) throw new Error("Empty ZIP")
await writeFile("mainreport.zip", bytes)
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
from pathlib import Path
import requests
response = requests.get(
"https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/zip"
},
timeout=300,
allow_redirects=False,
)
content_type = response.headers.get("Content-Type", "").split(";", 1)[0].strip().lower()
if response.status_code != 200 or content_type != "application/zip":
raise RuntimeError(f"Unexpected response: {response.status_code} {content_type}")
if not response.content:
raise RuntimeError("Empty ZIP")
Path("mainreport.zip").write_bytes(response.content)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_TIMEOUT => 300,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: application/zip',
],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = strtolower(trim(explode(';', curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '')[0]));
$error = curl_error($curl);
curl_close($curl);
if ($response === false || $status !== 200 || $contentType !== 'application/zip' || $response === '') {
throw new RuntimeException("ZIP download failed: HTTP $status $contentType $error");
}
if (file_put_contents('mainreport.zip', $response) === false) {
throw new RuntimeException('Unable to save ZIP');
}
Go
package main
import (
"context"
"fmt"
"io"
"mime"
"net/http"
"os"
"time"
)
func download() error {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download", nil)
if err != nil {
return err
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "application/zip")
client := &http.Client{
Timeout: 5*time.Minute,
CheckRedirect: func(*http.Request, []*http.Request) error {
return http.ErrUseLastResponse
},
}
response, err := client.Do(request)
if err != nil {
return err
}
defer response.Body.Close()
contentType, _, err := mime.ParseMediaType(response.Header.Get("Content-Type"))
if err != nil || response.StatusCode != http.StatusOK || contentType != "application/zip" {
return fmt.Errorf("unexpected response: %d %s", response.StatusCode, contentType)
}
output, err := os.CreateTemp(".", "mainreport-*.part")
if err != nil {
return err
}
defer os.Remove(output.Name())
defer output.Close()
size, err := io.Copy(output, response.Body)
if err != nil {
return err
}
if size == 0 || (response.ContentLength >= 0 && size != response.ContentLength) {
return fmt.Errorf("incomplete ZIP")
}
if err := output.Close(); err != nil {
return err
}
return os.Rename(output.Name(), "mainreport.zip")
}
func main() {
if err := download(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
Google Apps Script
function downloadLabrikaZIP() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download", {
method: "get",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/zip"
},
followRedirects: false,
muteHttpExceptions: true,
});
const headers = response.getAllHeaders();
const typeHeader = Object.keys(headers).find(name => name.toLowerCase() === "content-type");
const contentType = String(headers[typeHeader] || "").split(";")[0].trim().toLowerCase();
if (response.getResponseCode() !== 200 || contentType !== "application/zip") {
throw new Error("Unexpected ZIP response: " + response.getResponseCode());
}
DriveApp.createFile(response.getBlob().setName("mainreport.zip"));
}
/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download
Check ready ZIP headers without a response body. This does not spend the download quota; general request rate limits still apply.
main-reports:read + main-reports:export
curl
curl --fail-with-body --silent --show-error --location \
--head \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/zip' \
'https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download'
JavaScript
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download", {
method: "HEAD",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/zip",
},
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
console.log(Object.fromEntries(response.headers))
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
import requests
url = "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/zip",
}
response = requests.request(
"HEAD",
url,
headers=headers,
timeout=30,
)
response.raise_for_status()
print(dict(response.headers))
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'HEAD',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: application/zip',
],
CURLOPT_NOBODY => true,
CURLOPT_HEADER => true,
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
echo $response;
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodHead, "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/exports/EXPORT_ID/download", nil)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "application/zip")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
fmt.Println(response.Header)
}
Google Apps Script
// UrlFetchApp supports GET, DELETE, PATCH, POST and PUT.
// https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app
throw new Error("HEAD is not supported by UrlFetchApp; use GET export status instead.")
/public-api/v1/main-reports/sites/SITE_UUID/dates
List available main report dates for this project, newest first.
main-reports:read
curl
curl --fail-with-body --silent --show-error --location \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json' \
'https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/dates'
JavaScript
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/dates", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
const responseText = await response.text()
const data = responseText && response.headers.get("content-type")?.includes("application/json") ? JSON.parse(responseText) : responseText
console.log(data)
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
import requests
url = "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/dates"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.request(
"GET",
url,
headers=headers,
timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2) if response.content and "application/json" in response.headers.get("Content-Type", "") else response.text)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/dates');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: application/json',
],
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
if ($response !== '' && str_contains($contentType, 'application/json')) {
print_r(json_decode($response, true, 512, JSON_THROW_ON_ERROR));
} else {
echo $response;
}
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/dates", nil)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "application/json")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
if _, err := io.Copy(os.Stdout, response.Body); err != nil {
panic(err)
}
}
Google Apps Script
function callLabrikaPublicAPI() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/dates", {
method: "get",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
followRedirects: false,
muteHttpExceptions: true,
});
const status = response.getResponseCode();
if (status < 200 || status >= 300) {
throw new Error('HTTP ' + status + ': ' + response.getContentText());
}
Logger.log(response.getContentText());
}
{
"data": [
"2026-11-01",
"2026-10-01"
],
"pagination": {
"limit": 10,
"offset": 0,
"next_offset": null,
"has_more": false
}
}
/public-api/v1/main-reports/sites/SITE_UUID/metrics
Use date for one snapshot, or from and to for an inclusive range. Each metric array follows the dates array. A null value means the measurement is unavailable.
main-reports:read
curl
curl --fail-with-body --silent --show-error --location \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json' \
'https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/metrics?from=2026-10-01&to=2026-11-01'
JavaScript
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/metrics?from=2026-10-01&to=2026-11-01", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
const responseText = await response.text()
const data = responseText && response.headers.get("content-type")?.includes("application/json") ? JSON.parse(responseText) : responseText
console.log(data)
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
import requests
url = "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/metrics?from=2026-10-01&to=2026-11-01"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.request(
"GET",
url,
headers=headers,
timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2) if response.content and "application/json" in response.headers.get("Content-Type", "") else response.text)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/metrics?from=2026-10-01&to=2026-11-01');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: application/json',
],
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
if ($response !== '' && str_contains($contentType, 'application/json')) {
print_r(json_decode($response, true, 512, JSON_THROW_ON_ERROR));
} else {
echo $response;
}
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/metrics?from=2026-10-01&to=2026-11-01", nil)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "application/json")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
if _, err := io.Copy(os.Stdout, response.Body); err != nil {
panic(err)
}
}
Google Apps Script
function callLabrikaPublicAPI() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/main-reports/sites/SITE_UUID/metrics?from=2026-10-01&to=2026-11-01", {
method: "get",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
followRedirects: false,
muteHttpExceptions: true,
});
const status = response.getResponseCode();
if (status < 200 || status >= 300) {
throw new Error('HTTP ' + status + ': ' + response.getContentText());
}
Logger.log(response.getContentText());
}
{
"data": {
"dates": [
"2026-10-01",
"2026-11-01"
],
"metrics": {
"pages_indexed_cnt": [
100,
112
],
"seo_errors_severe_cnt": [
4,
3
]
}
},
"pagination": {
"limit": 10,
"offset": 0,
"next_offset": null,
"has_more": false
}
}
pending / progress- Accepted or running. Continue polling; progress_percent may be null.
done- The archive is ready: archive.download_url, size, SHA-256 and expiry are available.
failed- Preparation failed. Check error.code; repeating POST with the same key does not restart the job.
expired- The download period ended. A new file requires a new request with a new Idempotency-Key.
Downloads are limited to 100 per account and 3 per project per UTC day. Account keys share the account quota; all accounts with project access share the project quota. POST, status polling and HEAD do not spend the download quota. Repeated GET requests and interruptions after admission do spend it. Respect Retry-After on 429; Range is unsupported.
Idempotency lasts 24 hours. After a network error, repeat POST with the same Idempotency-Key to receive the current state of the original request. Failed and expired requests do not restart. Do not retry downloads automatically: an uncertain transfer may already have spent quota.
Use a test key and /public-api-test/v1 with the same path suffixes. The list contains 34 synthetic demo-shop.example projects; downloads return a prebuilt ZIP with no customer data. Preparation may immediately return done and HTTP 200. Test and live quotas are separate. Obtain site_uuid from the test list; do not reuse live identifiers.
400: invalid parameters or Range; 403: missing scopes or permissions; 404: project or request unavailable; 409: report updating, export running or not ready; 410: file expired; 429: limit reached; 503: service temporarily unavailable. Keep error.request_id for diagnostics. Daily quotas return mainreport_account_download_limit or mainreport_site_download_limit; error.details[] contains limit, used, remaining and reset_at. The general rate limiter returns 429 rate_limit_exceeded without details. Respect Retry-After in both cases. HEAD has no response body, including errors: use the HTTP status and X-Request-ID.
HTTP/1.1 429 Too Many Requests
Retry-After: 10
X-Request-ID: req_example
Content-Type: application/json
{
"error": {
"request_id": "req_example",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Retry later."
}
}
HTTP/1.1 429 Too Many Requests
Retry-After: 43200
X-Request-ID: req_example
Content-Type: application/json
{
"error": {
"request_id": "req_example",
"code": "mainreport_site_download_limit",
"message": "Daily mainreport download limit exceeded.",
"details": [
{
"field": "mainreport.site",
"code": "daily_limit_exceeded",
"limit": 3,
"used": 3,
"remaining": 0,
"reset_at": "2026-11-07T00:00:00Z"
}
]
}
}
UrlFetchApp does not support HEAD. In Google Apps Script, use GET status to check progress; ready ZIPs are saved to Google Drive. Consider Google's runtime limits for large files. UrlFetchApp
API method reference — MainReports
Choose a method from the contents. Check its HTTP method, path, scopes, required parameters and request body. JSON blocks containing schema, properties and $ref describe the contract; do not send them as a ready-made request body. Request examples and response schemas are labelled separately.
Methods in this section
- GET /public-api/v1/reports/sites
- GET /public-api/v1/sites/by-domain
- POST /public-api/v1/sites
- POST /public-api/v1/sites/site-audit/cost
- POST /public-api/v1/sites/site-audit/run
- GET /public-api/v1/site-audits/sites/{site_uuid}/progress
- POST /public-api/v1/site-audits/sites/{site_uuid}/cost
- POST /public-api/v1/site-audits/sites/{site_uuid}/run
- GET /public-api/v1/main-reports/sites/{site_uuid}/dates
- GET /public-api/v1/main-reports/sites/{site_uuid}/metrics
- GET /public-api/v1/main-reports/sites
- GET /public-api/v1/main-reports/sites/{site_uuid}/limits
- POST /public-api/v1/main-reports/sites/{site_uuid}/exports
- GET /public-api/v1/main-reports/sites/{site_uuid}/exports/{export_id}
- GET /public-api/v1/main-reports/sites/{site_uuid}/exports/{export_id}/download
- HEAD /public-api/v1/main-reports/sites/{site_uuid}/exports/{export_id}/download
GET /public-api/v1/reports/sites
List active report sites by ownership, SERM availability or the most recent analysis start. SERM filters also require the matching SERM read or run scope.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · SERPPagination
Permissions: schedules:read, schedules:write, site-reports:download, main-reports:export, ai-visibility:run, site-audits:run, serp:run, serp:import, serm:run, main-reports:read, serm:read, domain-keywords:run, prompt-suggestions:run
Parameters
report_type (query)
{
"schema": {
"type": "string",
"enum": [
"site_audit",
"keyword_rankings_refresh"
],
"default": "site_audit"
}
}
last_run_after (query)
Include sites last started at or after this time.
{
"schema": {
"type": "string",
"format": "date-time"
}
}
last_run_before (query)
Include sites last started before this time and sites with no recorded start.
{
"schema": {
"type": "string",
"format": "date-time"
}
}
owned_only (query)
{
"schema": {
"type": "boolean",
"default": false
}
}
serm_only (query)
{
"schema": {
"type": "boolean",
"default": false
}
}
serm_configured (query)
{
"schema": {
"type": "boolean",
"default": false
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Responses
200
List active report sites by ownership, SERM availability or the most recent analysis start. SERM filters also require the matching SERM read or run scope.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"site_uuid",
"host",
"title"
],
"properties": {
"site_uuid": {
"type": "string"
},
"host": {
"type": "string"
},
"title": {
"type": "string"
},
"report_id": {
"type": "string"
},
"last_run_at": {
"type": "string",
"format": "date-time",
"nullable": true
}
}
}
},
"pagination": {
"$ref": "#/components/schemas/SERPPagination"
}
}
}
}
}
}
default
Public API error. Rate-limit headers describe the limit actually checked: failed authentication attempts per IP for missing or invalid keys, or the applicable key/account limit after authentication. They may be absent for access blocks before rate-limit checks or when the limiter is unavailable. X-RateLimit-Reset is a Unix timestamp in seconds; Retry-After is a delay in seconds for 429.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/sites/by-domain
Find your projects for a domain before choosing whether to use one or create another.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · SiteDomainMatchesResponse
Permissions: sites:create
Parameters
domain (query)
{
"required": true,
"schema": {
"type": "string",
"maxLength": 2048,
"example": "example.com"
}
}
Responses
200
Matching projects.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiteDomainMatchesResponse"
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/sites
Add a site without starting a report.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · AddSiteInput · ErrorResponse · SiteCreationResponse
Permissions: sites:create
Parameters
Idempotency-Key (header)
{
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9._:-]+$"
}
}
Request
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddSiteInput"
}
}
}
}
Responses
201
Add a site without starting a report.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiteCreationResponse"
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/sites/site-audit/cost
Estimate adding a site and starting its first report.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · SiteCreationCostInput · SiteCreationEstimateResponse
Permissions: sites:create, site-audits:run
Request
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiteCreationCostInput"
}
}
}
}
Responses
200
Estimate adding a site and starting its first report.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiteCreationEstimateResponse"
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/sites/site-audit/run
Add a site and start its first report at the confirmed price.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · SiteCreationResponse · SiteCreationRunInput
Permissions: sites:create, site-audits:run
Parameters
Idempotency-Key (header)
{
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9._:-]+$"
}
}
Request
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiteCreationRunInput"
}
}
}
}
Responses
202
Add a site and start its first report at the confirmed price.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiteCreationResponse"
}
}
}
}
201
The site was added. The report did not start or its start could not be confirmed.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiteCreationResponse"
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/site-audits/sites/{site_uuid}/progress
Read the latest full site audit progress, active stages and the average server response time in milliseconds when available.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · SiteReportProgressResponse
Permissions: main-reports:read
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
Responses
200
Current report progress.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiteReportProgressResponse"
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/site-audits/sites/{site_uuid}/cost
Estimate the cost of a full site audit using the saved settings.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · AnalysisEstimate · ErrorResponse · ExistingSiteAuditCostInput
Permissions: site-audits:run
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
Request
{
"required": false,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExistingSiteAuditCostInput"
}
}
}
}
Responses
200
Estimate the cost of a full site audit using the saved settings.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"$ref": "#/components/schemas/AnalysisEstimate"
}
}
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/site-audits/sites/{site_uuid}/run
Run the analysis at the confirmed price using the estimate and its Idempotency-Key.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: site-audits:run
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
Idempotency-Key (header)
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
}
Request
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"cost_estimate_id"
],
"properties": {
"cost_estimate_id": {
"type": "string"
}
}
}
}
}
}
Responses
202
Run the analysis at the confirmed price using the estimate and its Idempotency-Key.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/main-reports/sites/{site_uuid}/dates
List available main report dates for this project, newest first.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · SERPPagination
Permissions: main-reports:read
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 10
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 2147483547,
"default": 0
}
}
Responses
200
List available main report dates for this project, newest first.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data",
"pagination"
],
"properties": {
"pagination": {
"$ref": "#/components/schemas/SERPPagination"
},
"data": {
"type": "array",
"items": {
"type": "string",
"format": "date"
}
}
}
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/main-reports/sites/{site_uuid}/metrics
Use date for one snapshot, or from and to for an inclusive range. Each metric array follows the dates array. A null value means the measurement is unavailable.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · SERPPagination
Permissions: main-reports:read
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
date (query)
{
"schema": {
"type": "string",
"format": "date"
}
}
from (query)
{
"schema": {
"type": "string",
"format": "date"
}
}
to (query)
{
"schema": {
"type": "string",
"format": "date"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 10
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 2147483547,
"default": 0
}
}
Responses
200
Use date for one snapshot, or from and to for an inclusive range. Each metric array follows the dates array. A null value means the measurement is unavailable.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data",
"pagination"
],
"properties": {
"pagination": {
"$ref": "#/components/schemas/SERPPagination"
},
"data": {
"type": "object",
"required": [
"dates",
"metrics"
],
"properties": {
"dates": {
"type": "array",
"items": {
"type": "string",
"format": "date"
}
},
"metrics": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/main-reports/sites
List accessible projects, main report readiness and reasons why export is unavailable. The account role needs public-api-main-reports.show and general Public API access. The key needs main-reports:read; preparation and downloading also require main-reports:export. Project and content permissions are checked on every request. Project list: limit is 1–100, default 50; offset starts at 0. Follow pagination.next_offset while has_more=true. site_uuid is 32 lowercase hex characters; export_id is a 20-character string returned by preparation. POST accepts only {}, without branding settings or URLs. Idempotency-Key is 1–128 ASCII characters: A–Z, a–z, 0–9, period, underscore, colon or hyphen. Replace SITE_UUID and EXPORT_ID in examples with your values.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · MainReportSitesResponse
Permissions: main-reports:read
Parameters
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Responses
200
Projects available for main report export.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MainReportSitesResponse"
}
}
},
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
410
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
503
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/main-reports/sites/{site_uuid}/limits
Read the account and project daily quotas and their reset_at time. This request does not spend the download quota. The account role needs public-api-main-reports.show and general Public API access. The key needs main-reports:read; preparation and downloading also require main-reports:export. Project and content permissions are checked on every request. Downloads are limited to 100 per account and 3 per project per UTC day. Account keys share the account quota; all accounts with project access share the project quota. POST, status polling and HEAD do not spend the download quota. Repeated GET requests and interruptions after admission do spend it. Respect Retry-After on 429; Range is unsupported.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · MainReportLimitsResponse
Permissions: main-reports:read
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
Responses
200
Daily account and project download quotas.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MainReportLimitsResponse"
}
}
},
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
410
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
503
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/main-reports/sites/{site_uuid}/exports
Prepare a ZIP. Usually returns 202 with export_id and status_url; a completed or failed replay returns 200. The account role needs public-api-main-reports.show and general Public API access. The key needs main-reports:read; preparation and downloading also require main-reports:export. Project and content permissions are checked on every request. Prepare a ZIP of the current main report using saved branding: DOCX, PDF and available XLSX attachments. This does not start a new audit. The project owner's latest saved settings are captured when the request is accepted: company name, contacts, footer, logo, language and selected sections. Later edits do not change this request. Existing XLSX row limits remain in effect; the API reports existing_export_row_limits as a warning. Idempotency lasts 24 hours. After a network error, repeat POST with the same Idempotency-Key to receive the current state of the original request. Failed and expired requests do not restart. Do not retry downloads automatically: an uncertain transfer may already have spent quota. Use a test key and /public-api-test/v1 with the same path suffixes. The list contains 34 synthetic demo-shop.example projects; downloads return a prebuilt ZIP with no customer data. Preparation may immediately return done and HTTP 200. Test and live quotas are separate. Obtain site_uuid from the test list; do not reuse live identifiers.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · MainReportExportResponse · MainReportPrepareRequest · MainReportRateLimitErrorResponse
Permissions: main-reports:read, main-reports:export
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
Idempotency-Key (header)
{
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9._:-]+$"
}
}
Request
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MainReportPrepareRequest"
}
}
}
}
Responses
200
Current export state.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MainReportExportResponse"
}
}
},
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
},
"Location": {
"schema": {
"type": "string"
}
}
}
}
202
Export request accepted.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MainReportExportResponse"
}
}
},
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
},
"Location": {
"schema": {
"type": "string"
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
410
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MainReportRateLimitErrorResponse"
}
}
}
}
503
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/main-reports/sites/{site_uuid}/exports/{export_id}
Read the current request state. HTTP 200 means the state was read successfully; the status field describes the export result. The account role needs public-api-main-reports.show and general Public API access. The key needs main-reports:read; preparation and downloading also require main-reports:export. Project and content permissions are checked on every request. While status is pending or progress, poll status_url every 5–30 seconds. Do not create another export for each poll.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · MainReportExportResponse
Permissions: main-reports:read
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
export_id (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[0-9a-v]{20}$"
}
}
Responses
200
Current export state.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MainReportExportResponse"
}
}
},
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
410
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
503
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/main-reports/sites/{site_uuid}/exports/{export_id}/download
Download the ready ZIP. Success is HTTP 200 with application/zip; do not save a JSON error as an archive. The account role needs public-api-main-reports.show and general Public API access. The key needs main-reports:read; preparation and downloading also require main-reports:export. Project and content permissions are checked on every request. Downloads are limited to 100 per account and 3 per project per UTC day. Account keys share the account quota; all accounts with project access share the project quota. POST, status polling and HEAD do not spend the download quota. Repeated GET requests and interruptions after admission do spend it. Respect Retry-After on 429; Range is unsupported.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · MainReportRateLimitErrorResponse
Permissions: main-reports:read, main-reports:export
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
export_id (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[0-9a-v]{20}$"
}
}
Responses
200
Main report ZIP archive.
{
"content": {
"application/zip": {
"schema": {
"type": "string",
"format": "binary"
}
}
},
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Content-Disposition": {
"schema": {
"type": "string"
}
},
"Content-Length": {
"schema": {
"type": "integer",
"format": "int64"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"none"
]
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
410
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MainReportRateLimitErrorResponse"
}
}
}
}
503
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
HEAD /public-api/v1/main-reports/sites/{site_uuid}/exports/{export_id}/download
Check ready ZIP headers without a response body. This does not spend the download quota; general request rate limits still apply. The account role needs public-api-main-reports.show and general Public API access. The key needs main-reports:read; preparation and downloading also require main-reports:export. Project and content permissions are checked on every request.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID
Permissions: main-reports:read, main-reports:export
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
export_id (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[0-9a-v]{20}$"
}
}
Responses
200
ZIP headers without a response body.
{
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Content-Disposition": {
"schema": {
"type": "string"
}
},
"Content-Length": {
"schema": {
"type": "integer",
"format": "int64"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"none"
]
}
}
}
}
400
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
}
}
401
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
}
}
403
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
}
}
404
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
}
}
409
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
}
}
410
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
}
}
429
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
}
}
503
Public API error.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
}
}
API method reference — Site reports
Choose a method from the contents. Check its HTTP method, path, scopes, required parameters and request body. JSON blocks containing schema, properties and $ref describe the contract; do not send them as a ready-made request body. Request examples and response schemas are labelled separately.
Methods in this section
- POST /public-api/v1/site-reports/sites/{site_uuid}/monthly-positions/exports
- GET /public-api/v1/site-reports/sites/{site_uuid}/monthly-positions/exports/{export_id}
- GET /public-api/v1/site-reports/sites/{site_uuid}/monthly-positions/exports/{export_id}/file
- POST /public-api/v1/site-reports/sites/{site_uuid}/html-markup/exports
- GET /public-api/v1/site-reports/sites/{site_uuid}/html-markup/exports/{export_id}
- GET /public-api/v1/site-reports/sites/{site_uuid}/html-markup/exports/{export_id}/file
- GET /public-api/v1/site-reports/sites/{site_uuid}/html-markup/data
POST /public-api/v1/site-reports/sites/{site_uuid}/monthly-positions/exports
Prepare the chart-based monthly positions report.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: site-reports:download
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d3c9e51b06a44e27831f205ceac20000",
"pattern": "^[a-f0-9]{32}$"
}
}
Idempotency-Key (header)
{
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
Request
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"dates": {
"type": "array",
"description": "Dates of saved keyword rankings for the selected site in YYYY-MM-DD format.",
"items": {
"type": "string",
"format": "date"
},
"minItems": 1,
"maxItems": 6,
"example": [
"2026-11-01"
]
},
"format": {
"type": "string",
"enum": [
"pdf",
"docx"
],
"default": "pdf"
}
},
"required": [
"dates"
]
}
}
}
}
Responses
202
Prepare the chart-based monthly positions report.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"properties": {
"export_id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"preparing",
"ready",
"failed",
"empty"
]
},
"file_name": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"retry_after_seconds": {
"type": "integer"
},
"error_code": {
"type": "string",
"enum": [
"export_failed",
"export_file_missing"
]
}
},
"required": [
"export_id",
"status"
]
}
}
}
}
}
}
400
Public API error. Rate-limit headers describe the limit actually checked: failed authentication attempts per IP for missing or invalid keys, or the applicable key/account limit after authentication. They may be absent for access blocks before rate-limit checks or when the limiter is unavailable. X-RateLimit-Reset is a Unix timestamp in seconds; Retry-After is a delay in seconds for 429.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/site-reports/sites/{site_uuid}/monthly-positions/exports/{export_id}
Check export status for the chart-based monthly positions report.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: site-reports:download
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d3c9e51b06a44e27831f205ceac20000",
"pattern": "^[a-f0-9]{32}$"
}
}
export_id (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d0000000000000000000",
"pattern": "^[0-9a-v]{20}$"
}
}
Responses
200
Check export status for the chart-based monthly positions report.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"properties": {
"export_id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"preparing",
"ready",
"failed",
"empty"
]
},
"file_name": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"retry_after_seconds": {
"type": "integer"
},
"error_code": {
"type": "string",
"enum": [
"export_failed",
"export_file_missing"
]
}
},
"required": [
"export_id",
"status"
]
}
}
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/site-reports/sites/{site_uuid}/monthly-positions/exports/{export_id}/file
Download the chart-based monthly positions report.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: site-reports:download
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d3c9e51b06a44e27831f205ceac20000",
"pattern": "^[a-f0-9]{32}$"
}
}
export_id (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d0000000000000000000",
"pattern": "^[0-9a-v]{20}$"
}
}
Responses
200
Download the chart-based monthly positions report.
{
"content": {
"application/pdf": {
"schema": {
"type": "string",
"format": "binary"
}
},
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/site-reports/sites/{site_uuid}/html-markup/exports
Prepare the HTML markup errors report.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: site-reports:download
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d3c9e51b06a44e27831f205ceac20000",
"pattern": "^[a-f0-9]{32}$"
}
}
Idempotency-Key (header)
{
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
Request
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
Responses
202
Prepare the HTML markup errors report.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"properties": {
"export_id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"preparing",
"ready",
"failed",
"empty"
]
},
"file_name": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"retry_after_seconds": {
"type": "integer"
},
"error_code": {
"type": "string",
"enum": [
"export_failed",
"export_file_missing"
]
}
},
"required": [
"export_id",
"status"
]
}
}
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/site-reports/sites/{site_uuid}/html-markup/exports/{export_id}
Check export status for the HTML markup errors report.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: site-reports:download
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d3c9e51b06a44e27831f205ceac20000",
"pattern": "^[a-f0-9]{32}$"
}
}
export_id (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d0000000000000000000",
"pattern": "^[0-9a-v]{20}$"
}
}
Responses
200
Check export status for the HTML markup errors report.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"properties": {
"export_id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"preparing",
"ready",
"failed",
"empty"
]
},
"file_name": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"retry_after_seconds": {
"type": "integer"
},
"error_code": {
"type": "string",
"enum": [
"export_failed",
"export_file_missing"
]
}
},
"required": [
"export_id",
"status"
]
}
}
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/site-reports/sites/{site_uuid}/html-markup/exports/{export_id}/file
Download the HTML markup errors report.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: site-reports:download
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d3c9e51b06a44e27831f205ceac20000",
"pattern": "^[a-f0-9]{32}$"
}
}
export_id (path)
{
"required": true,
"schema": {
"type": "string",
"example": "d0000000000000000000",
"pattern": "^[0-9a-v]{20}$"
}
}
Responses
200
Download the HTML markup errors report.
{
"content": {
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/site-reports/sites/{site_uuid}/html-markup/data
Read one HTML markup report in JSON. Select strong for important errors and details or other for other error counts. A page has up to 500 rows.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: site-reports:download
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
severity (query)
{
"required": true,
"schema": {
"type": "string",
"enum": [
"strong",
"other"
],
"example": "strong"
}
}
limit (query)
{
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 500,
"default": 50
}
}
after (query)
{
"required": false,
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Responses
200
Read one HTML markup report in JSON. Select strong for important errors and details or other for other error counts. A page has up to 500 rows.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"report": {
"type": "string"
},
"columns": {
"type": "array",
"items": {
"type": "string"
}
},
"rows": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
},
"required": [
"report",
"columns",
"rows"
]
},
"pagination": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1
},
"count": {
"type": "integer",
"minimum": 0
},
"has_more": {
"type": "boolean"
},
"next_after": {
"type": "integer",
"nullable": true,
"minimum": 0
}
},
"required": [
"limit",
"has_more",
"next_after"
]
}
},
"required": [
"data",
"pagination"
]
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
Monitoring HTML and screenshots
These methods belong to Change monitoring. Download the saved HTML or PNG screenshot of a page as captured during a selected check. These are report snapshots, not downloads of the current live page.
include_state=true. Copy the required page’s url_md5 and check the state.files fields below. Use the same project, report, and page in the download request. For screenshots, set device=desktop or device=mobile; the default is desktop.
| Parameter | Description |
|---|---|
state.files.html_available | HTML snapshot availability |
state.files.screenshot_desktop_available | Desktop screenshot availability |
state.files.screenshot_mobile_available | Mobile screenshot availability |
state.files.*_expires_at / state.files.*_expires_in_days | Expiry date and remaining days for the corresponding file. Values may be absent when the retention period is unknown. |
Retention belongs to the selected check. Changing project settings does not change the retention of files already paid for. 404 file_not_available means the file is missing, expired, or exceeds 10 MB. HTML is returned as text/html; screenshots as image/png.
- Scope for HTML:
diff-htmlfiles:read. - Scope for screenshots:
diff-screenshot:read.
/public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/pages/{url_md5}/html Download the page HTML captured for the selected report.
/public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/pages/{url_md5}/screenshot Download a screenshot. Query: device=desktop or device=mobile.
curl
curl --fail-with-body --silent --show-error --location \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: text/html' \
--output 'page.html' \
'https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/html'
JavaScript
const { writeFile } = require("node:fs/promises")
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/html", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "text/html",
},
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
await writeFile("page.html", Buffer.from(await response.arrayBuffer()))
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
from pathlib import Path
import requests
url = "https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/html"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "text/html",
}
response = requests.request(
"GET",
url,
headers=headers,
timeout=30,
)
response.raise_for_status()
Path("page.html").write_bytes(response.content)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/html');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: text/html',
],
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
if (file_put_contents('page.html', $response) === false) {
throw new RuntimeException('Unable to save response file');
}
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/html", nil)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "text/html")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
output, err := os.Create("page.html")
if err != nil {
panic(err)
}
if _, err := io.Copy(output, response.Body); err != nil {
output.Close()
panic(err)
}
if err := output.Close(); err != nil {
panic(err)
}
}
Google Apps Script
function callLabrikaPublicAPI() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/html", {
method: "get",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "text/html",
},
followRedirects: false,
muteHttpExceptions: true,
});
const status = response.getResponseCode();
if (status < 200 || status >= 300) {
throw new Error('HTTP ' + status + ': ' + response.getContentText());
}
DriveApp.createFile(response.getBlob().setName("page.html"));
}
curl
curl --fail-with-body --silent --show-error --location \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: image/png' \
--output 'screenshot.png' \
'https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/screenshot?device=desktop'
JavaScript
const { writeFile } = require("node:fs/promises")
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/screenshot?device=desktop", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "image/png",
},
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
await writeFile("screenshot.png", Buffer.from(await response.arrayBuffer()))
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
from pathlib import Path
import requests
url = "https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/screenshot?device=desktop"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "image/png",
}
response = requests.request(
"GET",
url,
headers=headers,
timeout=30,
)
response.raise_for_status()
Path("screenshot.png").write_bytes(response.content)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/screenshot?device=desktop');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: image/png',
],
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
if (file_put_contents('screenshot.png', $response) === false) {
throw new RuntimeException('Unable to save response file');
}
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/screenshot?device=desktop", nil)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "image/png")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
output, err := os.Create("screenshot.png")
if err != nil {
panic(err)
}
if _, err := io.Copy(output, response.Body); err != nil {
output.Close()
panic(err)
}
if err := output.Close(); err != nil {
panic(err)
}
}
Google Apps Script
function callLabrikaPublicAPI() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/pages/URL_MD5/screenshot?device=desktop", {
method: "get",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "image/png",
},
followRedirects: false,
muteHttpExceptions: true,
});
const status = response.getResponseCode();
if (status < 200 || status >= 300) {
throw new Error('HTTP ' + status + ': ' + response.getContentText());
}
DriveApp.createFile(response.getBlob().setName("screenshot.png"));
}
API method reference — Files
Choose a method from the contents. Check its HTTP method, path, scopes, required parameters and request body. JSON blocks containing schema, properties and $ref describe the contract; do not send them as a ready-made request body. Request examples and response schemas are labelled separately.
Methods in this section
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/html
Parameters
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
Report xid or the literal last. The literal last is accepted only in this path parameter.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
Responses
200
Stored HTML file.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"Content-Disposition": {
"schema": {
"type": "string"
}
}
},
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
}
default
Public API error. Rate-limit headers describe the limit actually checked: failed authentication attempts per IP for missing or invalid keys, or the applicable key/account limit after authentication. They may be absent for access blocks before rate-limit checks or when the limiter is unavailable. X-RateLimit-Reset is a Unix timestamp in seconds; Retry-After is a delay in seconds for 429.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/screenshot
Parameters
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
Report xid or the literal last. The literal last is accepted only in this path parameter.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
device (query)
{
"schema": {
"type": "string",
"enum": [
"desktop",
"mobile"
],
"default": "desktop"
}
}
Responses
200
Stored PNG screenshot.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"image/png": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
Other articles in this section
- Labrika API: quick start, authentication and errors
- Labrika API: data models and metadata
- Keywords and rankings through the API
- AI visibility and prompt suggestions through the API
- AI Writer and product descriptions through the API
- Diff change monitoring through the API
- API alerts, webhooks and schedules
- API work plans, tasks and project groups
- API SERM, specialists and workflows
