← APIs / Text Trust
Verified

Text Trust

Apiosk Basicsby Apiosk Basics · General

Unicode homoglyph, domain similarity and text normalization checks for adversarial emails, invoices and scraped pages.

securityapi
Price per request
$0.02
About

Unicode homoglyph, domain similarity and text normalization checks for adversarial emails, invoices and scraped pages. Pure computation, no caller API key, no outbound provider dependency. The gateway meters access per request over x402.

Base URL
https://gateway.apiosk.com/text-trust
Technical Specs
Auth Methodx402
Response FormatJSON
Endpoints3
Endpoints
MethodPathDescriptionCost
POST /check/domain-similarity Compare a domain against a caller allowlist using edit distance and visual confusable skeleton similarity.
$0.02 default
View details
POST /check/homoglyphs Detect mixed-script and confusable Unicode characters and return exact offending codepoints.
$0.02 default
View details
POST /normalize/text Apply NFKC normalization and remove zero-width and bidi override characters, returning cleaned text plus a removal report.
$0.02 default
View details
Endpoint documentation
POST/check/domain-similarity
$0.02 default
Description

Compare a domain against a caller allowlist using edit distance and visual confusable skeleton similarity.

Pricing
$0.02 default
Request schema
{
  "properties": {
    "allowlist": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "domain": {
      "type": "string"
    }
  },
  "required": [
    "domain",
    "allowlist"
  ],
  "type": "object"
}
Response schema
{
  "properties": {
    "best_match": {
      "type": "object"
    },
    "matches": {
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "suspicious": {
      "type": "boolean"
    }
  },
  "type": "object"
}
Example request
{
  "allowlist": [
    "paypal.com"
  ],
  "domain": "paypa1.com"
}
Example response
{
  "best_match": {
    "allowed": "paypal.com",
    "visual_distance": 0
  },
  "ok": true,
  "suspicious": true
}
POST/check/homoglyphs
$0.02 default
Description

Detect mixed-script and confusable Unicode characters and return exact offending codepoints.

Pricing
$0.02 default
Request schema
{
  "properties": {
    "text": {
      "type": "string"
    }
  },
  "required": [
    "text"
  ],
  "type": "object"
}
Response schema
{
  "properties": {
    "findings": {
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "skeleton": {
      "type": "string"
    },
    "suspicious": {
      "type": "boolean"
    }
  },
  "type": "object"
}
Example request
{
  "text": "аpiosk.com"
}
Example response
{
  "findings": [
    {
      "codepoint": "U+0430",
      "looks_like": "a"
    }
  ],
  "ok": true,
  "skeleton": "apiosk.com",
  "suspicious": true
}
POST/normalize/text
$0.02 default
Description

Apply NFKC normalization and remove zero-width and bidi override characters, returning cleaned text plus a removal report.

Pricing
$0.02 default
Request schema
{
  "properties": {
    "text": {
      "type": "string"
    }
  },
  "required": [
    "text"
  ],
  "type": "object"
}
Response schema
{
  "properties": {
    "changed": {
      "type": "boolean"
    },
    "report": {
      "type": "object"
    },
    "text": {
      "type": "string"
    }
  },
  "type": "object"
}
Example request
{
  "text": "abc​‮def"
}
Example response
{
  "changed": true,
  "ok": true,
  "report": {
    "removed": [
      {
        "codepoint": "U+200B"
      },
      {
        "codepoint": "U+202E"
      }
    ]
  },
  "text": "abcdef"
}