{
 "openapi": "3.1.0",
 "info": {
  "title": "Gyro Public API",
  "version": "2.30.0",
  "summary": "Manage Gyro cloud servers, SSH keys and billing programmatically.",
  "x-summary-tr": "Gyro bulut sunucularınızı, SSH anahtarlarınızı ve faturalarınızı programla yönetin.",
  "contact": {
   "name": "Gyro Hosting",
   "url": "https://www.gyrohosting.com"
  },
  "license": {
   "name": "Proprietary",
   "identifier": "LicenseRef-Gyro-API-Terms"
  }
 },
 "servers": [
  {
   "url": "https://www.gyrohosting.com/api/v1/client",
   "description": "Production"
  }
 ],
 "paths": {
  "/cloud/webhooks": {
   "get": {
    "tags": [
     "Webhooks"
    ],
    "operationId": "listWebhooks",
    "summary": "List webhooks",
    "x-summary-tr": "Webhook'ları listele",
    "x-scope": "webhooks",
    "responses": {
     "200": {
      "description": "Webhooks",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Webhook"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "Webhook": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer"
     },
     "url": {
      "type": "string"
     },
     "events": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WebhookEvent"
      }
     },
     "description": {
      "type": [
       "string",
       "null"
      ]
     },
     "customer_id": {
      "type": [
       "integer",
       "null"
      ]
     },
     "status": {
      "type": "string",
      "enum": [
       "active",
       "disabled"
      ]
     },
     "consecutive_failures": {
      "type": "integer"
     },
     "created_at": {
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "WebhookEvent": {
    "type": "string",
    "enum": [
     "service.created",
     "service.active",
     "service.suspended",
     "service.unsuspended",
     "service.cancelled",
     "service.status_changed",
     "invoice.created",
     "invoice.paid",
     "order.created",
     "ticket.replied",
     "ticket.status_changed",
     "api.test"
    ]
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}