doglytdc.fetch
Calls an external site. It only works for authorized domains in the script’s Backend tab.
Response:
{ status, ok, headers: { "content-type" }, text }.
Security rules:
httpsonly.- Public addresses only: IPs and domains pointing to a private network are blocked.
- Domain must be on the Backend tab list.
*.exemplo.comcoversexemplo.comand all its subdomains. - Redirects are not followed.
- Up to 10 calls per run, 4 seconds each, responses up to 1 MB.

AI keys for your scripts
doglytdc.ai.chat
Uses DoglyTdc AI (GPT-6 Luna model). Credits come from the script owner’s account.
DoglyTdc reserves the credits first and settles by actual usage afterwards. Errors: “Sem créditos de IA na conta do dono do script.” (no AI credits in the owner’s account), “IA ocupada: tente de novo em instantes.” (AI busy, try again shortly), “A IA demorou demais para esta função (limite de 5 s).” (AI took too long, 5 s limit).
Secrets
Store API keys in the Backend tab as secrets. In the function, read them withdoglytdc.env.NAME. Secrets are stored encrypted and never appear in the API or to the AI.
