{
  "opencollection": "1.0.0",
  "info": {
    "name": "API Reference agent-webhooks API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "agent-webhooks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Agent Webhook",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.agentphone.ai/v1/agents/:agent_id/webhook",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "agent_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get the webhook configuration for a specific agent."
        },
        {
          "info": {
            "name": "Create Or Update Agent Webhook",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.agentphone.ai/v1/agents/:agent_id/webhook",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "agent_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Register or update a webhook URL for a specific agent.\n\nWhen set, this agent's events are delivered here instead of the account default webhook."
        },
        {
          "info": {
            "name": "Delete Agent Webhook",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.agentphone.ai/v1/agents/:agent_id/webhook",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "agent_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Remove the webhook for a specific agent."
        },
        {
          "info": {
            "name": "List Agent Deliveries",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.agentphone.ai/v1/agents/:agent_id/webhook/deliveries",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "agent_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get recent webhook delivery attempts for a specific agent's webhook."
        },
        {
          "info": {
            "name": "Test Agent Webhook",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.agentphone.ai/v1/agents/:agent_id/webhook/test",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "agent_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Send a test webhook to the agent's webhook endpoint."
        }
      ]
    }
  ],
  "bundled": true
}