{
  "openapi": "3.1.0",
  "info": {
    "title": "Fame Signal API",
    "version": "2.0.0",
    "description": "Fame Signal SMM Panel API documentation for developers, resellers, and agencies."
  },
  "servers": [
    {
      "url": "https://panel.famesignal.com/developer/api/v2/",
      "description": "Production API Server"
    }
  ],
  "paths": {
    "/": {
      "post": {
        "summary": "Execute Fame Signal API Action",
        "description": "All API operations use POST with application/x-www-form-urlencoded and require your secret API key.",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": ["key", "action"],
                "properties": {
                  "key": {
                    "type": "string",
                    "description": "Your panel API key."
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "balance",
                      "services",
                      "service_pricing",
                      "add",
                      "status",
                      "multiStatus",
                      "refill",
                      "refill_status",
                      "cancel"
                    ],
                    "description": "The action to perform."
                  },
                  "service_id": {
                    "type": "string",
                    "description": "Required for add and service_pricing."
                  },
                  "link": {
                    "type": "string",
                    "description": "Target profile or post URL for add."
                  },
                  "quantity": {
                    "type": "integer",
                    "description": "Order quantity for add."
                  },
                  "custom_comments": {
                    "type": "string",
                    "description": "Optional newline-separated custom comments."
                  },
                  "order": {
                    "type": "string",
                    "description": "Order ID for status, refill, and cancel."
                  },
                  "orders": {
                    "type": "string",
                    "description": "Comma-separated list of order IDs (up to 100) for multiStatus."
                  },
                  "refill": {
                    "type": "string",
                    "description": "Refill ID for refill_status."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          }
        }
      }
    }
  }
}
