Skip to main content

Overview

The reseller API lets your own system ask for an AI visibility report on a prospect’s domain, read its status, list your reports and take one down. The report opens on your own report host, under your brand. Every endpoint lives under /api/reseller/v1/prospect-reports and is listed in this reference. It is for resellers’ engineers. It is not part of the customer API and does not accept a customer key.

Base URL

The same paths also answer on your own report and app hosts. The key, not the host, says which reseller is calling.

Authentication

Create a key in your White Label settings, under Prospect reports, as the reseller owner or a staff admin. Keys start with rk_live_ and are shown once. A reseller key carries one permission, prospect_reports, and works only on this API; a customer sea_ key does not work here, and a reseller key does not work anywhere else.
A missing, malformed, unknown or revoked key is 401 unauthorized. Revoke a key in the same settings section; it stops working at once.

The request resource

Every endpoint returns the same shape.
status is generating, ready or failed. reportUrl is set only while the report is ready, not revoked and your report host is verified. It always points at your own host. A request still generating an hour after it was made reads as failed with failureReason: "build_timeout".

Creating a report

POST /api/reseller/v1/prospect-reports takes a domain and, optionally, competitors, market, language, contact, bookingUrl, notifyProspect and force. A new request answers 202 with a Location header; poll it until status is ready.
  • competitors takes up to 10 domains. Each is normalised, duplicates are dropped and so is the prospect’s own domain. An entry that is not a domain is a 400.
  • market is an ISO 3166-1 alpha-2 country code and language a BCP 47 tag; both are stored in their canonical form.
  • bookingUrl must be an http or https link. It is the call to action on the report this request builds; a reused report keeps the call to action it was built with.
  • notifyProspect needs contact.email. It asks us to email the prospect once, when the report is ready; see Prospect email. prospectEmail.status stays pending until the email goes out or is skipped.
  • Whoever you pass as contact is your prospect. You are responsible for having their consent before you set notifyProspect.

Reuse

A report on the same domain is reused rather than built twice. If one is still generating, or was created in the last 7 days, is ready and has not been revoked, the request is answered 200 with that report’s status and link, and spends nothing. Send force: true to skip a finished report and build a new one; a report that is still generating is always reused. Reuse matches on the domain alone. A reused report keeps the competitors, market, language and bookingUrl it was built with, whatever this request sends; send force: true when you need a report built with different ones.

Allowance and daily cap

A new report spends one unit of your monthly allowance (UTC calendar month; API and landing page requests count, pitch requests do not) and one of your daily cap (UTC day; every source counts). A reused report spends neither, and nor does a request that never started (failureReason: "dispatch_failed"). A request that fails before its visibility run starts gives its allowance unit back, since you got nothing, but still counts toward that day’s cap. A request that fails after the run started keeps its unit spent. Both limits are set for you by our team.
  • Allowance used: 403 prospect_report_allowance_used, with used, limit and resetsAt (the first of next month, UTC).
  • Daily cap reached: 429 prospect_report_daily_cap, with limit and resetsAt (the next UTC midnight).
  • The allowance is checked before the daily cap.
A request also needs a verified report host. Without one it is 409 reseller_report_host_unavailable and nothing is written.

Listing

GET /api/reseller/v1/prospect-reports?limit=25 returns { data, nextCursor }, newest first, every source included. limit is 1 to 100 (default 25). Pass nextCursor back as cursor for the next page; it is opaque, and a cursor this API did not issue is 400 invalid_argument.

Revoking

DELETE /api/reseller/v1/prospect-reports/{id} answers 204 and the report’s link answers 404 from then on. Revoking a report also revokes the requests that reused it. It is safe to repeat.

Idempotency

Send an Idempotency-Key header on POST. Repeating a request with the same key and body for 24 hours returns the first response with X-Idempotent-Replay: true and does not create a second request. Only successful responses are stored: after an error, a retry with the same key runs again. A replay of a 202 does not carry the Location header; use the id in the body. The same key with a different body is 409 idempotency_conflict; the same key while the first call is still running is 409 idempotency_in_flight.

Prospect email

Set notifyProspect: true with a contact.email and we email the prospect once, when the report is ready. The email comes from your own verified sender, under your brand, with one button to the report. It is never sent for a failed report. You are responsible for having the prospect’s consent before you set notifyProspect. Every email carries an unsubscribe link and a one-click List-Unsubscribe header. A prospect who unsubscribes is never emailed again by any reseller, on any report. An address is matched without regard to case or surrounding spaces. The request shows what happened in prospectEmail: A skipped email has one of these reasons: opted_out (the address unsubscribed), sender_unavailable (you have no verified sending address or report host) or no_contact_email. A report that is revoked or no longer available is skipped without a reason. A skip is final for that request.

Rate limit

600 requests a minute per key. Over it is 429 rate_limited with Retry-After. The order of checks is the key, then the rate limit, then whether the API is switched on for you, then idempotency, so a refused key spends nothing. If the API is not switched on for your account every endpoint answers 404 not_found.

Errors

Errors are application/problem+json, as everywhere else in the API. The codes this API returns are unauthorized, missing_scope, not_found, invalid_argument, prospect_report_allowance_used, prospect_report_daily_cap, reseller_report_host_unavailable, rate_limited, idempotency_conflict and idempotency_in_flight; each is described in the error reference.