TenanciTenanci

Help centerAPI referenceAI

AI

AI features: branding, translation and SEO.

AI availability and usage

GET/ai/statusdomains:read

used counts the organization's AI requests in the last 24 h; limit null = no limit. languages lists the languages accepted for translation.

Request

cURL
curl "https://api.tenanci.com/v2/ai/status" \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"

Response 200

{
  "available": true,
  "used": 3,
  "limit": 50,
  "languages": {
    "en": "inglês",
    "es": "espanhol",
    "pt-BR": "português do Brasil",
    "pt-PT": "português de Portugal",
    "fr": "francês",
    "de": "alemão",
    "it": "italiano",
    "nl": "holandês",
    "pl": "polonês",
    "tr": "turco",
    "ru": "russo",
    "uk": "ucraniano",
    "ar": "árabe",
    "he": "hebraico",
    "hi": "hindi",
    "ja": "japonês",
    "ko": "coreano",
    "zh-CN": "chinês simplificado",
    "zh-TW": "chinês tradicional",
    "id": "indonésio",
    "vi": "vietnamita",
    "th": "tailandês"
  }
}

Import a website's brand with AI

POST/domains/{id}/tailorkit/ai/branddomains:writeGrowth+

Reads the website (HTML and stylesheets) and suggests colors, fonts and logo for the theme. The logo is copied to the organization's files when possible. Site returning an error, not HTML, or without a detectable brand: 400 url_unreachable, url_not_html or brand_not_found. Uses AI: without AI configured on the environment it returns 501 ai_unavailable; over the organization's daily limit, 429 ai_limit (see GET /ai/status). Nothing is saved: apply the result to the draft and publish.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Body

  • urlstringrequiredmin 3, max 2048

    Address of the website with the brand (e.g. the customer's company site).

Request

cURL
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/tailorkit/ai/brand" \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://barbeariadoze.com.br"}'

Response 200

{
  "source": "https://barbeariadoze.com.br/",
  "theme": {
    "colors": {
      "primary": "#b45309",
      "secondary": "#1f2937",
      "accent": null,
      "background": "#ffffff",
      "text": "#111827"
    },
    "fonts": {
      "heading": "Playfair Display",
      "body": "Inter"
    },
    "logo": "https://assets.tenanci.com/org_5t1v/7k2m.png"
  },
  "notes": "O âmbar dos botões é a cor principal da marca e o grafite do cabeçalho, a secundária. Os títulos usam Playfair Display, do Google Fonts.",
  "found": {
    "colors": [
      "#b45309",
      "#1f2937",
      "#ffffff",
      "#111827",
      "#f3f4f6"
    ],
    "fonts": [
      "Playfair Display",
      "Inter"
    ],
    "logos": [
      "https://barbeariadoze.com.br/img/logo.png",
      "https://barbeariadoze.com.br/apple-touch-icon.png"
    ]
  }
}

Translate app texts with AI

POST/domains/{id}/tailorkit/ai/translatedomains:writeGrowth+

Returns original → translation, ready for the document's translation.strings. Repeated, empty, letterless or over-500-character texts are ignored. Language not listed by GET /ai/status: 400 invalid_lang. Uses AI: without AI configured on the environment it returns 501 ai_unavailable; over the organization's daily limit, 429 ai_limit (see GET /ai/status). Nothing is saved: apply the result to the draft and publish.

Parameters

  • idpath · stringrequired

    Domain id (dom_…)

Body

  • langstringrequiredmax 10

    Target language (e.g. en, es, pt-PT).

  • textsstring[]required≤ 300 itens

    Texts to translate (up to 300 per request).

  • contextstring | null

    About the app, so the AI gets the tone and terms right.

Request

cURL
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/tailorkit/ai/translate" \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"lang":"en","texts":["Agendar horário","Escolha o barbeiro","Confirmar"],"context":"App de agendamento de uma barbearia."}'

Response 200

{
  "lang": "en",
  "strings": {
    "Agendar horário": "Book an appointment",
    "Escolha o barbeiro": "Choose your barber",
    "Confirmar": "Confirm"
  }
}