Skip to main content
POST
Create a prospect report

Authorizations

Authorization
string
header
required

A reseller API key, rk_live_..., created in your White Label settings under Prospect reports. It is shown once.

Headers

Idempotency-Key
string

A client-chosen key. Repeating a request with the same key and body within 24 hours returns the first response, marked X-Idempotent-Replay: true, without a second request. Only successful responses are stored: after an error, a retry with the same key runs again. 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.

Body

application/json
domain
string
required

The prospect's domain or a URL on it; normalised to a host.

Maximum string length: 2048
competitors
string[]

Up to 10 competitor domains or URLs. Each is normalised, duplicates are dropped and so is the prospect's own domain. An entry that is not a domain is a 400.

Maximum array length: 10
Maximum string length: 2048
market
string

An ISO 3166-1 alpha-2 country code. Case does not matter; it is stored upper case.

language
string

A BCP 47 language tag, such as en-US. It is stored in its canonical form.

Maximum string length: 35
contact
object

Who the report is for. Every field is optional; text fields are trimmed and limited to 200 characters.

bookingUrl
string

An http or https link the report offers as its call to action.

Maximum string length: 2048
notifyProspect
boolean
default:false

Emails the prospect once when the report is ready. Needs contact.email, and you must have the prospect's consent. See prospectEmail on the response for the outcome.

force
boolean
default:false

Build a new report even when a ready one was created in the last 7 days. A report that is still generating is always reused.

Response

An existing report answers the request (reuse). Nothing was spent.

id
string<uuid>
required
source
enum<string>
required

What created the request.

Available options:
pitch,
api,
landing
pitchId
string | null
required

The pitch the report was made for. Set only when source is pitch.

domain
string
required
status
enum<string>
required

A request still generating an hour after it was made reads as failed with build_timeout.

Available options:
generating,
ready,
failed
reportUrl
string | null
required

The report's link on your report host. Set only while the report is ready, not revoked and your host is verified; otherwise null.

failureReason
string | null
required

Why a failed request failed: generation_failed (the report could not be generated), build_error (the report could not be built), build_timeout, incomplete_snapshot, sharing_policy (sharing is switched off for the workspace), feature_off or dispatch_failed (the request never started, and spent nothing). Null otherwise.

contact
object | null
required
prospectEmail
object
required
createdAt
string<date-time>
required