Gateway Mode
Audit LLM call after completion
Gateway Mode Step 2: Call this endpoint after your LLM API call completes.
Records:
- Token usage for billing and quotas
- Latency metrics
- Provider and model information
- Estimated cost
Requires a valid context_id from pre-check (not expired).
post/api/audit/llm-call
Request
- Base URLhttps://agent.getaxonflow.com
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Authorizationstring required
Example:Basic bXktb3JnOkFYT04tVjIteHh4
OAuth2-style Basic authentication header. Format: Basic base64(clientId:clientSecret)
- clientId: Your organization identifier (required)
- clientSecret: Authentication credential (optional for community mode)
Not required when DEPLOYMENT_MODE=community.
Request body
Example request
{
"model": "gpt-4"
}Response
Audit recorded
Changes
No recorded changes to this operation across all 1 revision of this API.