Sign in
Docs

Scam reports

Follow the scam list

SSE
GET https://api.inorbit.hr/v1/reports/eventsAccept: text/event-stream; one data: line of JSON per event
WebSocket
wss://api.inorbit.hr/v1/ws{"type":"call","id":"1","method":"iohr.reports.v1.ReportsService/StreamReports","body":{…}}
MQTT 5
wss://api.inorbit.hr/v1/mqttsubscribe to reports/events
Have a token? Manage tokens in the console
GET
/v1/reports/events

The public list live, as server-sent events: a snapshot in chunks, then one event per entry listed, changed or removed, in order. Each carries the target, the kind and counts, never who reported. Resume with the last seq you saw; a reader that falls too far behind is ended and resumes the same way.

Needs scope reports:read.

Authorization

bearer
headerAuthorizationBearer <JWT>

An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.

Query Parameters

after_seq?string

The last seq you saw, to resume without a new snapshot; 0 or absent for a snapshot.

Formatint64

Response Body

A stream of iohr.reports.v1.StreamReportsResponse events, one JSON object per data:; a failure is an error event carrying Problem

text/event-stream
  1. response

iohr.reports.v1.StreamReportsResponse

at*string
Formatint64
entries*array<>
event*string
more*boolean
reason*string
seq*string
Formatint64
import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try {  for await (const event of api.reports.streamReports()) {    console.log(event);  }} catch (e) {  if (!(e instanceof ApiError)) throw e;  console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`);  process.exitCode = 1;}

npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.

Example Response
{  "at": "string",  "entries": [    {      "expires_at": "string",      "first_at": "string",      "kind": "string",      "reports": 0,      "target": "string"    }  ],  "event": "string",  "more": true,  "reason": "string",  "seq": "string"}