Portkey Integration
Portkey is an AI Gateway that provides observability, caching, and routing for LLM API calls. Configure Portkey to send webhook events to Igris for unified audit logging.Setup
1. Get Your Igris API Key
Go to Settings → API Keys in the Igris dashboard and create a new key. Label it “Portkey Ingestion” for clarity.2. Configure Portkey Webhook
In your Portkey dashboard, navigate to Settings → Webhooks and add a new webhook:- URL:
https://your-igris.fly.dev/api/v1/ingest/portkey - Headers:
- Events: Select all event types you want to ingest (completions, embeddings, etc.)
3. Verify
Trigger an LLM call through Portkey and check the Igris Observe → Audit Events page. You should see the event withsource: portkey.
Payload Normalization
Igris maps Portkey’s webhook payload to the unified event format:| Portkey Field | Igris Field |
|---|---|
request.model | toolName |
response.status | action (200 → allow, 4xx/5xx → deny) |
metadata.trace_id | metadata.traceId |
request.prompt_tokens | metadata.promptTokens |
response.completion_tokens | metadata.completionTokens |
timestamp | timestamp |
latency | metadata.latencyMs |
Example Event
After ingestion, the event appears in the audit trail as:Troubleshooting
| Issue | Solution |
|---|---|
| Events not appearing | Verify the webhook URL and API key in Portkey settings |
401 Unauthorized | Check the API key is valid and has ingestion permissions |
429 Too Many Requests | You’ve exceeded your plan’s monthly event limit |
| Duplicate events | Igris deduplicates by provider trace ID — duplicates are ignored |