AbuseZeroAbuseZero

Share your referral link

Read your workspace's referral link and the referrals it brought in with the AbuseZero REST API, Node.js SDK, CLI or MCP server.

Every workspace has one permanent referral link. When someone new to AbuseZero signs up with it and their first payment qualifies, their new workspace and yours both get bonus credits. Two reads give an agent or a script everything it needs: the link to share, and the referrals it brought in. Neither read changes anything. In the dashboard, both are in Workspace settings → Referrals.

Before you begin

Read it with GET /v1/billing/referral-link, abusezero billing referral-link in the AbuseZero CLI, abusezero_get_referral_link on the AbuseZero MCP server, or getReferralLink() in the AbuseZero Node.js SDK.

import { abusezero } from "./lib/abusezero";

const link = await abusezero.getReferralLink();
Response
{
  "object": "referral_link",
  "url": "https://abusezero.com/r/K7QM2X"
}

The link never changes, so you can store it. The same /r/ ending works at the end of any AbuseZero page address and opens that page: https://docs.abusezero.com/docs/quickstart/r/K7QM2X opens the quickstart. A referral comes only from opening a link. There's no code to type.

See who signed up with it

List the referrals with GET /v1/billing/referrals, abusezero billing referrals in the AbuseZero CLI, abusezero_list_referrals on the AbuseZero MCP server, or listReferrals() in the AbuseZero Node.js SDK.

const referrals = await abusezero.listReferrals();

Each referral carries the email address the person signed up with, with part of it hidden, the date they signed up, the referral's status and, once their first payment qualifies, your workspace's bonus credits. The list never holds their full email address, plan or workspace. The list also returns the bonus credits your workspace has earned from referrals, and any credits it owes. It's a paginated list: pass next_cursor back as cursor to read the next page.

statusMeaning
signed_upThe person created an account with your link and hasn't made their first payment.
on_holdTheir first payment qualified, and their workspace got its bonus. Your workspace's bonus is due 30 days after that payment. If a payment is overdue or your workspace is suspended then, the bonus waits until it's back in good standing, for up to the time the Terms of Service set.
earnedYour workspace's bonus was added.
not_qualifiedThe referral can't earn a bonus, for example because the first payment was under the minimum or the person joined a workspace before paying. Neither workspace gets one.
not_addedYour workspace's bonus wasn't added. Your workspace didn't get back to good standing in time or had a payment dispute, or the first payment was refunded or a dispute over it was decided in the cardholder's favor before the bonus was added.
taken_backYour workspace's bonus was added, then the first payment was refunded, or a dispute over it was decided in the cardholder's favor. Both bonuses were taken back.

When a bonus your workspace already used is taken back, the used part becomes credits owed. Your next referral bonuses pay it off first, and your other credits are never touched.

Verify it works

Run both reads once. The link matches Your referral link in Workspace settings → Referrals, and the referrals match the list there. Added bonuses also appear in credit history.

How is this guide?

Last updated on