> ## 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.

# Validate an intent audience config

> Validates and normalizes a topic, score, and filter definition without saving an audience or materializing contacts. Requires an authenticated organization member or organization API key. Returns the normalized configuration, configuration hash, and applied filter fields.



## OpenAPI

````yaml https://api.aws53.cloud/openapi-intent.json post /v1/intent/audiences/validate
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, exports, webhooks, and
      managed destinations
paths:
  /v1/intent/audiences/validate:
    post:
      tags:
        - Audience Builder
      summary: Validate an intent audience config
      description: >-
        Validates and normalizes a topic, score, and filter definition without
        saving an audience or materializing contacts. Requires an authenticated
        organization member or organization API key. Returns the normalized
        configuration, configuration hash, and applied filter fields.
      operationId: validateAnIntentAudienceConfig
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntentAudiencePreviewRequest'
            example:
              topicIds:
                - 1001
                - 1002
              minScore: 60
              maxScore: 99
              minTopicOverlap: 1
      responses:
        '200':
          description: Audience config validation result
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/IntentAudienceValidation'
                  meta:
                    $ref: '#/components/schemas/ApiMeta'
                required:
                  - data
                  - meta
              example:
                data:
                  valid: true
                  configHash: >-
                    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
                  normalizedConfig:
                    topicIds:
                      - 1001
                    minScore: 60
                    maxScore: 99
                    minTopicOverlap: 1
                    filters: {}
                  appliedFilters: []
                  strategy: serving_table_in
                meta:
                  timestamp: '2026-01-15T12:00:00.000Z'
                  request_id: example-request
        '400':
          description: Invalid audience config
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                  - type: object
                    properties:
                      success:
                        type: boolean
                        const: false
                      error:
                        type: object
                        properties:
                          name:
                            type: string
                            const: ZodError
                          message:
                            type: string
                        required:
                          - name
                          - message
                    required:
                      - success
                      - error
        '401':
          description: A valid bearer token or organization API key is required
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details: {}
                    required:
                      - code
                      - message
                  meta:
                    type: object
                    properties:
                      timestamp:
                        type: string
                      request_id:
                        type: string
                    required:
                      - timestamp
                      - request_id
                required:
                  - error
                  - meta
              example:
                error:
                  code: AUTHENTICATION_ERROR
                  message: Missing Authorization header or x-api-key
                meta:
                  timestamp: '2026-01-15T12:00:00.000Z'
                  request_id: example-request
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    IntentAudiencePreviewRequest:
      type: object
      properties:
        topicIds:
          type: array
          items:
            type: integer
            exclusiveMinimum: 0
          minItems: 1
          maxItems: 250
          example:
            - 1001
            - 1002
        minScore:
          type:
            - integer
            - 'null'
          minimum: 0
          maximum: 99
          example: 50
          description: >-
            Minimum intent score. Values below 50 are accepted and normalized to
            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://cloud.example.test
      required:
        - topicIds
    IntentAudienceValidation:
      type: object
      properties:
        valid:
          type: boolean
          const: true
        configHash:
          type: string
        normalizedConfig:
          $ref: '#/components/schemas/IntentAudienceConfig'
        appliedFilters:
          type: array
          items:
            type: string
        strategy:
          type: string
          enum:
            - serving_table_in
            - sidecar_tuple_in
      required:
        - valid
        - configHash
        - normalizedConfig
        - appliedFilters
        - strategy
    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
    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
        topics:
          type: array
          items:
            $ref: '#/components/schemas/IntentMatchedTopic'
          description: >-
            Hydrated topic metadata for display. Present on audience responses;
            write requests should continue sending topicIds.
      required:
        - topicIds
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details: {}
      required:
        - code
        - message
    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>.'

````

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