AbuseGraphDocs

Keys

Secret sk_ keys stay on the server. Publishable pk_ keys belong in the browser. Live traffic needs a licensed site.

KeyPrefixWhereHeaderSurface
Secretsk_test_… / sk_live_…your serverx-api-key (Monitor also accepts Authorization: Bearer)https://abusegraph.com/api/v1/*
Publishablepk_test_… / pk_live_…browser / SDKx-api-key or JSON publicKeyhttps://api.abusegraph.com
Sitehostnameserver env + live headerx-abusegraph-sitelicensed domain

Test vs live

TestLive
Keysk_test_… / pk_test_…sk_live_… / pk_live_…
x-abusegraph-siteoptionalrequired — DNS-verified hostname
Quotaunlimited testplan live checks (Free: 1,000 / month)

Live keys refuse localhost and unlisted hosts. Local tooling must use test keys.

Minimum env

ABUSEGRAPH_SITE=yourdomain.com
ABUSEGRAPH_CHECK_URL=https://abusegraph.com/api/v1/check
ABUSEGRAPH_SECRET_KEY=sk_test_…
ABUSEGRAPH_SECRET_KEY_TEST=sk_test_…
NEXT_PUBLIC_ABUSEGRAPH_PUBLISHABLE_KEY=pk_test_…

Never invent live keys. Never commit secrets.

Account metadata

GET /api/v1/account with a secret key returns plan, usage, and domain metadata — see Account.