Documentation Index
Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
Use this file to discover all available pages before exploring further.
Toda função implantada está protegida por padrão com um runtime token. Requisições sem token válido recebem 401 Unauthorized.
Início rápido
Implante sua função
jelou deploy
# ✓ Deployed
# ▸ URL: https://minha-funcao.fn.jelou.ai
# ⚠ A default runtime token was created for this function.
# Save it now — it will not be shown again.
# ▸ Token jfn_rt_abc123...
O primeiro deploy gera automaticamente um runtime token.Salve o token imediatamente. Ele não será exibido novamente. Se perdê-lo, crie um novo com jelou tokens create.
Chame com o token
curl -X POST https://minha-funcao.fn.jelou.ai \
-H "Content-Type: application/json" \
-H "X-Jelou-Token: jfn_rt_abc123..." \
-d '{"query": "test"}'
Resposta bem-sucedida:Sem token ou com token inválido:{ "error": "Unauthorized", "message": "Missing or invalid X-Jelou-Token header" }
Como funciona
- No primeiro deploy, a plataforma gera um runtime token (prefixo
jfn_rt_)
- Cada requisição deve incluir esse token no header
X-Jelou-Token
- Se o token for válido, a requisição chega ao handler. Caso contrário, retorna
401
Rotas sem autenticação
As rotas /__health e /openapi.json nunca requerem token. Os triggers cron também não — a plataforma os autentica automaticamente.
Exemplos de uso
curl -X POST https://minha-funcao.fn.jelou.ai \
-H "Content-Type: application/json" \
-H "X-Jelou-Token: jfn_rt_abc123..." \
-d '{"telefone": "5511987654321"}'
const res = await fetch("https://minha-funcao.fn.jelou.ai", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Jelou-Token": process.env.JELOU_FUNCTION_TOKEN,
},
body: JSON.stringify({ telefone: "5511987654321" }),
});
const data = await res.json();
import requests
import os
res = requests.post(
"https://minha-funcao.fn.jelou.ai",
headers={
"Content-Type": "application/json",
"X-Jelou-Token": os.environ["JELOU_FUNCTION_TOKEN"],
},
json={"telefone": "5511987654321"},
)
data = res.json()
A plataforma não valida nada — seu código é responsável.