{
  "opencollection": "1.0.0",
  "info": {
    "name": "Bridge API Keys Webhooks API",
    "version": "1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Api-Key",
      "value": "{{Api-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Webhooks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get all webhook endpoints",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bridge.xyz/v0/webhooks"
          },
          "docs": "Get the full list of active and disabled webhook endpoints configured on Bridge"
        },
        {
          "info": {
            "name": "Create a webhook endpoint",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bridge.xyz/v0/webhooks",
            "headers": [
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new webhook endpoint to receive events from Bridge. Webhook endpoints begin in a disabled state and can be enabled with a PUT request. A maximum of 5 webhooks can be active or disabled at one time. Webhook endpoints can be created in Sandbox, but no webhook events will be sent."
        },
        {
          "info": {
            "name": "Update a webhook",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.bridge.xyz/v0/webhooks/:webhookID",
            "params": [
              {
                "name": "webhookID",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the specified webhook object"
        },
        {
          "info": {
            "name": "Delete a webhook",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.bridge.xyz/v0/webhooks/:webhookID",
            "params": [
              {
                "name": "webhookID",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete the specified webhook object. This webhook will no longer be accessible via API."
        },
        {
          "info": {
            "name": "List upcoming events",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bridge.xyz/v0/webhooks/:webhookID/events",
            "params": [
              {
                "name": "webhookID",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List the next 10 events that will be delivered to the specified webhook."
        },
        {
          "info": {
            "name": "View logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bridge.xyz/v0/webhooks/:webhookID/logs",
            "params": [
              {
                "name": "webhookID",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Display the most recent logs for deliveries to the specified webhook."
        },
        {
          "info": {
            "name": "Send event",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bridge.xyz/v0/webhooks/:webhookID/send",
            "headers": [
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "webhookID",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send an event to the specified webhook endpoint. This will not effect other events in the delivery queue. This operation is possible for both active and disabled webhook endpoints."
        },
        {
          "info": {
            "name": "List webhook events",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bridge.xyz/v0/webhook_events",
            "params": [
              {
                "name": "starting_after",
                "value": "wh_123abc",
                "type": "query",
                "description": "Cursor for forward pagination. Returns events after the specified event ID."
              },
              {
                "name": "ending_before",
                "value": "",
                "type": "query",
                "description": "Cursor for backward pagination. Returns events before the specified event ID."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of events to return (1-500, default 100)."
              },
              {
                "name": "category",
                "value": "",
                "type": "query",
                "description": "Filter events by category."
              }
            ]
          },
          "docs": "List all webhook events for your account. Events are ordered by their event_sequence in ascending order. Results are limited to the events created in last 90 days."
        }
      ]
    }
  ],
  "bundled": true
}