Docs

Check a message

Preview· P9
POST
/checks/messages

A message a customer received (an SMS, a WhatsApp message or an email's words). The answer is the scam checker's: one of five tiers with its reasons, what to tell the customer to do, the organisation the message claims to be and its real website, and who else to tell. no_warning_signs never means safe.

The same message gets the same answer: Agoo's own rules and records decide it, and links in it are read by Agoo's page reader, so allow up to 30 seconds. A test key (agoo_ck_test_) runs the same rules without reading any page and isn't billed. A live call is billed as one check for each link it reads: at most five (only the first five different sites are read), and one for a message with no links. The message is never kept.

Key: a Check API key, agoo_ck_live_ or agoo_ck_test_, with checks:read.

Authorization

bearerAuth checks:read
headerAuthorizationBearer <token>

Send Authorization: Bearer <token> on every request. The token is one of:

PrefixWhat it isWhere it may be used
agoo_sk_live_Secret key, live modeYour servers only
agoo_sk_test_Secret key, test modeYour servers only
agoo_pk_live_Publishable key, live modeBrowsers and apps: create pre-registrations and bookings, read public booking types (with their intake questions) and their free slots, read the visit types open for pre-registration with their public forms. Never lists people.
agoo_pk_test_Publishable key, test modeAs above, in test mode
agoo_rk_live_Agoo Reviews key, live mode: a business on Agoo Reviews on its own, on Reviews BusinessYour servers only: the Reviews operations, for that business and the branches the key names
agoo_rk_test_Agoo Reviews key, test modeAs above, on any level: it reads the business's reviews and checks every write without saving it
agoo_ck_live_Check API key, live mode, for a Check API partnerYour servers only: the Checks operations (checks:read), billed per check
agoo_ck_test_Check API key, test modeAs above, answering only the published test values, never billed

Admins create keys in Console → Developers → API keys and choose each key's scopes; a business on Agoo Reviews on its own creates its keys in its business area on agoo.reviews, under Developers; a Check API partner creates its keys in its partner area on agoo.reviews. A key is shown once. Never put a secret key in a URL, a browser or a mobile app.

Scope: checks:read

Header Parameters

Origin?string

Sent by browsers. A Check API key can't be used from a browser: a request with it is refused (403).

Request Body

application/json
  1. body
text*string

The message as the customer received it: an SMS, a WhatsApp message or an email's words. Compared here and never kept.

Length2 <= length <= 20000

Response Body

The answer.

application/json
  1. response
id*string

The call's id (chk_…): quote it to Agoo about this call.

object*"check_message"
Value in"check_message"
tier*string

no_warning_signs never means safe; verified_official only when every link goes to the organisation's own website.

Value in"scam""very_likely_scam""suspicious""no_warning_signs""verified_official"
tier_label*string

The tier in words, as agoo.reviews shows it.

headline*string
advice*string
read_as*string

What the message was read as.

Value in"sms""whatsapp""email""link""number""handle""account""name""text"
reasons*array<string>

The evidence as short points, worst first, in Agoo's words. Never the message's own words.

actions*array<>
claimed?

The organisation the message claims to be, and where it really is.

authorities*array<>

Who else to tell, from the regulators Agoo lists: the Cyber Security Authority first.

report_url*string

Where the customer can report it to Agoo.

checked_at*string
Formatdate-time
answer_version*string
livemode*boolean
curl -X POST 'https://api.agoohq.com/v1/checks/messages' \  -H 'Content-Type: application/json' \  -d '{  "text": "string"}'
{  "id": "string",  "object": "check_message",  "tier": "scam",  "tier_label": "string",  "headline": "string",  "advice": "string",  "read_as": "sms",  "reasons": [    "string"  ],  "actions": [    {      "code": "dont_pay",      "label": "string",      "link": "string"    }  ],  "claimed": {    "name": "string",    "website": "string"  },  "authorities": [    {      "name": "string",      "phone": "string",      "whatsapp": "string",      "email": "string",      "link": "string"    }  ],  "report_url": "string",  "checked_at": "2019-08-24T14:15:22Z",  "answer_version": "string",  "livemode": true}

Check one identifier POST

Checks one phone number, MoMo number, @handle, website or merchant name against what Agoo Reviews knows, before money moves. The answer gives only confirmed records and official warnings, the same for every partner: whether it's a verified official contact of a business (with that business's page and its lines from official registers), the confirmed reports' count and kinds, consumer alerts for a regulator's action or impersonation, and the businesses a confirmed fake pretends to be. **"We have no record of this" never means safe.** The same check covers a lender, a loan app, a recruiter, a travel agent or a landlord: send its name as a `merchant`, or the number its messages or payment requests come from as a `phone`. Their register lines (for example the Labour Department's list of licensed private employment agencies, or the Bank of Ghana's lists) and report kinds such as `loan_app` and `fake_job_visa` come back in the same answer. Medicines aren't checked here: an FDA registration number is refused (`422`), and a product's name reads as a merchant name. The FDA's own register answers both. One identifier a call: there's no list, prefix, search or watch. A test key (`agoo_ck_test_`) answers only the published test values. Every live call is billed, "no record" included; an invalid one isn't. Answers are never cached. Never refuse anyone a service on an answer alone without a person's review. **Key:** a Check API key, `agoo_ck_live_` or `agoo_ck_test_`, with `checks:read`.

Your Check API usage GET

Your own calls by day, live and test, how many checks were billed, and by outcome. A message check is billed one check for each link it reads (one to five), so `billed` can be more than `calls`. The counts lag the calls by up to a minute, and your daily and monthly caps are read from them. **Key:** a Check API key, `agoo_ck_live_` or `agoo_ck_test_`, with `checks:read`.