{
  "opencollection": "1.0.0",
  "info": {
    "name": "Syntage Accounts Payable Insight Webhook Endpoints API",
    "version": "2020-06-28"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-API-Key",
      "value": "{{X-API-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Webhook Endpoints",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List webhook endpoints",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.syntage.com/webhook-endpoints",
            "params": [
              {
                "name": "url",
                "value": "",
                "type": "query",
                "description": "Filter by endpoint URL using exact match"
              },
              {
                "name": "events",
                "value": "",
                "type": "query",
                "description": "Filter by event type using exact match"
              },
              {
                "name": "enabled",
                "value": "",
                "type": "query",
                "description": "Filter by enabled state"
              },
              {
                "name": "id[lt]",
                "value": "91106968-1abd-4d64-85c1-4e73d96fb997",
                "type": "query",
                "description": "Collection cursor pointer to the next page"
              },
              {
                "name": "id[gt]",
                "value": "91106968-1abd-4d64-85c1-4e73d96fb997",
                "type": "query",
                "description": "Collection cursor pointer to the previous page"
              },
              {
                "name": "itemsPerPage",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              }
            ]
          },
          "docs": "List webhook endpoints configured for your organization."
        },
        {
          "info": {
            "name": "Create webhook endpoint",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.syntage.com/webhook-endpoints",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a webhook endpoint for your organization. Syntage delivers matching events to the endpoint URL using HTTPS `POST` requests.\n\nDelivery attempts are successful when your endpoint returns a `2xx` HTTP status code. A delivery that times out after 3 seconds, fails before Syntage receives a response, or returns a non-`2xx` status code is retried up to 4 times.\n"
        },
        {
          "info": {
            "name": "Retrieve webhook endpoint",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.syntage.com/webhook-endpoints/:id",
            "params": [
              {
                "name": "id",
                "value": "91106968-1abd-4d64-85c1-4e73d96fb997",
                "type": "path"
              }
            ]
          },
          "docs": "Get a webhook endpoint by ID."
        },
        {
          "info": {
            "name": "Update webhook endpoint",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.syntage.com/webhook-endpoints/:id",
            "params": [
              {
                "name": "id",
                "value": "91106968-1abd-4d64-85c1-4e73d96fb997",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Replace a webhook endpoint's URL, event subscriptions, enabled state, and content type."
        },
        {
          "info": {
            "name": "Delete webhook endpoint",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.syntage.com/webhook-endpoints/:id",
            "params": [
              {
                "name": "id",
                "value": "91106968-1abd-4d64-85c1-4e73d96fb997",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a webhook endpoint so Syntage stops sending matching events to it."
        }
      ]
    }
  ],
  "bundled": true
}