{
  "opencollection": "1.0.0",
  "info": {
    "name": "ServiceM8 REST Attachments Webhooks API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-API-Key",
      "value": "{{X-API-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Webhooks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List webhook subscriptions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicem8.com/api_1.0/webhook_subscriptions"
          },
          "docs": "List webhook subscriptions"
        },
        {
          "info": {
            "name": "Create or update an object webhook subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.servicem8.com/api_1.0/webhook_subscriptions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Subscribe to changes on specific fields of an object type. When a subscribed field changes, ServiceM8 POSTs the object type, changed fields, uuid, and a resource_url to your callback URL."
        },
        {
          "info": {
            "name": "Retrieve a webhook subscription",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.servicem8.com/api_1.0/webhook_subscriptions/:uuid",
            "params": [
              {
                "name": "uuid",
                "value": "",
                "type": "path",
                "description": "The UUID of the record."
              }
            ]
          },
          "docs": "Retrieve a webhook subscription"
        },
        {
          "info": {
            "name": "Delete a webhook subscription",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.servicem8.com/api_1.0/webhook_subscriptions/:uuid",
            "params": [
              {
                "name": "uuid",
                "value": "",
                "type": "path",
                "description": "The UUID of the record."
              }
            ]
          },
          "docs": "Delete a webhook subscription"
        }
      ]
    }
  ],
  "bundled": true
}