Create 7-Day NAT-Friendly Agent Webhook Inbox
Provision a unique HTTPS webhook receiver URL (`POST /v1/webhooks/ingest/:inbox_id`) buffered in PostgreSQL for 7 days.
curl -sG "https://api.agentapigate.ai/v1/agent/webhook/inbox_create" \ --data-urlencode "label=github-ci-events" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Create 7-Day NAT-Friendly Agent Webhook Inbox (`agent.webhook.inbox_create`) **inbox_id**: whi_b4cf8421261fb146fd14dfc6 · **ingest_url**: https://api.agentapigate.ai/v1/webhooks/ingest/whi_b4cf8421261fb146fd14dfc6 · **read_token**: whrt_6b7fe91252b53a63f3e0d2c109b1aaf6 · **retention_days**: 7 · **expires_at**: 2026-12-08T20:26:27.236Z
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:agent.webhook.inbox_create · Method: POST| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| label | string | optional | github-ci-events | Optional human-readable label for this webhook inbox (e.g. stripe-dev, valtown-migrated) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | agent_webhook_inbox_create | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | API key required |
| P50 Latency | 3 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 242t → 88t (-71%) | Partner credit: eligible |
More agent.webhook Sibling Endpoints
Frequently Asked Questions
How do I call Create 7-Day NAT-Friendly Agent Webhook Inbox (agent.webhook.inbox_create) over REST and Remote MCP?
Send POST requests to https://api.agentapigate.ai/v1/agent/webhook/inbox_create with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool agent_webhook_inbox_create on https://mcp.agentapigate.ai/mcp.
What does agent.webhook.inbox_create cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on agent.webhook.inbox_create?
Passing ?format=md transforms the response into normalized Markdown (~88 tokens vs ~242 raw tokens, saving 71% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["agent.webhook.inbox_create"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.