{
  "opencollection": "1.0.0",
  "info": {
    "name": "Unified.to account webhook API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "authorization",
      "value": "{{authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "webhook",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Returns All Registered Webhooks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.unified.to/unified/webhook",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "updated_gte",
                "value": "",
                "type": "query",
                "description": "Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query"
              },
              {
                "name": "order",
                "value": "",
                "type": "query"
              },
              {
                "name": "object",
                "value": "",
                "type": "query",
                "description": "Filter the results for webhooks for only this object"
              },
              {
                "name": "integration_type",
                "value": "",
                "type": "query",
                "description": "Filter the results to just this integration"
              },
              {
                "name": "connection_id",
                "value": "",
                "type": "query",
                "description": "Filter the results to just this integration"
              },
              {
                "name": "created_lte",
                "value": "",
                "type": "query",
                "description": "Return only results whose created date is equal or less to this value"
              },
              {
                "name": "env",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "authorization",
              "value": "{{authorization}}",
              "placement": "header"
            }
          },
          "docs": "Returns All Registered Webhooks"
        },
        {
          "info": {
            "name": "Create Webhook Subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.unified.to/unified/webhook",
            "params": [
              {
                "name": "include_all",
                "value": "",
                "type": "query",
                "description": "When set, all of the existing data will sent back to your server."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "authorization",
              "value": "{{authorization}}",
              "placement": "header"
            }
          },
          "docs": "The data payload received by your server is described at https://docs.unified.to/unified/overview. The `interval` field can be set as low as 1 minute for paid accounts, and 60 minutes for free accounts."
        },
        {
          "info": {
            "name": "Retrieve Webhook by Its Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.unified.to/unified/webhook/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the Webhook"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "authorization",
              "value": "{{authorization}}",
              "placement": "header"
            }
          },
          "docs": "Retrieve Webhook by Its Id"
        },
        {
          "info": {
            "name": "Update Webhook Subscription",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.unified.to/unified/webhook/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the Webhook"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "authorization",
              "value": "{{authorization}}",
              "placement": "header"
            }
          },
          "docs": "Update Webhook Subscription"
        },
        {
          "info": {
            "name": "Update Webhook Subscription",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.unified.to/unified/webhook/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the Webhook"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "authorization",
              "value": "{{authorization}}",
              "placement": "header"
            }
          },
          "docs": "Update Webhook Subscription"
        },
        {
          "info": {
            "name": "Remove Webhook Subscription",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.unified.to/unified/webhook/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the Webhook"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "authorization",
              "value": "{{authorization}}",
              "placement": "header"
            }
          },
          "docs": "Remove Webhook Subscription"
        },
        {
          "info": {
            "name": "Trigger Webhook",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.unified.to/unified/webhook/:id/trigger",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the Webhook"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "authorization",
              "value": "{{authorization}}",
              "placement": "header"
            }
          },
          "docs": "Trigger Webhook"
        },
        {
          "info": {
            "name": "Trigger Webhook",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.unified.to/unified/webhook/:id/trigger",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the Webhook"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "authorization",
              "value": "{{authorization}}",
              "placement": "header"
            }
          },
          "docs": "Trigger Webhook"
        }
      ]
    }
  ],
  "bundled": true
}