TenanciTenanci

Help centerAPI referenceSEO

SEO

Titles, sitemap, robots, redirects, thumbnails and Search Console per domain.

Domain SEO overview

GET/domains/{id}/seo/overviewdomains:read

Site settings, counts (pages, redirects, sitemap URLs), the latest audit, Search Console status and plan limits.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

GET/domains/{id}/seo/sitedomains:read

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

PUT/domains/{id}/seo/sitedomains:write

Omitted 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 · stringrequired

    Domain id (dom_…)

Body

  • siteNamestring | null

    Site name (og:site_name and thumbnails).

  • localestring | null

    Locale in pt_BR format (og:locale).

  • twitterSitestring | null

    Default 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.

  • prerenderEnabledboolean

    Pre-render pages for search bots (Growth plan).

  • ogTemplateobject | null

    Template for automatic thumbnails (Growth plan). null resets to the default.

    • backgroundobjectrequired
      • kind"solid" | "gradient"required

        Solid color or gradient.

      • colorstringrequired

        Main color (#rrggbb).

      • color2stringrequired

        Second gradient color (#rrggbb).

      • angleintegerrequired≥ 0, ≤ 360

        Gradient angle in degrees.

    • textColorstringrequired
    • accentColorstringrequired

      Accent color.

    • logoAssetIdstring | nullrequired

      Organization file (ast_…, from POST /assets) used as the logo; null = no logo.

    • font"inter" | "lora"required
    • layout"left" | "center" | "bottom"required

      Title position on the card.

    • showSiteNamebooleanrequired
    • showDomainbooleanrequired

Request

cURL
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

GET/domains/{id}/seo/pagesdomains:read

The domain default (pathPattern: null) comes first, then patterns in alphabetical order.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

POST/domains/{id}/seo/pagesdomains:write

Title, 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 · stringrequired

    Domain id (dom_…)

Body

  • pathPatternstring | null

    Path pattern (e.g. /services or /blog/*, * only at the end). null/omitted = domain default (applies to pages without their own settings).

  • titlestring | null

    Title (<title> and og:title).

  • descriptionstring | null

    Meta description (and og:description).

  • imageUrlstring | null

    Compat: social image URL only. Prefer image.

  • imageobject | null

    Social image (og:image). Use the variants from POST /domains/:id/seo/thumbnails. null removes it.

    • urlstringrequiredmax 2048
    • widthinteger | null
    • heightinteger | null
    • altstring | null
    • assetIdstring | null

      Organization file (ast_…) the image came from.

  • ogAutoboolean

    Thumbnail generated automatically from the site template when the page has no image of its own (Growth plan).

  • ogType"website" | "article" | "product" | "profile" | null
  • twitterCard"summary" | "summary_large_image" | null
  • twitterSitestring | null

    X handle (accepts "shop", "@shop" or the profile URL).

  • canonicalstring | null

    Canonical URL.

  • robotsstring | null

    Meta robots (e.g. noindex, nofollow).

  • hreflangobject[]≤ 50 itens

    Versions of the page in other languages.

    • langstringrequiredmin 2, max 20
    • urlstringrequiredmax 2048
  • jsonLdRecord<string, any> | Record<string, any>[] | null

    One block or a list (up to 20) of JSON-LD blocks. Validated before saving (see /seo/structured-data/validate).

Request

cURL
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

PATCH/domains/{id}/seo/pages/{pageId}domains:write

Omitted fields stay as they are; null clears them. The domain default's pathPattern can't be changed.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • pageIdpath · stringrequired

    Page settings id (seo_…)

Body

  • pathPatternstring | null

    Path pattern (e.g. /services or /blog/*, * only at the end). null/omitted = domain default (applies to pages without their own settings).

  • titlestring | null

    Title (<title> and og:title).

  • descriptionstring | null

    Meta description (and og:description).

  • imageUrlstring | null

    Compat: social image URL only. Prefer image.

  • imageobject | null

    Social image (og:image). Use the variants from POST /domains/:id/seo/thumbnails. null removes it.

    • urlstringrequiredmax 2048
    • widthinteger | null
    • heightinteger | null
    • altstring | null
    • assetIdstring | null

      Organization file (ast_…) the image came from.

  • ogAutoboolean

    Thumbnail generated automatically from the site template when the page has no image of its own (Growth plan).

  • ogType"website" | "article" | "product" | "profile" | null
  • twitterCard"summary" | "summary_large_image" | null
  • twitterSitestring | null

    X handle (accepts "shop", "@shop" or the profile URL).

  • canonicalstring | null

    Canonical URL.

  • robotsstring | null

    Meta robots (e.g. noindex, nofollow).

  • hreflangobject[]≤ 50 itens

    Versions of the page in other languages.

    • langstringrequiredmin 2, max 20
    • urlstringrequiredmax 2048
  • jsonLdRecord<string, any> | Record<string, any>[] | null

    One block or a list (up to 20) of JSON-LD blocks. Validated before saving (see /seo/structured-data/validate).

Request

cURL
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

DELETE/domains/{id}/seo/pages/{pageId}domains:write

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • pageIdpath · stringrequired

    Page settings id (seo_…)

Request

cURL
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)

GET/domains/{id}/seodomains:read

Same as GET /domains/:id/seo/pages; kept for older integrations.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

PUT/domains/{id}/seodomains:write

Upsert 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 · stringrequired

    Domain id (dom_…)

Body

  • pathPatternstring | null

    Path pattern (e.g. /services or /blog/*, * only at the end). null/omitted = domain default (applies to pages without their own settings).

  • titlestring | null

    Title (<title> and og:title).

  • descriptionstring | null

    Meta description (and og:description).

  • imageUrlstring | null

    Compat: social image URL only. Prefer image.

  • imageobject | null

    Social image (og:image). Use the variants from POST /domains/:id/seo/thumbnails. null removes it.

    • urlstringrequiredmax 2048
    • widthinteger | null
    • heightinteger | null
    • altstring | null
    • assetIdstring | null

      Organization file (ast_…) the image came from.

  • ogAutoboolean

    Thumbnail generated automatically from the site template when the page has no image of its own (Growth plan).

  • ogType"website" | "article" | "product" | "profile" | null
  • twitterCard"summary" | "summary_large_image" | null
  • twitterSitestring | null

    X handle (accepts "shop", "@shop" or the profile URL).

  • canonicalstring | null

    Canonical URL.

  • robotsstring | null

    Meta robots (e.g. noindex, nofollow).

  • hreflangobject[]≤ 50 itens

    Versions of the page in other languages.

    • langstringrequiredmin 2, max 20
    • urlstringrequiredmax 2048
  • jsonLdRecord<string, any> | Record<string, any>[] | null

    One block or a list (up to 20) of JSON-LD blocks. Validated before saving (see /seo/structured-data/validate).

Request

cURL
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)

DELETE/domains/{id}/seo/{seoId}domains:write

Same as DELETE /domains/:id/seo/pages/:pageId.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • seoIdpath · stringrequired

    Page settings id (seo_…)

Request

cURL
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

GET/domains/{id}/seo/redirectsdomains:read

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

POST/domains/{id}/seo/redirectsdomains:write

Redirect 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 · stringrequired

    Domain id (dom_…)

Body

  • fromstringrequiredmax 2048

    Old path (e.g. /old-booking). A full URL is also accepted (only the path is kept).

  • tostringrequiredmax 2048

    Target: /path on the same domain or https://….

  • status301 | 302 | 307 | 308

    301 (default), 302, 307 or 308.

Request

cURL
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

GET/domains/{id}/seo/redirects/exportdomains:read

Columns from,to,status — the same format accepted by the import.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

POST/domains/{id}/seo/redirects/importdomains:write

CSV 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 · stringrequired

    Domain 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 2097152

    CSV content.

  • mode"merge" | "replace"

    merge (default) or replace.

  • dryRunboolean

    Simulate only: returns the result without saving.

Request

cURL
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

PATCH/domains/{id}/seo/redirects/{rid}domains:write

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • ridpath · stringrequired

    Redirect id (rdr_…)

Body

  • fromstringmax 2048

    Old path (e.g. /old-booking). A full URL is also accepted (only the path is kept).

  • tostringmax 2048

    Target: /path on the same domain or https://….

  • status301 | 302 | 307 | 308

    301 (default), 302, 307 or 308.

  • positioninteger≥ 0, ≤ 9007199254740991

    Position in the list.

Request

cURL
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

DELETE/domains/{id}/seo/redirects/{rid}domains:write

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • ridpath · stringrequired

    Redirect id (rdr_…)

Request

cURL
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

GET/domains/{id}/seo/robotsdomains:read

mode: origin = the edge serves the origin's robots.txt; custom = serves robotsTxt. presets lists ready-made templates with the domain filled in.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

PUT/domains/{id}/seo/robotsdomains:write

Send 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 · stringrequired

    Domain id (dom_…)

Body

  • robotsTxtstring | null

    robots.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
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

GET/domains/{id}/seo/sitemapdomains:read

Sitemap mode, where it's served (publicUrl) and the URLs registered by hand (manual) or found by audits (audit).

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • limitquery · integer

    Items per page (default 100).

  • offsetquery · integer

    Skip the first N items.

  • sourcequery · "manual" | "audit" | "alias"

    Only URLs from this source.

Request

cURL
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

POST/domains/{id}/seo/sitemap/urlsdomains:write

One URL or {items: [...]} with up to 5,000. An existing path is updated. Applies when the sitemap is in generate mode.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Body

object

Request

cURL
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

PATCH/domains/{id}/seo/sitemap/urls/{uid}domains:write

A URL found by an audit becomes manual once edited.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • uidpath · stringrequired

    Sitemap URL id (smu_…)

Body

  • pathstringmin 1, max 2048

    Page path (e.g. /services). A full URL is also accepted.

  • lastmodstring | null

    Last modification date (ISO 8601).

  • changefreq"always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never" | null
  • prioritynumber | null

    Priority from 0 to 1.

Request

cURL
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

DELETE/domains/{id}/seo/sitemap/urls/{uid}domains:write

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • uidpath · stringrequired

    Sitemap URL id (smu_…)

Request

cURL
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)

GET/domains/{id}/seo/verificationdomains:read

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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)

PUT/domains/{id}/seo/verificationdomains:write

The 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 · stringrequired

    Domain id (dom_…)

Body

  • googlestring | null

    google-site-verification (code or meta tag).

  • bingstring | null

    msvalidate.01 (code or meta tag).

Request

cURL
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

POST/domains/{id}/seo/thumbnailsdomains:write

file 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 · stringrequired

    Domain id (dom_…)

Body

  • filestringrequired
  • focusXstring

    Horizontal focus point, from 0 to 1 (send together with focusY).

  • focusYstring

    Vertical focus point, from 0 to 1.

Request

cURL
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

POST/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 · stringrequired

    Domain id (dom_…)

Body

  • templateobject

    Template to try (default: the one saved on the site).

    • backgroundobjectrequired
      • kind"solid" | "gradient"required

        Solid color or gradient.

      • colorstringrequired

        Main color (#rrggbb).

      • color2stringrequired

        Second gradient color (#rrggbb).

      • angleintegerrequired≥ 0, ≤ 360

        Gradient angle in degrees.

    • textColorstringrequired
    • accentColorstringrequired

      Accent color.

    • logoAssetIdstring | nullrequired

      Organization file (ast_…, from POST /assets) used as the logo; null = no logo.

    • font"inter" | "lora"required
    • layout"left" | "center" | "bottom"required

      Title position on the card.

    • showSiteNamebooleanrequired
    • showDomainbooleanrequired
  • titlestringmax 300

    Title on the card (default: the domain default's).

  • siteNamestring | null

    Site name on the card.

Request

cURL
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

GET/domains/{id}/seo/og/default-templatedomains:read

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

POST/domains/{id}/seo/og/from-branddomains:read

Applies 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 · stringrequired

    Domain id (dom_…)

Body

  • templateobjectrequired

    Current template (base for the suggestion).

    • backgroundobjectrequired
      • kind"solid" | "gradient"required

        Solid color or gradient.

      • colorstringrequired

        Main color (#rrggbb).

      • color2stringrequired

        Second gradient color (#rrggbb).

      • angleintegerrequired≥ 0, ≤ 360

        Gradient angle in degrees.

    • textColorstringrequired
    • accentColorstringrequired

      Accent color.

    • logoAssetIdstring | nullrequired

      Organization file (ast_…, from POST /assets) used as the logo; null = no logo.

    • font"inter" | "lora"required
    • layout"left" | "center" | "bottom"required

      Title position on the card.

    • showSiteNamebooleanrequired
    • showDomainbooleanrequired

Request

cURL
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

POST/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 · stringrequired

    Domain id (dom_…)

Body

  • pathsstring[]≤ 15 itens

    Pages (e.g. /services), up to 15.

  • aboutstring | null

    What you know about the customer (neighborhood, specialties…).

Request

cURL
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

POST/domains/{id}/seo/auditsdomains:write

Crawls 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 · stringrequired

    Domain id (dom_…)

Request

cURL
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

GET/domains/{id}/seo/auditsdomains:read

Most recent first. Includes the automatic weekly ones (trigger: schedule).

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • limitquery · integer

    Items (default 20).

Request

cURL
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

GET/domains/{id}/seo/audits/{auditId}domains:read

Pages 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 · stringrequired

    Domain id (dom_…)

  • auditIdpath · stringrequired

    Audit id (aud_…)

  • severityquery · "high" | "medium" | "low"

    Only issues of this severity (and only pages that have them).

Request

cURL
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

GET/domains/{id}/seo/gscdomains:read

available tells whether the plan includes the integration (Growth). Connecting to Google is done in the dashboard.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

DELETE/domains/{id}/seo/gscdomains:write

Revokes Google access and deletes the domain's imported data.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Request

cURL
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

POST/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 · stringrequired

    Domain id (dom_…)

Request

cURL
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)

GET/domains/{id}/seo/gsc/timeseriesdomains:readGrowth+

ctr is a fraction (0.05 = 5%); position is the impression-weighted average position.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • fromquery · string

    Start date (YYYY-MM-DD). Default: 28 days ago.

  • toquery · string

    End date (YYYY-MM-DD). Default: today.

  • pagequery · string

    Only this page (exact URL, as in Search Console).

  • queryquery · string

    Only this search query (exact text).

Request

cURL
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)

GET/domains/{id}/seo/gsc/queriesdomains:readGrowth+

Sorted by clicks and impressions.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • fromquery · string

    Start date (YYYY-MM-DD). Default: 28 days ago.

  • toquery · string

    End date (YYYY-MM-DD). Default: today.

  • pagequery · string

    Only this page (exact URL, as in Search Console).

  • queryquery · string

    Only this search query (exact text).

  • limitquery · integer

    Items (default 50, max 500).

Request

cURL
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)

GET/domains/{id}/seo/gsc/pagesdomains:readGrowth+

Sorted by clicks and impressions.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

  • fromquery · string

    Start date (YYYY-MM-DD). Default: 28 days ago.

  • toquery · string

    End date (YYYY-MM-DD). Default: today.

  • pagequery · string

    Only this page (exact URL, as in Search Console).

  • queryquery · string

    Only this search query (exact text).

  • limitquery · integer

    Items (default 50, max 500).

Request

cURL
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

GET/seo/structured-data/typesdomains:read

Request

cURL
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

POST/seo/structured-data/builddomains:read

Builds 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
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

POST/seo/structured-data/validatedomains:read

Checks @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

  • jsonLdanyrequired

    One JSON-LD block (object) or a list of blocks.

Request

cURL
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"
    }
  ]
}