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

# List leads

> Founders discovered around tracked companies. `decision=unreviewed` is the inbox. A decision applies to every row for the same person.



## OpenAPI

````yaml /openapi.json get /api/v1/leads
openapi: 3.1.0
info:
  title: RaiseGate Partner API
  version: 1.0.0
  description: >-
    Organisation-scoped API for managing tracker entities, reading signals and
    alerts, and reviewing generated leads. Every key belongs to one
    organisation. Send `Authorization: Bearer rg_live_...` on every request.
servers:
  - url: https://app.raisegate.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Tracker
    description: Companies and founders the organisation monitors.
  - name: Signals
    description: Analysed result of each tracker run.
  - name: Alerts
    description: Whether a run emailed the VC, and why.
  - name: Leads
    description: Founders discovered around tracked companies.
paths:
  /api/v1/leads:
    get:
      tags:
        - Leads
      summary: List leads
      description: >-
        Founders discovered around tracked companies. `decision=unreviewed` is
        the inbox. A decision applies to every row for the same person.
      operationId: listLeads
      parameters:
        - $ref: '#/components/parameters/View'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Classification'
        - name: sourceQuery
          in: query
          description: Fuzzy name of the tracked company that surfaced the lead.
          schema:
            type: string
        - name: sourceEntityId
          in: query
          schema:
            type: string
            format: uuid
        - name: stage
          in: query
          schema:
            type: string
            enum:
              - unfunded
              - grant
              - pre_seed_seed
              - series_a
              - post_series_a
        - name: query
          in: query
          description: Founder or company name contains.
          schema:
            type: string
        - name: decision
          in: query
          schema:
            type: string
            enum:
              - unreviewed
              - accepted
              - rejected
        - name: updatedAfter
          in: query
          description: >-
            Leads whose data changed after this timestamp. Your own decisions do
            not change it.
          schema:
            type: string
            format: date-time
      responses:
        '200':
          $ref: '#/components/responses/Paginated'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/SourceNotFound'
        '409':
          $ref: '#/components/responses/AmbiguousSource'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    View:
      name: view
      in: query
      description: '`compact` (default for lists) or `full` (default for single resources).'
      schema:
        type: string
        enum:
          - compact
          - full
    Limit:
      name: limit
      in: query
      description: Page size. 1-100, default 25. Values above 100 are clamped.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
    Cursor:
      name: cursor
      in: query
      description: Opaque `nextCursor` from the previous page.
      schema:
        type: string
    Classification:
      name: classification
      in: query
      description: >-
        Natural sector wording, up to four comma-separated terms. Aliases:
        `sector`, `sectors`.
      schema:
        type: string
      examples:
        biotech:
          value: biotech
        multi:
          value: biotech,robotics
  responses:
    Paginated:
      description: Newest-first page. `nextCursor` is null when there are no more results.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Paginated'
    BadRequest:
      description: '`validation_error`, `invalid_json`, or `invalid_cursor`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, malformed, unknown, revoked or expired key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Key lacks the required scope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    SourceNotFound:
      description: Fuzzy source lookup matched nothing (`source_not_found`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    AmbiguousSource:
      description: Fuzzy source lookup matched several companies.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Per-key rate limit exceeded. Wait `Retry-After` seconds.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Paginated:
      type: object
      required:
        - data
        - nextCursor
      properties:
        data:
          type: array
          items:
            type: object
        nextCursor:
          type:
            - string
            - 'null'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: RaiseGate API key
      description: 'API key issued with `npm run partner-api:key`. Format: `rg_live_...`.'

````