Generate Intent
Intent API
Generate Intent
Creates a zero-knowledge intent signature for a user session
POST
Generate Intent
Overview
Generates a User Intent Signature (UIS) — a SHA-256 hash that represents what a user intends to do, without including any PII. Call this before sending a user’s request to your AI service. Attach the returnedintent_hash to the AI request via the X-Intent-Hash header.
Request
Your Aether Citadel API key (
ack_live_...)The user’s JWT from your authentication system. Used to fetch semantic context from AetherDB. The token itself is never stored by Citadel.
Time-to-live in seconds for this intent signature. After expiry, verify will return
ExpiredIntent. Default: 3600 (1 hour). Max recommended: 86400 (24h).Response
The zero-knowledge intent signature. Format:
sha256:<64 hex chars>. Attach this to your AI request as X-Intent-Hash.Semantic classification of user intent. One of:
commerce, infrastructure, wellness, finance, education, social, other.Unix timestamp when this intent expires. After this time, verification will fail with
ExpiredIntent.Example
Error Responses
| Status | Error | Meaning |
|---|---|---|
400 | token too short | user_token is less than 10 characters |
400 | token contains invalid characters | Non-alphanumeric/JWT chars in token |
401 | invalid or missing X-Citadel-Key | Bad or missing API key |
502 | AetherDB request failed | Could not fetch semantic context |
Notes
- The
user_tokenis sent to AetherDB (within your infrastructure) to extract semantic tags. It is never stored by Citadel. - Each call generates a new, unique intent hash — even for the same user.
- Intent hashes are single-use — do not reuse them across different AI requests.