API SERM, specialists and workflows
API SERM, specialists and workflows. HTTP requests, parameters, response schemas and Labrika workflows.
On this page
API method reference — SERM
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/serm/sites/{site_uuid}/cost
Ask for the search depth (20, 50, 100 or 200 results), then show the SERM price for that depth.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · AnalysisEstimate · ErrorResponse
Permissions: serm:run
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
Request
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"depth"
],
"properties": {
"depth": {
"type": "integer",
"enum": [
20,
50,
100,
200
]
}
}
}
}
}
}
Responses
200
Ask for the search depth (20, 50, 100 or 200 results), then show the SERM price for that depth.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"$ref": "#/components/schemas/AnalysisEstimate"
}
}
}
}
}
}
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"
}
}
}
}
POST /public-api/v1/serm/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: serm: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/serm/sites/{site_uuid}/report
Read the latest published SERM report or select a snapshot by report_id. The response contains the report date, language, status and the sections you can access.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: serm:read
Parameters
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
report_id (query)
{
"schema": {
"type": "string",
"pattern": "^[0-9a-v]{20}$"
}
}
Responses
200
Read the latest published SERM report or select a snapshot by report_id. The response contains the report date, language, status and the sections you can access.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"site_uuid",
"report_id",
"created_at",
"language",
"status",
"sections"
],
"properties": {
"site_uuid": {
"type": "string"
},
"report_id": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"language": {
"type": "string"
},
"status": {
"type": "string"
},
"sections": {
"type": "array",
"items": {
"type": "object",
"required": [
"section",
"report_id",
"status",
"calculated_at",
"data"
],
"properties": {
"section": {
"type": "string"
},
"report_id": {
"type": "string"
},
"status": {
"type": "string"
},
"calculated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"data": {
"type": "object",
"nullable": true,
"properties": {
"version": {
"type": "integer"
},
"total": {
"type": "integer"
},
"known": {
"type": "integer"
},
"unknown": {
"type": "integer"
},
"positive": {
"type": "integer"
},
"neutral": {
"type": "integer"
},
"negative": {
"type": "integer"
},
"average": {
"type": "number",
"nullable": true
},
"negative_share": {
"type": "number",
"nullable": true
},
"metrics": {
"type": "array",
"nullable": true,
"items": {
"type": "object"
}
},
"groups": {
"type": "array",
"nullable": true,
"items": {
"type": "object"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
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"
}
}
}
}
API method reference — Specialists
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/specialist-requests
Submit a request to find a specialist for moderation. Use the verified contact email already set in Specialists and accept the current customer rules.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
Permissions: specialist-requests:write
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": {
"type": "object",
"required": [
"title",
"description",
"category",
"language",
"email",
"currency",
"budget_type",
"payment_methods",
"rules_version",
"accept_terms"
],
"oneOf": [
{
"properties": {
"budget_type": {
"enum": [
"fixed",
"approximate"
]
}
},
"required": [
"budget_minor"
]
},
{
"properties": {
"budget_type": {
"enum": [
"negotiable"
]
}
},
"not": {
"required": [
"budget_minor"
]
}
}
],
"properties": {
"title": {
"type": "string",
"minLength": 5,
"maxLength": 200
},
"description": {
"type": "string",
"minLength": 100,
"maxLength": 5000
},
"category": {
"type": "string",
"enum": [
"technical",
"seo",
"content",
"speed",
"analytics",
"reputation",
"directory_registration",
"crowd_links",
"text_optimization",
"contextual_ads",
"website_development",
"website_modernization",
"outreach"
],
"example": "seo"
},
"language": {
"type": "string",
"example": "en"
},
"email": {
"type": "string",
"format": "email"
},
"currency": {
"type": "string",
"example": "USD"
},
"budget_type": {
"type": "string",
"enum": [
"fixed",
"approximate",
"negotiable"
]
},
"budget_minor": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 10000000000
},
"payment_methods": {
"type": "array",
"items": {
"type": "string",
"enum": [
"bank_transfer",
"card_transfer",
"sbp",
"yoomoney",
"card_payment",
"paypal",
"swift",
"bank_transfer_individual",
"bank_transfer_business"
]
}
},
"rules_version": {
"type": "integer",
"example": 2
},
"accept_terms": {
"type": "boolean",
"enum": [
true
]
}
}
}
}
}
}
Responses
201
Request submitted for moderation.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"id",
"status"
],
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"pending_moderation"
]
}
}
}
}
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
Workflows
Start with the outcome you need and follow the requests in order. Each workflow lists its required scopes.
Set LABRIKA_API_KEY. Take SITE_UUID and ENGINE_ID from the sites list and PROJECT_ID from the projects list. Set COST_ESTIMATE_ID and IDEMPOTENCY_KEY from cost_estimate_id and idempotency_key in the quote. Copy RUN_ID from the launch response. Set LIST_REVISION from list.revision in the result. After editing the list, update LIST_REVISION with revision from the PATCH response before applying it.
After a launch timeout, reuse the same Idempotency-Key and body. Check the key on 401 and permissions on 403. Read the conflict reason on 409. On 429, follow Retry-After when present.
Latest rankings
Read saved keyword rankings for the right region and search engine.
serp:read
Reading keyword positions requires an active Business or Agency subscription. Listing sites and collection dates is available with serp:read.
GET
/serp/sites?limit=10curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/serp/sites?limit=10" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/dates?limit=5curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/dates?limit=5" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/positions?collected_at=last&limit=20curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/positions?collected_at=last&limit=20" \ -H "Authorization: Bearer $LABRIKA_API_KEY"
{
"data": [
{
"site_uuid": "d3c9e51b06a44e27831f205ceac20000",
"host": "example.com",
"search_engines": [
{
"id": 42,
"engine_title": "Google"
}
]
}
]
}
Run a full audit
Keep the quote ID and read the launch stage using the site UUID.
site-audits:runmain-reports:read
GET
/main-reports/sites?limit=10curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/main-reports/sites?limit=10" \ -H "Authorization: Bearer $LABRIKA_API_KEY"POST
/site-audits/sites/$SITE_UUID/costcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/site-audits/sites/$SITE_UUID/cost" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data '{"pages_limit":500,"payment_option":"auto"}'POST
/site-audits/sites/$SITE_UUID/runcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/site-audits/sites/$SITE_UUID/run" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ --data-binary @- <<JSON {"cost_estimate_id":"${COST_ESTIMATE_ID:?}"} JSONGET
/site-audits/sites/$SITE_UUID/progresscurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/site-audits/sites/$SITE_UUID/progress" \ -H "Authorization: Bearer $LABRIKA_API_KEY"
{
"data": {
"cost_estimate_id": "ESTIMATE_FROM_COST",
"idempotency_key": "KEY_FROM_COST",
"page_credits": 500,
"amount_minor": 0
}
}
Keywords for a site
Read the result, edit the working list and apply the selected revision to the site's settings.
domain-keywords:run
From the quote, set PAYMENT_OPTION to ai_credits if credits_available is true, or money_balance if balance_available is true. If both are false, top up before starting. Reuse the same payment option when retrying a launch.
POST
/domain-keywords/costcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/cost" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data '{"domain":"example.com","keyword_count":80}'POST
/domain-keywords/runcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/run" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ --data-binary @- <<JSON {"cost_estimate_id":"${COST_ESTIMATE_ID:?}","payment_option":"${PAYMENT_OPTION:?}"} JSONGET
/domain-keywords/runs/$RUN_ID/progresscurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/runs/$RUN_ID/progress" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/domain-keywords/runs/$RUN_IDcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/runs/$RUN_ID" \ -H "Authorization: Bearer $LABRIKA_API_KEY"PATCH
/domain-keywords/runs/$RUN_ID/listcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/runs/$RUN_ID/list" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -X PATCH \ --data-binary @- <<JSON {"revision":${LIST_REVISION:?},"mode":"append","items":[{"text":"wholesale tea"}]} JSONPOST
/domain-keywords/runs/$RUN_ID/applycurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/runs/$RUN_ID/apply" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @- <<JSON {"site_uuid":"${SITE_UUID:?}","revision":${LIST_REVISION:?}} JSON
{
"cost_estimate_id": "ESTIMATE_FROM_COST",
"idempotency_key": "KEY_FROM_COST",
"ai_credits": 40,
"amount_minor": 20,
"currency": "USD",
"credits_available": true,
"balance_available": true,
"keyword_count": 80
}
Prompts for AI Visibility
Explain what the business offers and what it excludes. Choose 30–2,000 prompts in increments of 10.
prompt-suggestions:run
From the quote, set PAYMENT_OPTION to ai_credits if credits_available is true, or money_balance if balance_available is true. If both are false, top up before starting. Reuse the same payment option when retrying a launch.
POST
/prompt-suggestions/costcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/cost" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data '{"domain":"example.com","company_description":"We supply wholesale loose-leaf tea and tasting packs to cafés and independent retailers. We help customers plan their range and deliver regularly under contract.","exclusions":["Coffee","Coffee equipment","Retail purchases"],"prompt_count":30}'POST
/prompt-suggestions/runcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/run" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ --data-binary @- <<JSON {"cost_estimate_id":"${COST_ESTIMATE_ID:?}","payment_option":"${PAYMENT_OPTION:?}"} JSONGET
/prompt-suggestions/runs/$RUN_ID/progresscurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/runs/$RUN_ID/progress" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/prompt-suggestions/runs/$RUN_IDcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/runs/$RUN_ID" \ -H "Authorization: Bearer $LABRIKA_API_KEY"PATCH
/prompt-suggestions/runs/$RUN_ID/listcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/runs/$RUN_ID/list" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -X PATCH \ --data-binary @- <<JSON {"revision":${LIST_REVISION:?},"mode":"append","items":[{"text":"Where can cafés buy wholesale tea?"}]} JSONPOST
/prompt-suggestions/runs/$RUN_ID/applycurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/runs/$RUN_ID/apply" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @- <<JSON {"site_uuid":"${SITE_UUID:?}","revision":${LIST_REVISION:?}} JSON
{
"cost_estimate_id": "ESTIMATE_FROM_COST",
"idempotency_key": "KEY_FROM_COST",
"ai_credits": 21,
"amount_minor": 11,
"currency": "USD",
"credits_available": true,
"balance_available": true
}
AI visibility
Find your projects for a domain before choosing whether to use one or create another. Start AI visibility at the confirmed price. Use the same Idempotency-Key returned by the quote. Proposed settings replace the project settings when you confirm.
sites:createai-visibility:run
Quote AI visibility using saved or proposed settings. Omit payment_option to see the cost in AI credits and in the account currency. No report starts at this step.
GET
/sites/by-domain?domain=example.comcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/sites/by-domain?domain=example.com" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/ai-visibility/sites/$SITE_UUID/modelscurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/ai-visibility/sites/$SITE_UUID/models" \ -H "Authorization: Bearer $LABRIKA_API_KEY"POST
/ai-visibility/sites/$SITE_UUID/costcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/ai-visibility/sites/$SITE_UUID/cost" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data '{"settings":{"domain":"example.com","brand":"Acme","aliases":["Acme Studio"],"prompts":["Where can cafés order tea wholesale?"],"models":["chatgpt"],"competitors":[{"domain":"competitor.example","brand":"Rival Tea"}]}}'POST
/ai-visibility/sites/$SITE_UUID/runcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/ai-visibility/sites/$SITE_UUID/run" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ --data-binary @- <<JSON {"cost_estimate_id":"${COST_ESTIMATE_ID:?}"} JSON
{
"data": {
"cost_estimate_id": "ESTIMATE_FROM_COST",
"idempotency_key": "KEY_FROM_COST",
"ai_credits": 1,
"money_equivalent_minor": 1,
"can_start": true
}
}
Website changes
Find the monitoring project and read its recent alerts.
diff-projects:readdiff-alerts:read
GET
/diff-projects?limit=10curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/diff-projects?limit=10" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/diff-projects/$PROJECT_ID/alerts?limit=20curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/diff-projects/$PROJECT_ID/alerts?limit=20" \ -H "Authorization: Bearer $LABRIKA_API_KEY"
HTTP 202 means the request was accepted, not that processing finished. Save the returned identifier and check the state with the specified GET method. HTTP 200 when reading a state is not proof that the task succeeded: inspect status and error fields. Respect retry_after_seconds when returned.
The shared API/MCP usage budget, account money, subscription allowances and AI credits are separate resources. An estimate that does not charge money can still consume the technical usage budget. Before a paid operation, check the current estimate, payment option and response currency.
Other articles in this section
- Labrika API: quick start, authentication and errors
- Labrika API: data models and metadata
- SEO audits, reports and exports through the API
- 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
