{
  "openapi": "3.0.2",
  "info": {
    "title": "Unicode® Confusable Invisible Guard",
    "version": "1.0.0",
    "description": "Find confusable mappings, default-ignorable characters, bidirectional controls and selected mixed-script signals with Unicode® Standard version 17.0.0 data. Send up to 20 items in one request. This is a review helper. It is not a complete UTS #39 or bidirectional-skeleton implementation and does not decide whether text or a person is malicious.\n\nThis is a best-effort service with no SLA. Requests pass through RapidAPI and may appear in RapidAPI traffic logs, including request and response content. The Worker processes requests in memory and does not independently persist them. Do not submit credentials, secrets, or confidential or non-public personal data as text or reference values.\n\nUnicode is a registered trademark of Unicode, Inc. in the United States and other countries. This site is not in any way associated with or endorsed or sponsored by Unicode, Inc. (aka The Unicode Consortium). Derived Unicode data is used under the Unicode License V3. The complete notice is included in the API documentation.\n\nAccess: subscribe through RapidAPI, then send both x-rapidapi-key and x-rapidapi-host. Never publish a consumer key.",
    "license": {
      "name": "Unicode License V3",
      "url": "https://www.unicode.org/license.txt"
    }
  },
  "paths": {
    "/unicode/analyze": {
      "post": {
        "operationId": "analyzeUnicodeText",
        "summary": "Report confusable, invisible, bidi-control, and selected mixed-script signals",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 20,
                    "description": "At most 1,024 Unicode scalar values across all text and reference fields.",
                    "items": {
                      "type": "object",
                      "required": [
                        "text"
                      ],
                      "properties": {
                        "text": {
                          "type": "string",
                          "description": "At most 256 Unicode scalar values."
                        },
                        "reference": {
                          "type": "string",
                          "description": "Optional comparison text; at most 256 Unicode scalar values."
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "items": [
                  {
                    "text": "pаypаl",
                    "reference": "paypal"
                  },
                  {
                    "text": "ab\u200bcd"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Diagnostic signals with Unicode data version",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "unicodeVersion",
                    "results",
                    "meta"
                  ],
                  "properties": {
                    "unicodeVersion": {
                      "type": "string",
                      "enum": [
                        "17.0.0"
                      ]
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/RapidApiRejected"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/RapidApiHost"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Meta": {
        "type": "object",
        "required": [
          "bestEffort",
          "sla"
        ],
        "properties": {
          "bestEffort": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "sla": {
            "type": "boolean",
            "enum": [
              false
            ]
          }
        }
      }
    },
    "responses": {
      "Error": {
        "description": "Rejected request",
        "content": {
          "application/json": {
            "schema": {
              "type": "object"
            }
          }
        }
      },
      "RapidApiRejected": {
        "description": "RapidAPI rejected missing or invalid consumer authentication headers.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "RapidApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-rapidapi-key",
        "description": "RapidAPI consumer key. Subscribe to this API on RapidAPI before calling it."
      }
    },
    "parameters": {
      "RapidApiHost": {
        "name": "x-rapidapi-host",
        "in": "header",
        "required": true,
        "description": "RapidAPI gateway host for this API.",
        "schema": {
          "type": "string",
          "enum": [
            "unicode-confusable-invisible-guard.p.rapidapi.com"
          ],
          "default": "unicode-confusable-invisible-guard.p.rapidapi.com"
        },
        "example": "unicode-confusable-invisible-guard.p.rapidapi.com"
      }
    }
  },
  "servers": [
    {
      "url": "https://unicode-confusable-invisible-guard.p.rapidapi.com",
      "description": "RapidAPI gateway"
    }
  ],
  "security": [
    {
      "RapidApiKey": []
    }
  ]
}
