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

# Preview an intent audience

> Counts and samples an intent-led audience using latest dt, cityHash64(hem), and hem_hash IN query strategy. Preview rows are masked.



## OpenAPI

````yaml https://api.aws53.cloud/openapi-intent.json post /v1/intent/audiences/preview
openapi: 3.1.0
info:
  title: Orbit API
  version: 1.0.0
  description: >-
    Orbit Audience Intent API: topic discovery, site analysis, curated ICP
    filters, saved audiences, materialization runs, stats, and CSV export.
    Discovery endpoints are public; audience management accepts either Bearer
    JWT or X-API-Key auth.
servers:
  - url: https://api.aws53.cloud
    description: Production
security: []
tags:
  - name: Topic Discovery
    description: Browse, search, and analyze available intent topics
  - name: Site Analysis
    description: Analyze a website URL to find matching intent topics
  - name: Site Topics
    description: Recent organization site-topic analyses
  - name: Audience Builder
    description: >-
      Curated filters, preview, saved audiences, runs, stats, CSV export, and
      saved topic lists
paths:
  /v1/intent/audiences/preview:
    post:
      tags:
        - Audience Builder
      summary: Preview an intent audience
      description: >-
        Counts and samples an intent-led audience using latest dt,
        cityHash64(hem), and hem_hash IN query strategy. Preview rows are
        masked.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntentAudiencePreviewRequest'
      responses:
        '200':
          description: Audience preview with masked sample rows
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/AudiencePreview'
                  meta:
                    $ref: '#/components/schemas/ApiMeta'
                required:
                  - data
                  - meta
        '400':
          description: Invalid audience config
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    IntentAudiencePreviewRequest:
      type: object
      properties:
        topicIds:
          type: array
          items:
            type: integer
            exclusiveMinimum: 0
          minItems: 1
          maxItems: 250
          example:
            - 502909
            - 502955
        minScore:
          type:
            - integer
            - 'null'
          minimum: 0
          maximum: 99
          description: perc_score minimum. Values below 50 are accepted and clamped to 50.
          example: 50
        maxScore:
          type: integer
          minimum: 50
          maximum: 99
          example: 99
        minTopicOverlap:
          type: integer
          minimum: 1
          maximum: 250
          example: 1
        filters:
          type: object
          additionalProperties: {}
          example:
            role:
              isDecisionMaker: true
            contact:
              hasBusinessEmail: true
            jobTitle:
              include:
                - chief financial officer
                - cfo
              includeMode: any
        sourceUrl:
          type: string
          format: uri
          example: https://example.com
      required:
        - topicIds
    AudiencePreview:
      type: object
      properties:
        configHash:
          type: string
        dataDate:
          type: string
          format: date
        strategy:
          type: string
          enum:
            - serving_table_in
            - sidecar_tuple_in
        totalCount:
          type: integer
        breakdowns:
          $ref: '#/components/schemas/AudiencePreviewBreakdowns'
        sample:
          type: array
          items:
            $ref: '#/components/schemas/AudienceProfile'
        appliedFilters:
          type: array
          items:
            type: string
        normalizedConfig:
          $ref: '#/components/schemas/IntentAudienceConfig'
      required:
        - configHash
        - dataDate
        - strategy
        - totalCount
        - breakdowns
        - sample
        - appliedFilters
        - normalizedConfig
    ApiMeta:
      type: object
      properties:
        timestamp:
          type: string
          format: date-time
        request_id:
          type: string
      required:
        - timestamp
        - request_id
    ApiErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
        meta:
          $ref: '#/components/schemas/ApiMeta'
      required:
        - error
        - meta
    AudiencePreviewBreakdowns:
      type: object
      properties:
        industries:
          type: array
          items:
            $ref: '#/components/schemas/AudienceBreakdownBucket'
        seniorities:
          type: array
          items:
            $ref: '#/components/schemas/AudienceBreakdownBucket'
        departments:
          type: array
          items:
            $ref: '#/components/schemas/AudienceBreakdownBucket'
        companySizes:
          type: array
          items:
            $ref: '#/components/schemas/AudienceBreakdownBucket'
        states:
          type: array
          items:
            $ref: '#/components/schemas/AudienceBreakdownBucket'
        exportGrades:
          type: array
          items:
            $ref: '#/components/schemas/AudienceBreakdownBucket'
        contactTiers:
          type: array
          items:
            $ref: '#/components/schemas/AudienceBreakdownBucket'
      required:
        - industries
        - seniorities
        - departments
        - companySizes
        - states
        - exportGrades
        - contactTiers
    AudienceProfile:
      type: object
      properties:
        hashedEmail:
          type:
            - string
            - 'null'
        firstName:
          type:
            - string
            - 'null'
        lastName:
          type:
            - string
            - 'null'
        fullName:
          type:
            - string
            - 'null'
        businessEmail:
          type:
            - string
            - 'null'
        personalEmail:
          type:
            - string
            - 'null'
        email:
          type:
            - string
            - 'null'
        primaryContactEmail:
          type:
            - string
            - 'null'
        phone:
          type:
            - string
            - 'null'
        mobilePhone:
          type:
            - string
            - 'null'
        directPhone:
          type:
            - string
            - 'null'
        personalPhone:
          type:
            - string
            - 'null'
        linkedinUrl:
          type:
            - string
            - 'null'
        headline:
          type:
            - string
            - 'null'
        jobTitle:
          type:
            - string
            - 'null'
        roleBucket:
          type:
            - string
            - 'null'
        seniority:
          type:
            - string
            - 'null'
        department:
          type:
            - string
            - 'null'
        profile:
          type: object
          properties:
            profilePidAll:
              type:
                - string
                - 'null'
            duplicateProfileCount:
              type:
                - integer
                - 'null'
            sourcePriority:
              type:
                - integer
                - 'null'
            hemRecordRank:
              type:
                - integer
                - 'null'
            isBestProfileForHem:
              type: boolean
        company:
          type: object
          properties:
            name:
              type:
                - string
                - 'null'
            domain:
              type:
                - string
                - 'null'
            linkedinUrl:
              type:
                - string
                - 'null'
            domainTld:
              type:
                - string
                - 'null'
            industry:
              type:
                - string
                - 'null'
            industryGroup:
              type:
                - string
                - 'null'
            naics:
              type:
                - string
                - 'null'
            sic:
              type:
                - string
                - 'null'
            description:
              type:
                - string
                - 'null'
            revenueRange:
              type:
                - string
                - 'null'
            city:
              type:
                - string
                - 'null'
            state:
              type:
                - string
                - 'null'
            country:
              type:
                - string
                - 'null'
            zip:
              type:
                - string
                - 'null'
        geo:
          type: object
          properties:
            city:
              type:
                - string
                - 'null'
            state:
              type:
                - string
                - 'null'
            stateCode:
              type:
                - string
                - 'null'
            country:
              type:
                - string
                - 'null'
            countryCode:
              type:
                - string
                - 'null'
            zip:
              type:
                - string
                - 'null'
            region:
              type:
                - string
                - 'null'
        contact:
          type: object
          properties:
            hasBusinessEmail:
              type: boolean
            hasPersonalEmail:
              type: boolean
            hasAnyPhone:
              type: boolean
            businessEmailStatus:
              type:
                - string
                - 'null'
            personalEmailStatus:
              type:
                - string
                - 'null'
            phoneStatus:
              type:
                - string
                - 'null'
        demographics:
          type: object
          properties:
            gender:
              type:
                - string
                - 'null'
            ageRange:
              type:
                - string
                - 'null'
            incomeRange:
              type:
                - string
                - 'null'
            netWorth:
              type:
                - string
                - 'null'
        role:
          type: object
          properties:
            signals:
              type: object
              additionalProperties:
                type: boolean
        profileSignals:
          type: object
          additionalProperties:
            type: boolean
        companySignals:
          type: object
          additionalProperties:
            type: boolean
        geoSignals:
          type: object
          additionalProperties:
            type: boolean
        compliance:
          type: object
          additionalProperties: true
        source:
          type: object
          additionalProperties: true
        intent:
          type: object
          properties:
            score:
              type: integer
            topicOverlap:
              type: integer
            matchedTopics:
              type: array
              items:
                $ref: '#/components/schemas/IntentMatchedTopic'
    IntentAudienceConfig:
      type: object
      properties:
        topicIds:
          type: array
          items:
            type: integer
          minItems: 1
          maxItems: 250
        minScore:
          type: integer
          minimum: 0
          maximum: 99
          description: Accepted below 50, normalized/clamped to 50 by the backend.
        maxScore:
          type: integer
          minimum: 50
          maximum: 99
          default: 99
        minTopicOverlap:
          type: integer
          minimum: 1
          maximum: 250
          default: 1
        filters:
          type: object
          additionalProperties: true
        sourceUrl:
          type: string
          format: uri
      required:
        - topicIds
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details: {}
      required:
        - code
        - message
    AudienceBreakdownBucket:
      type: object
      properties:
        value:
          type: string
        label:
          type: string
        count:
          type: integer
      required:
        - value
        - label
        - count
    IntentMatchedTopic:
      type: object
      properties:
        topicId:
          type: integer
        topicName:
          type: string
        type:
          type:
            - string
            - 'null'
        industry:
          type:
            - string
            - 'null'
        category:
          type:
            - string
            - 'null'
      required:
        - topicId
        - topicName
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Dashboard access token. Send as Authorization: Bearer <token>.'
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Organization API key (sk_...). Send as X-API-Key: <key>.'

````