{
 "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": {
  "/tickets": {
   "post": {
    "tags": [
     "Support tickets"
    ],
    "operationId": "coreCreateTicket",
    "summary": "Create ticket",
    "x-summary-tr": "Talep Açma",
    "x-scope": "Tickets/CreateTicket",
    "x-generated": "core-catalog",
    "description": "Create ticket. Support ticket of the calling account.\n\nCore WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).\n\n**Limit increase**: account limits (GET /cloud/account/limits) are raised through a ticket: department_id 3, subject `Limit increase: <limit_key>`, message with the requested number and what you are building. CLI: `gyro ticket create --department-id 3 --subject ... --message ...`.",
    "x-description-tr": "Yeni bir destek talebi açar. — ek kabul eder\n\n**Sınır artırma**: hesap sınırları (GET /cloud/account/limits) talep ile artırılır: department_id 3, konu `Limit increase: <limit_key>`, mesajda istenen sayı ve ne yaptığınız. CLI: `gyro ticket create --department-id 3 --subject ... --message ...`.",
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "additionalProperties": true
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "description": "not_found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "access_group_invalid, attachment_invalid, credential_field_required, custom_field_required, department_invalid, message_too_short, subject_required, ticket_rejected, ticket_system_disabled",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "department_id": {
          "type": "integer",
          "description": "Departmanın numarası."
         },
         "subject": {
          "type": "string",
          "description": "Konu."
         },
         "message": {
          "type": "string",
          "description": "Açılış mesajı. En az beş karakter; düz metindir ve işaretleme ayıklanır."
         },
         "priority": {
          "type": "integer",
          "description": "Öncelik. Verilmezse orta alınır."
         },
         "service_id": {
          "type": "integer",
          "description": "Talebi bir hizmete bağlar."
         },
         "custom_fields": {
          "type": "object",
          "description": "Departman alanlarının yanıtları. Alan numarasını değere eşler; kutu tipli alanlar dizi alır."
         },
         "credentials": {
          "type": "string",
          "description": "Erişim bilgileri. Her satır bir grup numarası ve alan haritası taşır; mesaja şifreli işlenir."
         },
         "attachments": {
          "type": "array",
          "description": "Ekler. Kodlanmış içerik olarak gönderilir; adres reddedilir."
         },
         "encrypt_message": {
          "type": "boolean",
          "description": "Mesaj gövdesi şifreli saklansın mı."
         }
        },
        "required": [
         "department_id",
         "message",
         "subject"
        ]
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "Error": {
    "type": "object",
    "required": [
     "error"
    ],
    "properties": {
     "error": {
      "type": "object",
      "required": [
       "code",
       "message"
      ],
      "properties": {
       "code": {
        "type": "string",
        "example": "server_not_found"
       },
       "message": {
        "type": "string"
       },
       "details": {
        "type": "object",
        "additionalProperties": true,
        "description": "Extra data. Limit refusals add the LimitHint fields (`limit_exceeded: true`, `limit_key`, `limit`, `current`, `how_to_increase`, `support_ticket`, `hint`): account limits are raised with a support ticket. Validation errors (length, format) never carry the limit hint.",
        "x-description-tr": "Ek veri. Sınır retlerinde LimitHint alanları gelir: hesap sınırları destek talebiyle artırılır. Doğrulama hataları (uzunluk, biçim) sınır ipucu taşımaz."
       }
      }
     }
    }
   }
  },
  "responses": {
   "Forbidden": {
    "description": "Key lacks the scope, IP not allowed, or feature disabled",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   },
   "Unauthorized": {
    "description": "Missing, invalid or revoked key",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}