SEO
Titles, sitemap, robots, redirects, thumbnails and Search Console per domain.
Domain SEO overview
/domains/{id}/seo/overviewdomains:readSite settings, counts (pages, redirects, sitemap URLs), the latest audit, Search Console status and plan limits.
Parameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/overview" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"site": {
"domainId": "dom_4h7n1q",
"hostname": "barbeariadoze.com.br",
"siteName": "Barbearia do Zé",
"locale": "pt_BR",
"twitterSite": "@barbeariadoze",
"robotsTxt": null,
"sitemapMode": "generate",
"sitemapUrl": "https://app.tenanci.com/seo/sitemap/dom_4h7n1q.xml",
"verification": {
"google": "q8Hn2vR5tW1xY4zA7bC0dE3fG6hJ9kL",
"bing": null
},
"prerenderEnabled": false,
"ogTemplate": {
"background": {
"kind": "gradient",
"color": "#0f172a",
"color2": "#1d4ed8",
"angle": 135
},
"textColor": "#ffffff",
"accentColor": "#38bdf8",
"logoAssetId": null,
"font": "inter",
"layout": "left",
"showSiteName": true,
"showDomain": true
},
"updatedAt": "2026-10-14T12:00:00.000Z"
},
"counts": {
"pages": 4,
"redirects": 12,
"sitemapUrls": 18
},
"lastAudit": {
"id": "aud_8t3w5y",
"domainId": "dom_4h7n1q",
"status": "done",
"trigger": "manual",
"maxPages": 500,
"pagesCrawled": 18,
"score": 84,
"summary": {
"issues": {
"high": 1,
"medium": 4,
"low": 3
},
"byCode": {
"fetch_error": {
"severity": "high",
"pages": 1,
"message": "Não foi possível carregar a página (timeout).",
"fix": "Verifique se a página está no ar e responde em até 10 segundos."
},
"description_missing": {
"severity": "medium",
"pages": 3,
"message": "A página não tem meta description.",
"fix": "Escreva uma descrição de 70 a 160 caracteres na aba Páginas."
},
"title_short": {
"severity": "medium",
"pages": 1,
"message": "Título curto (9 caracteres).",
"fix": "Use de 30 a 60 caracteres, com a palavra-chave principal no começo."
},
"img_alt_missing": {
"severity": "low",
"pages": 3,
"message": "2 imagens sem texto alternativo (alt).",
"fix": "Descreva cada imagem no atributo alt (acessibilidade e Google Imagens); imagens decorativas usam alt vazio."
},
"cwv_lcp_poor": {
"severity": "medium",
"pages": 1,
"message": "LCP (carregamento do maior elemento) ruim para visitantes reais (o ideal é até 2,5 s).",
"fix": "Otimize a imagem principal (WebP/AVIF, tamanho certo, fetchpriority=\"high\" e sem lazy-load), pré-carregue a fonte e a imagem do topo, adie CSS e JavaScript que bloqueiam a renderização e acelere a resposta do HTML."
}
},
"robotsTxt": {
"found": true,
"status": 200
},
"complete": true,
"quickWins": [
"description_missing",
"img_alt_missing",
"title_short"
],
"pagesWithIssues": 6,
"fieldVitals": {
"status": "ok",
"from": "2026-09-16T12:00:00.000Z",
"to": "2026-10-14T12:00:00.000Z",
"days": 28,
"minSamples": 20,
"thresholds": {
"lcp": [
2500,
4000
],
"inp": [
200,
500
],
"cls": [
0.1,
0.25
],
"fcp": [
1800,
3000
],
"ttfb": [
800,
1800
]
},
"domain": {
"mobile": {
"samples": 1840,
"lcp": {
"p75": 4300,
"samples": 1840,
"rating": "poor"
},
"inp": {
"p75": 140,
"samples": 1104,
"rating": "good"
},
"cls": {
"p75": 0.04,
"samples": 1840,
"rating": "good"
},
"fcp": {
"p75": 1200,
"samples": 1840,
"rating": "good"
},
"ttfb": {
"p75": 950,
"samples": 1840,
"rating": "needs_improvement"
}
},
"desktop": {
"samples": 610,
"lcp": {
"p75": 2100,
"samples": 610,
"rating": "good"
},
"inp": {
"p75": 140,
"samples": 366,
"rating": "good"
},
"cls": {
"p75": 0.04,
"samples": 610,
"rating": "good"
},
"fcp": {
"p75": 1200,
"samples": 610,
"rating": "good"
},
"ttfb": {
"p75": 450,
"samples": 610,
"rating": "good"
}
}
},
"worstPages": [
{
"path": "/agendar",
"device": "mobile",
"samples": 420,
"metrics": {
"lcp": {
"p75": 5100,
"samples": 420,
"rating": "poor"
},
"inp": {
"p75": 140,
"samples": 252,
"rating": "good"
},
"cls": {
"p75": 0.28,
"samples": 420,
"rating": "poor"
},
"fcp": {
"p75": 1200,
"samples": 420,
"rating": "good"
},
"ttfb": {
"p75": 450,
"samples": 420,
"rating": "good"
}
}
},
{
"path": "/",
"device": "mobile",
"samples": 900,
"metrics": {
"lcp": {
"p75": 3200,
"samples": 900,
"rating": "needs_improvement"
},
"inp": {
"p75": 140,
"samples": 540,
"rating": "good"
},
"cls": {
"p75": 0.04,
"samples": 900,
"rating": "good"
},
"fcp": {
"p75": 1200,
"samples": 900,
"rating": "good"
},
"ttfb": {
"p75": 450,
"samples": 900,
"rating": "good"
}
}
}
],
"pagesMeasured": 2,
"findings": [
{
"code": "cwv_lcp_poor",
"scope": "domain",
"path": null,
"device": "mobile",
"metric": "lcp",
"p75": 4300,
"samples": 1840,
"severity": "medium"
},
{
"code": "cwv_lcp_poor",
"scope": "page",
"path": "/agendar",
"device": "mobile",
"metric": "lcp",
"p75": 5100,
"samples": 420,
"severity": "medium"
},
{
"code": "cwv_cls_poor",
"scope": "page",
"path": "/agendar",
"device": "mobile",
"metric": "cls",
"p75": 0.28,
"samples": 420,
"severity": "medium"
}
]
}
},
"error": null,
"createdAt": "2026-10-14T12:00:00.000Z",
"startedAt": "2026-10-14T12:00:02.000Z",
"finishedAt": "2026-10-14T12:01:37.000Z"
},
"gsc": {
"configured": true,
"available": true,
"connected": true,
"googleEmail": "ze@barbeariadoze.com.br",
"propertyUrl": "https://barbeariadoze.com.br/",
"status": "verified",
"verified": true,
"lastSyncAt": "2026-10-14T06:10:00.000Z",
"backfilledAt": "2026-10-02T09:30:00.000Z",
"lastError": null
},
"plan": {
"code": "growth",
"advanced": true,
"maxAuditPages": 500,
"auditsPerDay": 10
}
}Get site SEO settings
/domains/{id}/seo/sitedomains:readParameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/site" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"domainId": "dom_4h7n1q",
"hostname": "barbeariadoze.com.br",
"siteName": "Barbearia do Zé",
"locale": "pt_BR",
"twitterSite": "@barbeariadoze",
"robotsTxt": null,
"sitemapMode": "generate",
"sitemapUrl": "https://app.tenanci.com/seo/sitemap/dom_4h7n1q.xml",
"verification": {
"google": "q8Hn2vR5tW1xY4zA7bC0dE3fG6hJ9kL",
"bing": null
},
"prerenderEnabled": false,
"ogTemplate": {
"background": {
"kind": "gradient",
"color": "#0f172a",
"color2": "#1d4ed8",
"angle": 135
},
"textColor": "#ffffff",
"accentColor": "#38bdf8",
"logoAssetId": null,
"font": "inter",
"layout": "left",
"showSiteName": true,
"showDomain": true
},
"updatedAt": "2026-10-14T12:00:00.000Z"
}Update site SEO settings
/domains/{id}/seo/sitedomains:writeOmitted fields stay as they are. prerenderEnabled: true and ogTemplate require the Growth plan (403 feature_not_in_plan). The change is published to the edge right after.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
siteNamestring | nullSite name (og:site_name and thumbnails).
localestring | nullLocale in pt_BR format (og:locale).
twitterSitestring | nullDefault X handle for the site.
sitemapMode"proxy" | "generate" | "off"proxy: serves the origin's sitemap.xml; generate: Tenanci builds it from the registered URLs and those found by audits; off: no sitemap.
prerenderEnabledbooleanPre-render pages for search bots (Growth plan).
ogTemplateobject | nullTemplate for automatic thumbnails (Growth plan). null resets to the default.
backgroundobjectrequiredkind"solid" | "gradient"requiredSolid color or gradient.
colorstringrequiredMain color (#rrggbb).
color2stringrequiredSecond gradient color (#rrggbb).
angleintegerrequired≥ 0, ≤ 360Gradient angle in degrees.
textColorstringrequiredaccentColorstringrequiredAccent color.
logoAssetIdstring | nullrequiredOrganization file (ast_…, from POST /assets) used as the logo; null = no logo.
font"inter" | "lora"requiredlayout"left" | "center" | "bottom"requiredTitle position on the card.
showSiteNamebooleanrequiredshowDomainbooleanrequired
Request
curl -X PUT "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/site" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"siteName":"Barbearia do Zé","locale":"pt_BR","twitterSite":"barbeariadoze","sitemapMode":"generate"}'Response 200
{
"domainId": "dom_4h7n1q",
"hostname": "barbeariadoze.com.br",
"siteName": "Barbearia do Zé",
"locale": "pt_BR",
"twitterSite": "@barbeariadoze",
"robotsTxt": null,
"sitemapMode": "generate",
"sitemapUrl": "https://app.tenanci.com/seo/sitemap/dom_4h7n1q.xml",
"verification": {
"google": "q8Hn2vR5tW1xY4zA7bC0dE3fG6hJ9kL",
"bing": null
},
"prerenderEnabled": false,
"ogTemplate": {
"background": {
"kind": "gradient",
"color": "#0f172a",
"color2": "#1d4ed8",
"angle": 135
},
"textColor": "#ffffff",
"accentColor": "#38bdf8",
"logoAssetId": null,
"font": "inter",
"layout": "left",
"showSiteName": true,
"showDomain": true
},
"updatedAt": "2026-10-14T12:00:00.000Z"
}List page SEO settings
/domains/{id}/seo/pagesdomains:readThe domain default (pathPattern: null) comes first, then patterns in alphabetical order.
Parameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/pages" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"id": "seo_7m2p4k",
"pathPattern": null,
"title": "Barbearia do Zé | Corte e barba no Centro",
"description": "Corte masculino, barba e sobrancelha no Centro. Agende online em poucos cliques e escolha o seu barbeiro.",
"imageUrl": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-og.jpg",
"image": {
"url": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-og.jpg",
"width": 1200,
"height": 630,
"alt": "Fachada da Barbearia do Zé",
"assetId": "ast_5q8w2e"
},
"ogAuto": false,
"ogType": "website",
"twitterCard": "summary_large_image",
"twitterSite": "@barbeariadoze",
"canonical": null,
"robots": null,
"hreflang": [],
"jsonLd": [],
"updatedAt": "2026-10-14T12:00:00.000Z"
},
{
"id": "seo_3x9r6t",
"pathPattern": "/servicos",
"title": "Serviços e preços | Barbearia do Zé",
"description": "Corte, barba, pigmentação e pacotes para noivos. Veja os serviços da Barbearia do Zé e agende o seu horário.",
"imageUrl": null,
"image": null,
"ogAuto": true,
"ogType": "website",
"twitterCard": "summary_large_image",
"twitterSite": "@barbeariadoze",
"canonical": "https://barbeariadoze.com.br/servicos",
"robots": null,
"hreflang": [],
"jsonLd": [],
"updatedAt": "2026-10-14T12:00:00.000Z"
}
]
}Create page SEO settings
/domains/{id}/seo/pagesdomains:writeTitle, description, social image, canonical, hreflang and JSON-LD for a path pattern. Settings already exist for the pattern? 409 seo_path_exists (use PATCH or PUT /domains/:id/seo). ogAuto: true requires the Growth plan.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
pathPatternstring | nullPath pattern (e.g. /services or /blog/*, * only at the end). null/omitted = domain default (applies to pages without their own settings).
titlestring | nullTitle (<title> and og:title).
descriptionstring | nullMeta description (and og:description).
imageUrlstring | nullCompat: social image URL only. Prefer
image.imageobject | nullSocial image (og:image). Use the variants from POST /domains/:id/seo/thumbnails. null removes it.
urlstringrequiredmax 2048widthinteger | nullheightinteger | nullaltstring | nullassetIdstring | nullOrganization file (ast_…) the image came from.
ogAutobooleanThumbnail generated automatically from the site template when the page has no image of its own (Growth plan).
ogType"website" | "article" | "product" | "profile" | nulltwitterCard"summary" | "summary_large_image" | nulltwitterSitestring | nullX handle (accepts "shop", "@shop" or the profile URL).
canonicalstring | nullCanonical URL.
robotsstring | nullMeta robots (e.g. noindex, nofollow).
hreflangobject[]≤ 50 itensVersions of the page in other languages.
langstringrequiredmin 2, max 20urlstringrequiredmax 2048
jsonLdRecord<string, any> | Record<string, any>[] | nullOne block or a list (up to 20) of JSON-LD blocks. Validated before saving (see /seo/structured-data/validate).
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/pages" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"pathPattern":"/servicos","title":"Serviços e preços | Barbearia do Zé","description":"Corte, barba, pigmentação e pacotes para noivos. Veja os serviços da Barbearia do Zé e agende o seu horário.","ogAuto":true,"ogType":"website","twitterCard":"summary_large_image","canonical":"https://barbeariadoze.com.br/servicos"}'Response 201
{
"id": "seo_3x9r6t",
"pathPattern": "/servicos",
"title": "Serviços e preços | Barbearia do Zé",
"description": "Corte, barba, pigmentação e pacotes para noivos. Veja os serviços da Barbearia do Zé e agende o seu horário.",
"imageUrl": null,
"image": null,
"ogAuto": true,
"ogType": "website",
"twitterCard": "summary_large_image",
"twitterSite": "@barbeariadoze",
"canonical": "https://barbeariadoze.com.br/servicos",
"robots": null,
"hreflang": [],
"jsonLd": [],
"updatedAt": "2026-10-14T12:00:00.000Z"
}Update page SEO settings
/domains/{id}/seo/pages/{pageId}domains:writeOmitted fields stay as they are; null clears them. The domain default's pathPattern can't be changed.
Parameters
idpath · stringrequiredDomain id (dom_…)
pageIdpath · stringrequiredPage settings id (seo_…)
Body
pathPatternstring | nullPath pattern (e.g. /services or /blog/*, * only at the end). null/omitted = domain default (applies to pages without their own settings).
titlestring | nullTitle (<title> and og:title).
descriptionstring | nullMeta description (and og:description).
imageUrlstring | nullCompat: social image URL only. Prefer
image.imageobject | nullSocial image (og:image). Use the variants from POST /domains/:id/seo/thumbnails. null removes it.
urlstringrequiredmax 2048widthinteger | nullheightinteger | nullaltstring | nullassetIdstring | nullOrganization file (ast_…) the image came from.
ogAutobooleanThumbnail generated automatically from the site template when the page has no image of its own (Growth plan).
ogType"website" | "article" | "product" | "profile" | nulltwitterCard"summary" | "summary_large_image" | nulltwitterSitestring | nullX handle (accepts "shop", "@shop" or the profile URL).
canonicalstring | nullCanonical URL.
robotsstring | nullMeta robots (e.g. noindex, nofollow).
hreflangobject[]≤ 50 itensVersions of the page in other languages.
langstringrequiredmin 2, max 20urlstringrequiredmax 2048
jsonLdRecord<string, any> | Record<string, any>[] | nullOne block or a list (up to 20) of JSON-LD blocks. Validated before saving (see /seo/structured-data/validate).
Request
curl -X PATCH "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/pages/<pageId>" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"description":"Corte, barba e pigmentação com hora marcada. Veja os preços da Barbearia do Zé e agende online.","robots":null}'Response 200
{
"id": "seo_3x9r6t",
"pathPattern": "/servicos",
"title": "Serviços e preços | Barbearia do Zé",
"description": "Corte, barba e pigmentação com hora marcada. Veja os preços da Barbearia do Zé e agende online.",
"imageUrl": null,
"image": null,
"ogAuto": true,
"ogType": "website",
"twitterCard": "summary_large_image",
"twitterSite": "@barbeariadoze",
"canonical": "https://barbeariadoze.com.br/servicos",
"robots": null,
"hreflang": [],
"jsonLd": [],
"updatedAt": "2026-10-14T12:00:00.000Z"
}Delete page SEO settings
/domains/{id}/seo/pages/{pageId}domains:writeParameters
idpath · stringrequiredDomain id (dom_…)
pageIdpath · stringrequiredPage settings id (seo_…)
Request
curl -X DELETE "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/pages/<pageId>" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 204
Success
List page SEO settings (compat)
/domains/{id}/seodomains:readSame as GET /domains/:id/seo/pages; kept for older integrations.
Parameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"id": "seo_7m2p4k",
"pathPattern": null,
"title": "Barbearia do Zé | Corte e barba no Centro",
"description": "Corte masculino, barba e sobrancelha no Centro. Agende online em poucos cliques e escolha o seu barbeiro.",
"imageUrl": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-og.jpg",
"image": {
"url": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-og.jpg",
"width": 1200,
"height": 630,
"alt": "Fachada da Barbearia do Zé",
"assetId": "ast_5q8w2e"
},
"ogAuto": false,
"ogType": "website",
"twitterCard": "summary_large_image",
"twitterSite": "@barbeariadoze",
"canonical": null,
"robots": null,
"hreflang": [],
"jsonLd": [],
"updatedAt": "2026-10-14T12:00:00.000Z"
},
{
"id": "seo_3x9r6t",
"pathPattern": "/servicos",
"title": "Serviços e preços | Barbearia do Zé",
"description": "Corte, barba, pigmentação e pacotes para noivos. Veja os serviços da Barbearia do Zé e agende o seu horário.",
"imageUrl": null,
"image": null,
"ogAuto": true,
"ogType": "website",
"twitterCard": "summary_large_image",
"twitterSite": "@barbeariadoze",
"canonical": "https://barbeariadoze.com.br/servicos",
"robots": null,
"hreflang": [],
"jsonLd": [],
"updatedAt": "2026-10-14T12:00:00.000Z"
}
]
}Create or update SEO by path pattern
/domains/{id}/seodomains:writeUpsert by pathPattern: creates it if missing, otherwise updates it (omitted fields stay as they are). Without pathPattern, updates the domain default. Handy to apply suggestions from POST /domains/:id/seo/ai.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
pathPatternstring | nullPath pattern (e.g. /services or /blog/*, * only at the end). null/omitted = domain default (applies to pages without their own settings).
titlestring | nullTitle (<title> and og:title).
descriptionstring | nullMeta description (and og:description).
imageUrlstring | nullCompat: social image URL only. Prefer
image.imageobject | nullSocial image (og:image). Use the variants from POST /domains/:id/seo/thumbnails. null removes it.
urlstringrequiredmax 2048widthinteger | nullheightinteger | nullaltstring | nullassetIdstring | nullOrganization file (ast_…) the image came from.
ogAutobooleanThumbnail generated automatically from the site template when the page has no image of its own (Growth plan).
ogType"website" | "article" | "product" | "profile" | nulltwitterCard"summary" | "summary_large_image" | nulltwitterSitestring | nullX handle (accepts "shop", "@shop" or the profile URL).
canonicalstring | nullCanonical URL.
robotsstring | nullMeta robots (e.g. noindex, nofollow).
hreflangobject[]≤ 50 itensVersions of the page in other languages.
langstringrequiredmin 2, max 20urlstringrequiredmax 2048
jsonLdRecord<string, any> | Record<string, any>[] | nullOne block or a list (up to 20) of JSON-LD blocks. Validated before saving (see /seo/structured-data/validate).
Request
curl -X PUT "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"pathPattern":null,"title":"Corte masculino e barba no Centro | Barbearia do Zé","description":"Corte, barba e sobrancelha com hora marcada no Centro de São Paulo. Escolha o seu barbeiro e agende online na Barbearia do Zé."}'Response 200
{
"id": "seo_7m2p4k",
"pathPattern": null,
"title": "Corte masculino e barba no Centro | Barbearia do Zé",
"description": "Corte, barba e sobrancelha com hora marcada no Centro de São Paulo. Escolha o seu barbeiro e agende online na Barbearia do Zé.",
"imageUrl": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-og.jpg",
"image": {
"url": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-og.jpg",
"width": 1200,
"height": 630,
"alt": "Fachada da Barbearia do Zé",
"assetId": "ast_5q8w2e"
},
"ogAuto": false,
"ogType": "website",
"twitterCard": "summary_large_image",
"twitterSite": "@barbeariadoze",
"canonical": null,
"robots": null,
"hreflang": [],
"jsonLd": [],
"updatedAt": "2026-10-14T12:00:00.000Z"
}Delete page SEO settings (compat)
/domains/{id}/seo/{seoId}domains:writeSame as DELETE /domains/:id/seo/pages/:pageId.
Parameters
idpath · stringrequiredDomain id (dom_…)
seoIdpath · stringrequiredPage settings id (seo_…)
Request
curl -X DELETE "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/<seoId>" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 204
Success
List redirects
/domains/{id}/seo/redirectsdomains:readParameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/redirects" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"id": "rdr_6d1k8v",
"from": "/agendamento",
"to": "/agendar",
"status": 301,
"position": 0,
"createdAt": "2026-10-14T12:00:00.000Z",
"updatedAt": "2026-10-14T12:00:00.000Z"
},
{
"id": "rdr_9f4c2m",
"from": "/blog/promocao-dia-dos-pais",
"to": "/servicos",
"status": 301,
"position": 1,
"createdAt": "2026-10-14T12:00:00.000Z",
"updatedAt": "2026-10-14T12:00:00.000Z"
}
]
}Create a redirect
/domains/{id}/seo/redirectsdomains:writeRedirect done at the edge, before the origin (good to keep the SEO of old addresses). Up to 5,000 per domain. Errors: 409 redirect_exists (duplicate source), 400 redirect_loop, redirect_from_reserved, redirect_to_invalid, redirect_limit.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
fromstringrequiredmax 2048Old path (e.g. /old-booking). A full URL is also accepted (only the path is kept).
tostringrequiredmax 2048Target: /path on the same domain or https://….
status301 | 302 | 307 | 308301 (default), 302, 307 or 308.
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/redirects" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"from":"/agendamento","to":"/agendar","status":301}'Response 201
{
"id": "rdr_6d1k8v",
"from": "/agendamento",
"to": "/agendar",
"status": 301,
"position": 0,
"createdAt": "2026-10-14T12:00:00.000Z",
"updatedAt": "2026-10-14T12:00:00.000Z"
}Export redirects as CSV
/domains/{id}/seo/redirects/exportdomains:readColumns from,to,status — the same format accepted by the import.
Parameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/redirects/export" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
"from,to,status\n/agendamento,/agendar,301\n/blog/promocao-dia-dos-pais,/servicos,301\n"Import redirects from CSV
/domains/{id}/seo/redirects/importdomains:writeCSV with columns from,to[,status] (status defaults to 301; accepts , ; or TAB and an optional header). Send it as JSON {csv, mode, dryRun}, as text/csv in the body or as multipart (file field); in those two cases mode and dryRun go in the query. merge updates existing sources and adds new ones; replace swaps the whole list. Invalid lines come back in problems and don't block the valid ones. With dryRun: true, it only simulates. Max 2 MB.
Parameters
idpath · stringrequiredDomain id (dom_…)
modequery · "merge" | "replace"For a text/csv or multipart body (default merge).
dryRunquery · "true" | "false"For a text/csv or multipart body: simulate only.
Body
csvstringrequiredmax 2097152CSV content.
mode"merge" | "replace"merge (default) or replace.
dryRunbooleanSimulate only: returns the result without saving.
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/redirects/import" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"csv":"from,to,status\n/agendamento,/agendar,301\n/precos,/servicos\n/promo,,301\n","mode":"merge","dryRun":true}'Response 200
{
"created": 1,
"updated": 1,
"removed": 0,
"problems": [
{
"line": 4,
"error": "to_invalid",
"raw": "/promo,,301"
}
],
"total": 3,
"dryRun": true
}Update a redirect
/domains/{id}/seo/redirects/{rid}domains:writeParameters
idpath · stringrequiredDomain id (dom_…)
ridpath · stringrequiredRedirect id (rdr_…)
Body
fromstringmax 2048Old path (e.g. /old-booking). A full URL is also accepted (only the path is kept).
tostringmax 2048Target: /path on the same domain or https://….
status301 | 302 | 307 | 308301 (default), 302, 307 or 308.
positioninteger≥ 0, ≤ 9007199254740991Position in the list.
Request
curl -X PATCH "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/redirects/<rid>" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"to":"/agendar-horario","status":308}'Response 200
{
"id": "rdr_6d1k8v",
"from": "/agendamento",
"to": "/agendar-horario",
"status": 308,
"position": 0,
"createdAt": "2026-10-14T12:00:00.000Z",
"updatedAt": "2026-10-14T12:00:00.000Z"
}Delete a redirect
/domains/{id}/seo/redirects/{rid}domains:writeParameters
idpath · stringrequiredDomain id (dom_…)
ridpath · stringrequiredRedirect id (rdr_…)
Request
curl -X DELETE "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/redirects/<rid>" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 204
Success
Get robots.txt
/domains/{id}/seo/robotsdomains:readmode: origin = the edge serves the origin's robots.txt; custom = serves robotsTxt. presets lists ready-made templates with the domain filled in.
Parameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/robots" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"robotsTxt": null,
"mode": "origin",
"presets": [
{
"id": "allow_all",
"content": "User-agent: *\nAllow: /\n\nSitemap: https://barbeariadoze.com.br/sitemap.xml\n"
},
{
"id": "block_all",
"content": "User-agent: *\nDisallow: /\n"
},
{
"id": "block_ai",
"content": "User-agent: GPTBot\nDisallow: /\n\nUser-agent: ChatGPT-User\nDisallow: /\n\nUser-agent: OAI-SearchBot\nDisallow: /\n\nUser-agent: ClaudeBot\nDisallow: /\n\nUser-agent: Claude-Web\nDisallow: /\n\nUser-agent: anthropic-ai\nDisallow: /\n\nUser-agent: CCBot\nDisallow: /\n\nUser-agent: Google-Extended\nDisallow: /\n\nUser-agent: PerplexityBot\nDisallow: /\n\nUser-agent: Bytespider\nDisallow: /\n\nUser-agent: Applebot-Extended\nDisallow: /\n\nUser-agent: meta-externalagent\nDisallow: /\n\nUser-agent: Amazonbot\nDisallow: /\n\nUser-agent: cohere-ai\nDisallow: /\n\nUser-agent: Diffbot\nDisallow: /\n\nUser-agent: Omgilibot\nDisallow: /\n\nUser-agent: YouBot\nDisallow: /\n\nUser-agent: *\nAllow: /\n\nSitemap: https://barbeariadoze.com.br/sitemap.xml\n"
}
]
}Set robots.txt
/domains/{id}/seo/robotsdomains:writeSend a preset or the text in robotsTxt (null goes back to the origin's). The text is validated: 400 invalid_robots with the offending lines.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
robotsTxtstring | nullrobots.txt content; null = use the origin's.
preset"allow_all" | "block_all" | "block_ai"Ready-made template (takes precedence over robotsTxt): allow all, block all or block AI crawlers.
Request
curl -X PUT "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/robots" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"preset":"block_ai"}'Response 200
{
"robotsTxt": "User-agent: GPTBot\nDisallow: /\n\nUser-agent: ChatGPT-User\nDisallow: /\n\nUser-agent: OAI-SearchBot\nDisallow: /\n\nUser-agent: ClaudeBot\nDisallow: /\n\nUser-agent: Claude-Web\nDisallow: /\n\nUser-agent: anthropic-ai\nDisallow: /\n\nUser-agent: CCBot\nDisallow: /\n\nUser-agent: Google-Extended\nDisallow: /\n\nUser-agent: PerplexityBot\nDisallow: /\n\nUser-agent: Bytespider\nDisallow: /\n\nUser-agent: Applebot-Extended\nDisallow: /\n\nUser-agent: meta-externalagent\nDisallow: /\n\nUser-agent: Amazonbot\nDisallow: /\n\nUser-agent: cohere-ai\nDisallow: /\n\nUser-agent: Diffbot\nDisallow: /\n\nUser-agent: Omgilibot\nDisallow: /\n\nUser-agent: YouBot\nDisallow: /\n\nUser-agent: *\nAllow: /\n\nSitemap: https://barbeariadoze.com.br/sitemap.xml\n",
"mode": "custom",
"presets": [
{
"id": "allow_all",
"content": "User-agent: *\nAllow: /\n\nSitemap: https://barbeariadoze.com.br/sitemap.xml\n"
},
{
"id": "block_all",
"content": "User-agent: *\nDisallow: /\n"
},
{
"id": "block_ai",
"content": "User-agent: GPTBot\nDisallow: /\n\nUser-agent: ChatGPT-User\nDisallow: /\n\nUser-agent: OAI-SearchBot\nDisallow: /\n\nUser-agent: ClaudeBot\nDisallow: /\n\nUser-agent: Claude-Web\nDisallow: /\n\nUser-agent: anthropic-ai\nDisallow: /\n\nUser-agent: CCBot\nDisallow: /\n\nUser-agent: Google-Extended\nDisallow: /\n\nUser-agent: PerplexityBot\nDisallow: /\n\nUser-agent: Bytespider\nDisallow: /\n\nUser-agent: Applebot-Extended\nDisallow: /\n\nUser-agent: meta-externalagent\nDisallow: /\n\nUser-agent: Amazonbot\nDisallow: /\n\nUser-agent: cohere-ai\nDisallow: /\n\nUser-agent: Diffbot\nDisallow: /\n\nUser-agent: Omgilibot\nDisallow: /\n\nUser-agent: YouBot\nDisallow: /\n\nUser-agent: *\nAllow: /\n\nSitemap: https://barbeariadoze.com.br/sitemap.xml\n"
}
]
}Get the sitemap and its URLs
/domains/{id}/seo/sitemapdomains:readSitemap mode, where it's served (publicUrl) and the URLs registered by hand (manual) or found by audits (audit).
Parameters
idpath · stringrequiredDomain id (dom_…)
limitquery · integerItems per page (default 100).
offsetquery · integerSkip the first N items.
sourcequery · "manual" | "audit" | "alias"Only URLs from this source.
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/sitemap" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"mode": "generate",
"url": "https://app.tenanci.com/seo/sitemap/dom_4h7n1q.xml",
"publicUrl": "https://barbeariadoze.com.br/sitemap.xml",
"items": [
{
"id": "smu_4k7p1z",
"path": "/",
"lastmod": "2026-10-10T00:00:00.000Z",
"changefreq": null,
"priority": null,
"source": "audit",
"updatedAt": "2026-10-14T12:00:00.000Z"
},
{
"id": "smu_2h5n9b",
"path": "/servicos",
"lastmod": "2026-10-10T00:00:00.000Z",
"changefreq": "weekly",
"priority": 0.8,
"source": "manual",
"updatedAt": "2026-10-14T12:00:00.000Z"
}
],
"total": 18
}Add URLs to the sitemap
/domains/{id}/seo/sitemap/urlsdomains:writeOne URL or {items: [...]} with up to 5,000. An existing path is updated. Applies when the sitemap is in generate mode.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
object
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/sitemap/urls" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"items":[{"path":"/servicos","changefreq":"weekly","priority":0.8},{"path":"/agendar","lastmod":"2026-10-10","priority":1}]}'Response 201
{
"added": 2
}Update a sitemap URL
/domains/{id}/seo/sitemap/urls/{uid}domains:writeA URL found by an audit becomes manual once edited.
Parameters
idpath · stringrequiredDomain id (dom_…)
uidpath · stringrequiredSitemap URL id (smu_…)
Body
pathstringmin 1, max 2048Page path (e.g. /services). A full URL is also accepted.
lastmodstring | nullLast modification date (ISO 8601).
changefreq"always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never" | nullprioritynumber | nullPriority from 0 to 1.
Request
curl -X PATCH "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/sitemap/urls/<uid>" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"priority":0.9,"changefreq":"daily"}'Response 200
{
"id": "smu_2h5n9b",
"path": "/servicos",
"lastmod": "2026-10-10T00:00:00.000Z",
"changefreq": "daily",
"priority": 0.9,
"source": "manual",
"updatedAt": "2026-10-14T12:00:00.000Z"
}Remove a sitemap URL
/domains/{id}/seo/sitemap/urls/{uid}domains:writeParameters
idpath · stringrequiredDomain id (dom_…)
uidpath · stringrequiredSitemap URL id (smu_…)
Request
curl -X DELETE "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/sitemap/urls/<uid>" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 204
Success
Get verification codes (Google, Bing)
/domains/{id}/seo/verificationdomains:readParameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/verification" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"google": "q8Hn2vR5tW1xY4zA7bC0dE3fG6hJ9kL",
"bing": null
}Set verification codes (Google, Bing)
/domains/{id}/seo/verificationdomains:writeThe edge injects the verification meta tag into the pages' <head>. Accepts the code or the whole meta tag copied from Search Console/Bing; null or empty removes it. Invalid code: 400 invalid_verification.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
googlestring | nullgoogle-site-verification (code or meta tag).
bingstring | nullmsvalidate.01 (code or meta tag).
Request
curl -X PUT "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/verification" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"google":"<meta name=\"google-site-verification\" content=\"q8Hn2vR5tW1xY4zA7bC0dE3fG6hJ9kL\" />","bing":null}'Response 200
{
"google": "q8Hn2vR5tW1xY4zA7bC0dE3fG6hJ9kL",
"bing": null
}Upload a social thumbnail
/domains/{id}/seo/thumbnailsdomains:writefile field (JPG, PNG, WebP, AVIF or GIF, up to 8 MB, shorter side ≥ 200 px). Generates og (1200×630), x (1200×600) and square (1080×1080) crops in WebP and JPEG. Without focusX/focusY, the crop looks for the most important region of the image. Use the returned URL in the pages' image.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
filestringrequiredfocusXstringHorizontal focus point, from 0 to 1 (send together with focusY).
focusYstringVertical focus point, from 0 to 1.
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/thumbnails" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-F "file=@logo.png"Response 201
{
"original": {
"width": 2400,
"height": 1600,
"format": "jpeg"
},
"variants": {
"og": {
"webp": {
"url": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-og.webp",
"assetId": "ast_5q8w2f",
"width": 1200,
"height": 630,
"bytes": 84213,
"contentType": "image/webp"
},
"jpeg": {
"url": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-og.jpg",
"assetId": "ast_5q8w2e",
"width": 1200,
"height": 630,
"bytes": 121877,
"contentType": "image/jpeg"
}
},
"x": {
"webp": {
"url": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-x.webp",
"assetId": "ast_5q8w2h",
"width": 1200,
"height": 600,
"bytes": 80144,
"contentType": "image/webp"
},
"jpeg": {
"url": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-x.jpg",
"assetId": "ast_5q8w2g",
"width": 1200,
"height": 600,
"bytes": 116302,
"contentType": "image/jpeg"
}
},
"square": {
"webp": {
"url": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-square.webp",
"assetId": "ast_5q8w2k",
"width": 1080,
"height": 1080,
"bytes": 112590,
"contentType": "image/webp"
},
"jpeg": {
"url": "https://assets.tenanci.com/o/org_5t1v/seo/9c1e4b7a2d3f8e6051a7b2c4-square.jpg",
"assetId": "ast_5q8w2j",
"width": 1080,
"height": 1080,
"bytes": 168431,
"contentType": "image/jpeg"
}
}
}
}Preview an automatic thumbnail
/domains/{id}/seo/og/previewdomains:readGrowth+Renders the PNG (1200×630) with the saved template or the one sent in template, without saving anything.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
templateobjectTemplate to try (default: the one saved on the site).
backgroundobjectrequiredkind"solid" | "gradient"requiredSolid color or gradient.
colorstringrequiredMain color (#rrggbb).
color2stringrequiredSecond gradient color (#rrggbb).
angleintegerrequired≥ 0, ≤ 360Gradient angle in degrees.
textColorstringrequiredaccentColorstringrequiredAccent color.
logoAssetIdstring | nullrequiredOrganization file (ast_…, from POST /assets) used as the logo; null = no logo.
font"inter" | "lora"requiredlayout"left" | "center" | "bottom"requiredTitle position on the card.
showSiteNamebooleanrequiredshowDomainbooleanrequired
titlestringmax 300Title on the card (default: the domain default's).
siteNamestring | nullSite name on the card.
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/og/preview" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"template":{"background":{"kind":"gradient","color":"#0f172a","color2":"#1d4ed8","angle":135},"textColor":"#ffffff","accentColor":"#38bdf8","logoAssetId":null,"font":"inter","layout":"left","showSiteName":true,"showDomain":true},"title":"Serviços e preços | Barbearia do Zé","siteName":"Barbearia do Zé"}'Response 200
1200×630 PNG image
Default automatic thumbnail template
/domains/{id}/seo/og/default-templatedomains:readParameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/og/default-template" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"background": {
"kind": "gradient",
"color": "#0f172a",
"color2": "#1d4ed8",
"angle": 135
},
"textColor": "#ffffff",
"accentColor": "#38bdf8",
"logoAssetId": null,
"font": "inter",
"layout": "left",
"showSiteName": true,
"showDomain": true
}Thumbnail template from the customer's brand
/domains/{id}/seo/og/from-branddomains:readApplies the colors and logo of the TailorKit theme published on the domain to the given template. Doesn't save: to use it, send the result to PUT /domains/:id/seo/site. found: false = the domain has no theme with a primary color (the template comes back unchanged).
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
templateobjectrequiredCurrent template (base for the suggestion).
backgroundobjectrequiredkind"solid" | "gradient"requiredSolid color or gradient.
colorstringrequiredMain color (#rrggbb).
color2stringrequiredSecond gradient color (#rrggbb).
angleintegerrequired≥ 0, ≤ 360Gradient angle in degrees.
textColorstringrequiredaccentColorstringrequiredAccent color.
logoAssetIdstring | nullrequiredOrganization file (ast_…, from POST /assets) used as the logo; null = no logo.
font"inter" | "lora"requiredlayout"left" | "center" | "bottom"requiredTitle position on the card.
showSiteNamebooleanrequiredshowDomainbooleanrequired
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/og/from-brand" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"template":{"background":{"kind":"gradient","color":"#0f172a","color2":"#1d4ed8","angle":135},"textColor":"#ffffff","accentColor":"#38bdf8","logoAssetId":null,"font":"inter","layout":"left","showSiteName":true,"showDomain":true}}'Response 200
{
"found": true,
"template": {
"background": {
"kind": "gradient",
"color": "#1f2937",
"color2": "#b45309",
"angle": 135
},
"textColor": "#ffffff",
"accentColor": "#b45309",
"logoAssetId": "ast_7r2m9d",
"font": "inter",
"layout": "left",
"showSiteName": true,
"showDomain": true
}
}Suggest titles and descriptions with AI
/domains/{id}/seo/aidomains:writeGrowth+Writes a title and description for each page for this domain's customer, based on what the domain publishes, the customer data (tenant context) and about. Only suggests: apply with PUT /domains/:id/seo. Without paths, uses the pages already configured, the home page and those from the latest audit (up to 15). The item with path: null is the domain default; current shows what's live. 429 ai_limit when the daily AI quota runs out.
Parameters
idpath · stringrequiredDomain id (dom_…)
Body
pathsstring[]≤ 15 itensPages (e.g. /services), up to 15.
aboutstring | nullWhat you know about the customer (neighborhood, specialties…).
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/ai" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"paths":["/","/servicos"],"about":"Barbearia tradicional no Centro de São Paulo, especializada em corte na tesoura e barba com toalha quente."}'Response 200
{
"locale": "pt_BR",
"items": [
{
"path": null,
"title": "Corte masculino e barba no Centro | Barbearia do Zé",
"description": "Corte, barba e sobrancelha com hora marcada no Centro de São Paulo. Escolha o seu barbeiro e agende online na Barbearia do Zé.",
"current": {
"title": "Barbearia do Zé | Corte e barba no Centro",
"description": "Corte masculino, barba e sobrancelha no Centro. Agende online em poucos cliques e escolha o seu barbeiro."
}
},
{
"path": "/",
"title": "Corte masculino e barba no Centro | Barbearia do Zé",
"description": "Corte, barba e sobrancelha com hora marcada no Centro de São Paulo. Escolha o seu barbeiro e agende online na Barbearia do Zé.",
"current": {
"title": "Barbearia do Zé",
"description": null
}
},
{
"path": "/servicos",
"title": "Serviços e preços de corte e barba | Barbearia do Zé",
"description": "Veja os serviços da Barbearia do Zé: corte, barba, pigmentação e pacotes para noivos. Confira os valores e reserve o seu horário.",
"current": {
"title": "Serviços",
"description": null
}
}
]
}Start an SEO audit
/domains/{id}/seo/auditsdomains:writeCrawls the site (up to 25 pages; 500 on Growth and 2,000 on Scale) and flags issues per page. Runs in the background: follow it at GET /domains/:id/seo/audits/:auditId. Indexable pages found go into the sitemap. Errors: 409 domain_not_active, 409 audit_running, 429 audit_limit (3, 10 or 20 per day, depending on the plan).
Parameters
idpath · stringrequiredDomain id (dom_…)
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/audits" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 202
{
"id": "aud_8t3w5y",
"domainId": "dom_4h7n1q",
"status": "queued",
"trigger": "manual",
"maxPages": 500,
"pagesCrawled": 0,
"score": null,
"summary": null,
"error": null,
"createdAt": "2026-10-14T12:00:00.000Z",
"startedAt": null,
"finishedAt": null
}List audits
/domains/{id}/seo/auditsdomains:readMost recent first. Includes the automatic weekly ones (trigger: schedule).
Parameters
idpath · stringrequiredDomain id (dom_…)
limitquery · integerItems (default 20).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/audits" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"id": "aud_8t3w5y",
"domainId": "dom_4h7n1q",
"status": "done",
"trigger": "manual",
"maxPages": 500,
"pagesCrawled": 18,
"score": 84,
"summary": {
"issues": {
"high": 1,
"medium": 4,
"low": 3
},
"byCode": {
"fetch_error": {
"severity": "high",
"pages": 1,
"message": "Não foi possível carregar a página (timeout).",
"fix": "Verifique se a página está no ar e responde em até 10 segundos."
},
"description_missing": {
"severity": "medium",
"pages": 3,
"message": "A página não tem meta description.",
"fix": "Escreva uma descrição de 70 a 160 caracteres na aba Páginas."
},
"title_short": {
"severity": "medium",
"pages": 1,
"message": "Título curto (9 caracteres).",
"fix": "Use de 30 a 60 caracteres, com a palavra-chave principal no começo."
},
"img_alt_missing": {
"severity": "low",
"pages": 3,
"message": "2 imagens sem texto alternativo (alt).",
"fix": "Descreva cada imagem no atributo alt (acessibilidade e Google Imagens); imagens decorativas usam alt vazio."
},
"cwv_lcp_poor": {
"severity": "medium",
"pages": 1,
"message": "LCP (carregamento do maior elemento) ruim para visitantes reais (o ideal é até 2,5 s).",
"fix": "Otimize a imagem principal (WebP/AVIF, tamanho certo, fetchpriority=\"high\" e sem lazy-load), pré-carregue a fonte e a imagem do topo, adie CSS e JavaScript que bloqueiam a renderização e acelere a resposta do HTML."
}
},
"robotsTxt": {
"found": true,
"status": 200
},
"complete": true,
"quickWins": [
"description_missing",
"img_alt_missing",
"title_short"
],
"pagesWithIssues": 6,
"fieldVitals": {
"status": "ok",
"from": "2026-09-16T12:00:00.000Z",
"to": "2026-10-14T12:00:00.000Z",
"days": 28,
"minSamples": 20,
"thresholds": {
"lcp": [
2500,
4000
],
"inp": [
200,
500
],
"cls": [
0.1,
0.25
],
"fcp": [
1800,
3000
],
"ttfb": [
800,
1800
]
},
"domain": {
"mobile": {
"samples": 1840,
"lcp": {
"p75": 4300,
"samples": 1840,
"rating": "poor"
},
"inp": {
"p75": 140,
"samples": 1104,
"rating": "good"
},
"cls": {
"p75": 0.04,
"samples": 1840,
"rating": "good"
},
"fcp": {
"p75": 1200,
"samples": 1840,
"rating": "good"
},
"ttfb": {
"p75": 950,
"samples": 1840,
"rating": "needs_improvement"
}
},
"desktop": {
"samples": 610,
"lcp": {
"p75": 2100,
"samples": 610,
"rating": "good"
},
"inp": {
"p75": 140,
"samples": 366,
"rating": "good"
},
"cls": {
"p75": 0.04,
"samples": 610,
"rating": "good"
},
"fcp": {
"p75": 1200,
"samples": 610,
"rating": "good"
},
"ttfb": {
"p75": 450,
"samples": 610,
"rating": "good"
}
}
},
"worstPages": [
{
"path": "/agendar",
"device": "mobile",
"samples": 420,
"metrics": {
"lcp": {
"p75": 5100,
"samples": 420,
"rating": "poor"
},
"inp": {
"p75": 140,
"samples": 252,
"rating": "good"
},
"cls": {
"p75": 0.28,
"samples": 420,
"rating": "poor"
},
"fcp": {
"p75": 1200,
"samples": 420,
"rating": "good"
},
"ttfb": {
"p75": 450,
"samples": 420,
"rating": "good"
}
}
},
{
"path": "/",
"device": "mobile",
"samples": 900,
"metrics": {
"lcp": {
"p75": 3200,
"samples": 900,
"rating": "needs_improvement"
},
"inp": {
"p75": 140,
"samples": 540,
"rating": "good"
},
"cls": {
"p75": 0.04,
"samples": 900,
"rating": "good"
},
"fcp": {
"p75": 1200,
"samples": 900,
"rating": "good"
},
"ttfb": {
"p75": 450,
"samples": 900,
"rating": "good"
}
}
}
],
"pagesMeasured": 2,
"findings": [
{
"code": "cwv_lcp_poor",
"scope": "domain",
"path": null,
"device": "mobile",
"metric": "lcp",
"p75": 4300,
"samples": 1840,
"severity": "medium"
},
{
"code": "cwv_lcp_poor",
"scope": "page",
"path": "/agendar",
"device": "mobile",
"metric": "lcp",
"p75": 5100,
"samples": 420,
"severity": "medium"
},
{
"code": "cwv_cls_poor",
"scope": "page",
"path": "/agendar",
"device": "mobile",
"metric": "cls",
"p75": 0.28,
"samples": 420,
"severity": "medium"
}
]
}
},
"error": null,
"createdAt": "2026-10-14T12:00:00.000Z",
"startedAt": "2026-10-14T12:00:02.000Z",
"finishedAt": "2026-10-14T12:01:37.000Z"
}
]
}Get an audit and its pages
/domains/{id}/seo/audits/{auditId}domains:readPages from worst to best score, with their issues and how to fix them. summary.fieldVitals has the real visitors' Web Vitals (28-day p75 from analytics, for mobile and desktop: LCP, INP, CLS, FCP and TTFB with Google's rating; p75: null = fewer than minSamples measurements) and the worst pages; poor metrics become cwv_<metric>_poor issues. status says whether there was data: ok, no_analytics (plan without analytics), no_beacon (browser script off) or unavailable.
Parameters
idpath · stringrequiredDomain id (dom_…)
auditIdpath · stringrequiredAudit id (aud_…)
severityquery · "high" | "medium" | "low"Only issues of this severity (and only pages that have them).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/audits/<auditId>" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"id": "aud_8t3w5y",
"domainId": "dom_4h7n1q",
"status": "done",
"trigger": "manual",
"maxPages": 500,
"pagesCrawled": 18,
"score": 84,
"summary": {
"issues": {
"high": 1,
"medium": 4,
"low": 3
},
"byCode": {
"fetch_error": {
"severity": "high",
"pages": 1,
"message": "Não foi possível carregar a página (timeout).",
"fix": "Verifique se a página está no ar e responde em até 10 segundos."
},
"description_missing": {
"severity": "medium",
"pages": 3,
"message": "A página não tem meta description.",
"fix": "Escreva uma descrição de 70 a 160 caracteres na aba Páginas."
},
"title_short": {
"severity": "medium",
"pages": 1,
"message": "Título curto (9 caracteres).",
"fix": "Use de 30 a 60 caracteres, com a palavra-chave principal no começo."
},
"img_alt_missing": {
"severity": "low",
"pages": 3,
"message": "2 imagens sem texto alternativo (alt).",
"fix": "Descreva cada imagem no atributo alt (acessibilidade e Google Imagens); imagens decorativas usam alt vazio."
},
"cwv_lcp_poor": {
"severity": "medium",
"pages": 1,
"message": "LCP (carregamento do maior elemento) ruim para visitantes reais (o ideal é até 2,5 s).",
"fix": "Otimize a imagem principal (WebP/AVIF, tamanho certo, fetchpriority=\"high\" e sem lazy-load), pré-carregue a fonte e a imagem do topo, adie CSS e JavaScript que bloqueiam a renderização e acelere a resposta do HTML."
}
},
"robotsTxt": {
"found": true,
"status": 200
},
"complete": true,
"quickWins": [
"description_missing",
"img_alt_missing",
"title_short"
],
"pagesWithIssues": 6,
"fieldVitals": {
"status": "ok",
"from": "2026-09-16T12:00:00.000Z",
"to": "2026-10-14T12:00:00.000Z",
"days": 28,
"minSamples": 20,
"thresholds": {
"lcp": [
2500,
4000
],
"inp": [
200,
500
],
"cls": [
0.1,
0.25
],
"fcp": [
1800,
3000
],
"ttfb": [
800,
1800
]
},
"domain": {
"mobile": {
"samples": 1840,
"lcp": {
"p75": 4300,
"samples": 1840,
"rating": "poor"
},
"inp": {
"p75": 140,
"samples": 1104,
"rating": "good"
},
"cls": {
"p75": 0.04,
"samples": 1840,
"rating": "good"
},
"fcp": {
"p75": 1200,
"samples": 1840,
"rating": "good"
},
"ttfb": {
"p75": 950,
"samples": 1840,
"rating": "needs_improvement"
}
},
"desktop": {
"samples": 610,
"lcp": {
"p75": 2100,
"samples": 610,
"rating": "good"
},
"inp": {
"p75": 140,
"samples": 366,
"rating": "good"
},
"cls": {
"p75": 0.04,
"samples": 610,
"rating": "good"
},
"fcp": {
"p75": 1200,
"samples": 610,
"rating": "good"
},
"ttfb": {
"p75": 450,
"samples": 610,
"rating": "good"
}
}
},
"worstPages": [
{
"path": "/agendar",
"device": "mobile",
"samples": 420,
"metrics": {
"lcp": {
"p75": 5100,
"samples": 420,
"rating": "poor"
},
"inp": {
"p75": 140,
"samples": 252,
"rating": "good"
},
"cls": {
"p75": 0.28,
"samples": 420,
"rating": "poor"
},
"fcp": {
"p75": 1200,
"samples": 420,
"rating": "good"
},
"ttfb": {
"p75": 450,
"samples": 420,
"rating": "good"
}
}
},
{
"path": "/",
"device": "mobile",
"samples": 900,
"metrics": {
"lcp": {
"p75": 3200,
"samples": 900,
"rating": "needs_improvement"
},
"inp": {
"p75": 140,
"samples": 540,
"rating": "good"
},
"cls": {
"p75": 0.04,
"samples": 900,
"rating": "good"
},
"fcp": {
"p75": 1200,
"samples": 900,
"rating": "good"
},
"ttfb": {
"p75": 450,
"samples": 900,
"rating": "good"
}
}
}
],
"pagesMeasured": 2,
"findings": [
{
"code": "cwv_lcp_poor",
"scope": "domain",
"path": null,
"device": "mobile",
"metric": "lcp",
"p75": 4300,
"samples": 1840,
"severity": "medium"
},
{
"code": "cwv_lcp_poor",
"scope": "page",
"path": "/agendar",
"device": "mobile",
"metric": "lcp",
"p75": 5100,
"samples": 420,
"severity": "medium"
},
{
"code": "cwv_cls_poor",
"scope": "page",
"path": "/agendar",
"device": "mobile",
"metric": "cls",
"p75": 0.28,
"samples": 420,
"severity": "medium"
}
]
}
},
"error": null,
"createdAt": "2026-10-14T12:00:00.000Z",
"startedAt": "2026-10-14T12:00:02.000Z",
"finishedAt": "2026-10-14T12:01:37.000Z",
"pages": [
{
"path": "/promocoes",
"statusCode": 200,
"score": 62,
"title": "Promoções",
"loadMs": 840,
"bytes": 48211,
"issues": [
{
"code": "title_short",
"severity": "medium",
"message": "Título curto (9 caracteres).",
"fix": "Use de 30 a 60 caracteres, com a palavra-chave principal no começo.",
"details": {
"title": "Promoções"
}
},
{
"code": "description_missing",
"severity": "medium",
"message": "A página não tem meta description.",
"fix": "Escreva uma descrição de 70 a 160 caracteres na aba Páginas."
}
]
},
{
"path": "/",
"statusCode": 200,
"score": 100,
"title": "Barbearia do Zé | Corte e barba no Centro",
"loadMs": 412,
"bytes": 61530,
"issues": []
}
]
}Google Search Console status
/domains/{id}/seo/gscdomains:readavailable tells whether the plan includes the integration (Growth). Connecting to Google is done in the dashboard.
Parameters
idpath · stringrequiredDomain id (dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/gsc" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"configured": true,
"available": true,
"connected": true,
"googleEmail": "ze@barbeariadoze.com.br",
"propertyUrl": "https://barbeariadoze.com.br/",
"status": "verified",
"verified": true,
"lastSyncAt": "2026-10-14T06:10:00.000Z",
"backfilledAt": "2026-10-02T09:30:00.000Z",
"lastError": null
}Disconnect Search Console
/domains/{id}/seo/gscdomains:writeRevokes Google access and deletes the domain's imported data.
Parameters
idpath · stringrequiredDomain id (dom_…)
Request
curl -X DELETE "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/gsc" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 204
Success
Sync Search Console now
/domains/{id}/seo/gsc/syncdomains:writeGrowth+Queues the import (which already runs daily). If the property isn't verified yet, queues the verification instead (queued: verify). Without a connection: 400 gsc_not_connected.
Parameters
idpath · stringrequiredDomain id (dom_…)
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/gsc/sync" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 202
{
"queued": "sync"
}Clicks and impressions per day (Search Console)
/domains/{id}/seo/gsc/timeseriesdomains:readGrowth+ctr is a fraction (0.05 = 5%); position is the impression-weighted average position.
Parameters
idpath · stringrequiredDomain id (dom_…)
fromquery · stringStart date (YYYY-MM-DD). Default: 28 days ago.
toquery · stringEnd date (YYYY-MM-DD). Default: today.
pagequery · stringOnly this page (exact URL, as in Search Console).
queryquery · stringOnly this search query (exact text).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/gsc/timeseries" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"date": "2026-10-12",
"clicks": 18,
"impressions": 402,
"ctr": 0.0448,
"position": 8.4
},
{
"date": "2026-10-13",
"clicks": 23,
"impressions": 455,
"ctr": 0.0505,
"position": 7.9
}
],
"totals": {
"clicks": 41,
"impressions": 857,
"ctr": 0.0478,
"position": 8.13
}
}Top search queries (Search Console)
/domains/{id}/seo/gsc/queriesdomains:readGrowth+Sorted by clicks and impressions.
Parameters
idpath · stringrequiredDomain id (dom_…)
fromquery · stringStart date (YYYY-MM-DD). Default: 28 days ago.
toquery · stringEnd date (YYYY-MM-DD). Default: today.
pagequery · stringOnly this page (exact URL, as in Search Console).
queryquery · stringOnly this search query (exact text).
limitquery · integerItems (default 50, max 500).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/gsc/queries" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"key": "barbearia centro sp",
"clicks": 31,
"impressions": 512,
"ctr": 0.0605,
"position": 3.2
},
{
"key": "barbearia do zé",
"clicks": 27,
"impressions": 64,
"ctr": 0.4219,
"position": 1.1
}
]
}Top pages (Search Console)
/domains/{id}/seo/gsc/pagesdomains:readGrowth+Sorted by clicks and impressions.
Parameters
idpath · stringrequiredDomain id (dom_…)
fromquery · stringStart date (YYYY-MM-DD). Default: 28 days ago.
toquery · stringEnd date (YYYY-MM-DD). Default: today.
pagequery · stringOnly this page (exact URL, as in Search Console).
queryquery · stringOnly this search query (exact text).
limitquery · integerItems (default 50, max 500).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/seo/gsc/pages" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"key": "https://barbeariadoze.com.br/",
"clicks": 52,
"impressions": 610,
"ctr": 0.0852,
"position": 2.4
},
{
"key": "https://barbeariadoze.com.br/servicos",
"clicks": 14,
"impressions": 247,
"ctr": 0.0567,
"position": 6.8
}
]
}Available structured data types
/seo/structured-data/typesdomains:readRequest
curl "https://api.tenanci.com/v2/seo/structured-data/types" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
"Organization",
"LocalBusiness",
"Product",
"Article",
"FAQPage",
"BreadcrumbList"
]
}Build JSON-LD from a form
/seo/structured-data/builddomains:readBuilds the schema.org block for the chosen type (Organization, LocalBusiness, Product, Article, FAQPage, BreadcrumbList) and validates it. Use the returned jsonLd in the pages' jsonLd field. Doesn't save.
Body
object
Request
curl -X POST "https://api.tenanci.com/v2/seo/structured-data/build" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"type":"LocalBusiness","data":{"businessType":"HairSalon","name":"Barbearia do Zé","url":"https://barbeariadoze.com.br/","telephone":"+55 11 99999-1234","priceRange":"$$","address":{"streetAddress":"Rua Augusta, 1200","addressLocality":"São Paulo","addressRegion":"SP","postalCode":"01304-001","addressCountry":"BR"},"openingHours":[{"days":["Tu","We","Th","Fr"],"opens":"09:00","closes":"20:00"},{"days":["Sa"],"opens":"08:00","closes":"16:00"}]}}'Response 200
{
"jsonLd": {
"@context": "https://schema.org",
"@type": "HairSalon",
"name": "Barbearia do Zé",
"url": "https://barbeariadoze.com.br/",
"telephone": "+55 11 99999-1234",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"streetAddress": "Rua Augusta, 1200",
"addressLocality": "São Paulo",
"addressRegion": "SP",
"postalCode": "01304-001",
"addressCountry": "BR"
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"opens": "09:00",
"closes": "20:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Saturday"
],
"opens": "08:00",
"closes": "16:00"
}
]
},
"valid": true,
"issues": []
}Validate JSON-LD
/seo/structured-data/validatedomains:readChecks @context, @type, the required fields (errors) and the recommended ones (warnings) for Google rich results. Accepts one block or a list. Errors prevent saving the JSON-LD on a page.
Body
jsonLdanyrequiredOne JSON-LD block (object) or a list of blocks.
Request
curl -X POST "https://api.tenanci.com/v2/seo/structured-data/validate" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"jsonLd":{"@context":"https://schema.org","@type":"LocalBusiness","name":"Barbearia do Zé","telephone":"+55 11 99999-1234"}}'Response 200
{
"valid": false,
"issues": [
{
"path": "$[0].address",
"level": "error",
"message": "LocalBusiness: campo obrigatório \"address\" ausente"
},
{
"path": "$[0].openingHoursSpecification",
"level": "warning",
"message": "LocalBusiness: campo recomendado \"openingHoursSpecification\" ausente"
},
{
"path": "$[0].geo",
"level": "warning",
"message": "LocalBusiness: campo recomendado \"geo\" ausente"
},
{
"path": "$[0].url",
"level": "warning",
"message": "LocalBusiness: campo recomendado \"url\" ausente"
}
]
}
