HEAD /public/forms/{slug}/render
Probe de existência do form publicado (sem corpo)
- Access: Public
- Service:
https://api-forms.axuz.net
Accepted authentication
No authentication (public route, or protected by link/signature).
Sonda leve: o proxy /p/[slug] do axuz_forms_client precisa decidir entre 404 e "shell com iframe" sem baixar o HTML inteiro (DEBT-QA15-03; sem esta rota o chi devolvia 405 e a shell era sempre servida). Executa o mesmo GetBySlugPublic do GET — que só casa status='published' AND deleted_at IS NULL — e responde apenas o status; no 200 emite Content-Type: text/html; charset=utf-8. Ver internal/handlers/public_render_head.go.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | string | yes | Slug URL-safe do form ( |
Responses
200
Form existe e está publicado.
404
Slug inexistente, form não publicado ou soft-deleted.
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Erro ao consultar o repositório.
Examples
"Try it" is turned off in this reference. Use the examples with your test credential.
curl
curl -sS -X HEAD 'https://api-forms.axuz.net/public/forms/SLUG/render'Node.js
const res = await fetch("https://api-forms.axuz.net/public/forms/SLUG/render", {
method: 'HEAD',
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"HEAD",
"https://api-forms.axuz.net/public/forms/SLUG/render",
timeout=30,
)
res.raise_for_status()
print(res.json())