Guardian
Is this link or message a scam?
POST /v1/guardian
Section titled “POST /v1/guardian”Check a link or a message for scam signs. Operation id: postGuardian.
Send exactly one of link or message. Guardian never says something is safe: the best
verdict is no_warning_signs. It never opens the destination site. It asks only public DNS,
the domain registry (RDAP) and well known link shorteners.
Input is private, so it is accepted only in a POST body, never in a URL, and the answer is never cached or logged. Messages can be up to 5,000 characters in any language; every link in a message (up to five) is checked. The request body is capped at 64 KB.
The response depends on the input: a link gives a GuardianLinkResult (kind is
guardian_link), a message gives a GuardianMessageResult (kind is guardian_message).
Request body
Section titled “Request body”Content type application/json: GuardianRequest.
Check a link:
{ "link": "https://bit.ly/abc"}Check a message:
{ "message": "Your account will be blocked today. Send the OTP you received to confirm."}Example request
Section titled “Example request”curl -X POST "https://api.kytheos.com/v1/guardian" \ -H "content-type: application/json" \ -d '{"link":"https://bit.ly/abc"}'Responses
Section titled “Responses”The result for the link or the message.
Body: GuardianLinkResult or GuardianMessageResult.
The input is missing, malformed or not allowed. The error text says what to change.
Body: Error.
A domain check with a URL instead of a domain:
{ "error": "Enter only the domain name, without http://, paths or ports."}A body that is not the JSON the endpoint expects:
{ "error": "Send JSON like {\"prompt\": \"You are the support assistant for ...\"}."}The request body is larger than the endpoint accepts.
Body: Error.
Example:
{ "error": "That is too long to check."}The client IP address went over the rate limit for this endpoint. Wait and try again.
Body: Error.
Headers:
retry-after: Seconds to wait before trying again. Always60.
Example:
{ "error": "Too many checks from your network. Please wait a minute and try again."}