{
  "host": "webhooks.athom.com",
  "basePath": "/",
  "operations": {
    "getWebhooks": {
      "path": "/api/webhook",
      "method": "get",
      "parameters": {
        "token": {
          "in": "query",
          "type": "string",
          "required": true
        }
      }
    },
    "createWebhook": {
      "path": "/api/webhook",
      "method": "post",
      "parameters": {
        "token": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "name": {
          "type": "string",
          "in": "body"
        },
        "fn": {
          "type": "string",
          "in": "body"
        },
        "keyPath": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "getWebhook": {
      "path": "/api/webhook/{webhookId}",
      "method": "get",
      "parameters": {
        "token": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "webhookId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "updateWebhook": {
      "path": "/api/webhook/{webhookId}",
      "method": "put",
      "parameters": {
        "token": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "webhookId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "name": {
          "type": "string",
          "in": "body"
        },
        "fn": {
          "type": "string",
          "in": "body"
        },
        "keyPath": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "deleteWebhook": {
      "path": "/api/webhook/{webhookId}",
      "method": "delete",
      "parameters": {
        "token": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "webhookId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "registerWebhookClient": {
      "path": "/webhook/{webhookId}/{homeyId}",
      "method": "put",
      "parameters": {
        "webhookId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "homeyId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "secret": {
          "type": "string",
          "in": "body"
        },
        "data": {
          "type": "object",
          "in": "body"
        },
        "callback_url": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "unregisterWebhookClient": {
      "path": "/webhook/{webhookId}/{homeyId}",
      "method": "delete",
      "parameters": {
        "webhookId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "homeyId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    }
  }
}