What are runtime tokens?
Runtime tokens (prefix jfn_rt_) are credentials that authenticate requests to your functions in production.
Automatic generation
The first deploy generates a token automatically:
jelou deploy
# ✓ Deployed
# ⚠ A default runtime token was created for this function.
# Save it now — it will not be shown again.
# ▸ Token jfn_rt_abc123...
The token is shown only once. Subsequent deploys don’t show it. If you lose it, create a new one with jelou tokens create.
How to use
Send the token in the X-Jelou-Token header:
curl -X POST https://my-function.fn.jelou.ai \
-H "Content-Type: application/json" \
-H "X-Jelou-Token: jfn_rt_abc123..." \
-d '{"phone": "593987654321"}'
| Rule | Detail |
|---|
| Header | X-Jelou-Token (not Authorization: Bearer) |
| Format | Header only — not query param, not body |
| Max size | 4 KB |
| Missing token | 401 { "error": "Unauthorized" } |
CLI management
# List tokens
jelou tokens list my-function
# Create additional token
jelou tokens create my-function --name ci-deploy
# Revoke token
jelou tokens revoke my-function <token-id> -y
Multiple tokens
You can have multiple active tokens per function — one per environment, service, or team. Revoking one doesn’t affect others.
Lost token?
Create a new one: jelou tokens create my-function --name new-token. The old token stays active.
Brain Studio
| Field | Value |
|---|
| URL | https://my-function.fn.jelou.ai/mcp |
| Header name | X-Jelou-Token |
| Header value | jfn_rt_abc123... |