GET /v1/templates/{id}
Detalhe de template (público, sem auth)
- Access: Public
- Service:
https://api-forms.axuz.net
Accepted authentication
No authentication (public route, or protected by link/signature).
— GET /v1/templates/{id}. Detalhe do template.
Motivo: preview mostra Schema completo antes do user criar.
Comportamento: templates.Get por ID. 404 se não existe.
Entradas: path {id}.
Retorno: 200 Template, 404.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Responses
200
Template
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
slug | string | yes | |
name | string | yes | |
description | string | yes | |
category | string | yes | enum: |
icon | string | yes | emoji simples. |
layout | string | yes | |
schema | FormsFormSchema | yes | |
schema.fields | array<FormsField> | yes | |
schema.fields[].id | string | yes | |
schema.fields[].type | string | yes | enum: |
schema.fields[].label | string | no | |
schema.fields[].name | string | yes | |
schema.fields[].required | boolean | no | |
schema.fields[].placeholder | string | no | |
schema.fields[].help_text | string | no | |
schema.fields[].default | any | no | |
schema.fields[].options | array<FormsFieldOption> | no | |
schema.fields[].options[].value | string | yes | |
schema.fields[].options[].label | string | yes | |
schema.fields[].max_length | integer | null | no | |
schema.fields[].min | number | null | no | |
schema.fields[].max | number | null | no | |
schema.fields[].rows | integer | null | no | |
schema.fields[].pattern | string | no | |
schema.fields[].extra | object | no | |
schema.steps | array<FormsStep> | no | |
schema.steps[].id | string | yes | |
schema.steps[].title | string | yes | |
schema.steps[].field_ids | array<string> | yes | |
schema.settings | FormsSettings | yes | |
schema.settings.submit_label | string | no | |
schema.settings.thank_you_message | string | no | |
schema.settings.redirect_url | string | null | no | |
schema.settings.honeypot | boolean | no | Se true, adiciona campo axuz_hp e rejeita submits com valor. |
schema.settings.double_opt_in | boolean | no | |
schema.settings.triggers | array<FormsTrigger> | no | |
schema.settings.triggers[].id | string | yes | client uuid |
schema.settings.triggers[].type | string | yes | enum: |
schema.settings.triggers[].enabled | boolean | yes | |
schema.settings.triggers[].label | string | no | |
schema.settings.triggers[].mapping | object | no | |
schema.settings.triggers[].config | object | no | Shape depende de |
schema.settings.notify_emails | array<string<email>> | no | Legacy Fase 178. Promovido em memória pra Triggers no read. |
schema.settings.webhook_url | string | no | |
schema.settings.webhook_secret | string | no |
404
Recurso não encontrado
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Erro interno. Tente de novo com backoff; reporte o X-Request-Id.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
Examples
"Try it" is turned off in this reference. Use the examples with your test credential.
curl
curl -sS -X GET 'https://api-forms.axuz.net/v1/templates/ID'Node.js
const res = await fetch("https://api-forms.axuz.net/v1/templates/ID", {
method: 'GET',
});
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(
"GET",
"https://api-forms.axuz.net/v1/templates/ID",
timeout=30,
)
res.raise_for_status()
print(res.json())