GET /public/forms/{slug}/embed.js
Snippet JS que injeta iframe do render
- Access: Public
- Service:
https://api-forms.axuz.net
Accepted authentication
No authentication (public route, or protected by link/signature).
Snippet 1-liner que sites externos incluem. Cria iframe apontando pra /public/forms/{slug}/render e cuida do redimensionamento auto.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | string | yes | Slug URL-safe do form ( |
Responses
200
JavaScript
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/public/forms/SLUG/embed.js'Node.js
const res = await fetch("https://api-forms.axuz.net/public/forms/SLUG/embed.js", {
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/public/forms/SLUG/embed.js",
timeout=30,
)
res.raise_for_status()
print(res.json())