> ## Documentation Index
> Fetch the complete documentation index at: https://docs.searchable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a prospect report

> Asks for a report on a domain. A report for the same domain that is already generating, or that was created in the last 7 days, is ready and has not been revoked, is returned as it is (`200`) and spends nothing; send `force: true` to skip a finished report and build a new one. Otherwise the monthly allowance and the daily cap are checked, and a new request is accepted (`202`) with a `Location` header. The report builds in the background: poll the request until `status` is `ready`.



## OpenAPI

````yaml /reseller-api/openapi.json post /api/reseller/v1/prospect-reports
openapi: 3.1.0
info:
  title: Searchable Reseller API
  version: 1.0.0
  summary: Create, read, list and revoke prospect reports for a reseller.
  description: >-
    Ask for an AI visibility report on any domain and get back a link on your
    own report host. Authenticate with a reseller API key (`rk_live_`). See the
    [overview](/reseller-api/overview) for authentication, reuse, allowances and
    idempotency, and the [error reference](/api/errors) for every `code`.
servers:
  - url: https://app.searchable.com
    description: Production
security:
  - resellerKey: []
tags:
  - name: Prospect reports
    description: Reports a reseller asks for on a prospect's domain.
paths:
  /api/reseller/v1/prospect-reports:
    post:
      tags:
        - Prospect reports
      summary: Create a prospect report
      description: >-
        Asks for a report on a domain. A report for the same domain that is
        already generating, or that was created in the last 7 days, is ready and
        has not been revoked, is returned as it is (`200`) and spends nothing;
        send `force: true` to skip a finished report and build a new one.
        Otherwise the monthly allowance and the daily cap are checked, and a new
        request is accepted (`202`) with a `Location` header. The report builds
        in the background: poll the request until `status` is `ready`.
      operationId: createProspectReport
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProspectReport'
            example:
              domain: acme.com
              competitors:
                - globex.com
                - initech.com
              market: US
              language: en-US
              contact:
                email: pat@acme.com
                name: Pat Doe
                company: Acme
              bookingUrl: https://example.com/book
      responses:
        '200':
          description: An existing report answers the request (reuse). Nothing was spent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProspectReport'
        '202':
          description: A new request was accepted and is generating.
          headers:
            Location:
              description: >-
                The path of the new request. Absent on an idempotent replay of
                this response.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProspectReport'
              example:
                id: 5d0c2a52-6a1f-4c2b-9d8e-3c1f7a2b9e10
                source: api
                pitchId: null
                domain: acme.com
                status: generating
                reportUrl: null
                failureReason: null
                contact:
                  email: pat@acme.com
                  name: Pat Doe
                  company: Acme
                prospectEmail:
                  status: not_requested
                  reason: null
                createdAt: '2026-11-28T10:15:00.000Z'
        '400':
          $ref: '#/components/responses/InvalidArgument'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/ForbiddenOrAllowance'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        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`.
      schema:
        type: string
  schemas:
    CreateProspectReport:
      type: object
      required:
        - domain
      additionalProperties: false
      properties:
        domain:
          type: string
          maxLength: 2048
          description: The prospect's domain or a URL on it; normalised to a host.
        competitors:
          type: array
          maxItems: 10
          description: >-
            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.
          items:
            type: string
            maxLength: 2048
        market:
          type: string
          description: >-
            An ISO 3166-1 alpha-2 country code. Case does not matter; it is
            stored upper case.
        language:
          type: string
          maxLength: 35
          description: >-
            A BCP 47 language tag, such as `en-US`. It is stored in its
            canonical form.
        contact:
          type: object
          additionalProperties: false
          description: >-
            Who the report is for. Every field is optional; text fields are
            trimmed and limited to 200 characters.
          properties:
            email:
              type: string
              format: email
              maxLength: 320
            name:
              type: string
              maxLength: 200
            company:
              type: string
              maxLength: 200
        bookingUrl:
          type: string
          maxLength: 2048
          description: An http or https link the report offers as its call to action.
        notifyProspect:
          type: boolean
          default: false
          description: >-
            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:
          type: boolean
          default: false
          description: >-
            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.
    ProspectReport:
      type: object
      required:
        - id
        - source
        - pitchId
        - domain
        - status
        - reportUrl
        - failureReason
        - contact
        - prospectEmail
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        source:
          type: string
          enum:
            - pitch
            - api
            - landing
          description: What created the request.
        pitchId:
          type:
            - string
            - 'null'
          description: >-
            The pitch the report was made for. Set only when `source` is
            `pitch`.
        domain:
          type: string
        status:
          type: string
          enum:
            - generating
            - ready
            - failed
          description: >-
            A request still generating an hour after it was made reads as
            `failed` with `build_timeout`.
        reportUrl:
          type:
            - string
            - 'null'
          description: >-
            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:
          type:
            - string
            - 'null'
          description: >-
            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:
          type:
            - object
            - 'null'
          properties:
            email:
              type: string
            name:
              type: string
            company:
              type: string
        prospectEmail:
          type: object
          required:
            - status
            - reason
          properties:
            status:
              type: string
              enum:
                - not_requested
                - pending
                - sent
                - skipped
            reason:
              type:
                - string
                - 'null'
              enum:
                - opted_out
                - sender_unavailable
                - no_contact_email
                - null
              description: Why the email was skipped. Null unless `status` is `skipped`.
        createdAt:
          type: string
          format: date-time
    Problem:
      type: object
      required:
        - type
        - title
        - status
        - code
        - message
      description: >-
        An `application/problem+json` error. See the [error
        reference](/api/errors).
      properties:
        type:
          type: string
          description: A link to the error reference, anchored to `code`.
        title:
          type: string
        status:
          type: integer
        code:
          type: string
          description: Stable; safe to branch on.
        message:
          type: string
        error:
          type: string
          description: Equal to `message`.
        howToFix:
          type: string
        requestId:
          type: string
        errors:
          type: array
          description: 'On `invalid_argument`: each field that failed.'
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
        used:
          type: integer
          description: On `prospect_report_allowance_used`.
        limit:
          type: integer
          description: On `prospect_report_allowance_used` and `prospect_report_daily_cap`.
        resetsAt:
          type: string
          format: date-time
          description: >-
            On `prospect_report_allowance_used` and `prospect_report_daily_cap`:
            when the count starts again.
  responses:
    InvalidArgument:
      description: >-
        `invalid_argument`: the body or query is not valid. `errors` lists each
        field.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Unauthorized:
      description: '`unauthorized`: the key is missing, malformed, unknown or revoked.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    ForbiddenOrAllowance:
      description: >-
        `missing_scope`, or `prospect_report_allowance_used` when the month's
        allowance is spent (`used`, `limit` and `resetsAt` say where you stand).
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    NotFound:
      description: >-
        `not_found`: no such request for this reseller, or the prospect report
        API is not switched on for it.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Conflict:
      description: >-
        `reseller_report_host_unavailable` (no verified report host),
        `idempotency_conflict` or `idempotency_in_flight`.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    TooManyRequests:
      description: >-
        `rate_limited` (over 600 requests a minute for the key; `Retry-After`
        says when to retry), or `prospect_report_daily_cap` on a create when
        today's limit is reached.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  securitySchemes:
    resellerKey:
      type: http
      scheme: bearer
      description: >-
        A reseller API key, `rk_live_...`, created in your White Label settings
        under Prospect reports. It is shown once.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.