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

# Resolve public prospect identities into CRM workflow records

> Partially succeeds by row and persists identity links only; raw public GraphQL records are rejected by strict JSON decoding.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /deals/prospects/_bulk
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /deals/prospects/_bulk:
    post:
      tags:
        - deals
      summary: Resolve public prospect identities into CRM workflow records
      description: >-
        Partially succeeds by row and persists identity links only; raw public
        GraphQL records are rejected by strict JSON decoding.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pkg_routes_deals_prospects.bulkRequest'
        description: Up to 100 identity-only rows
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg_routes_deals_prospects.bulkResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_deals_prospects.bulkRequest:
      type: object
      properties:
        rows:
          type: array
          items:
            $ref: '#/components/schemas/pkg_routes_deals_prospects.bulkRowRequest'
    pkg_routes_deals_prospects.bulkResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/pkg_routes_deals_prospects.bulkRowResult'
    pkg_routes_deals_prospects.bulkRowRequest:
      type: object
      properties:
        company:
          $ref: '#/components/schemas/pkg_routes_deals_prospects.companyInput'
        contact:
          $ref: '#/components/schemas/pkg_routes_deals_prospects.contactChoice'
        deal:
          $ref: '#/components/schemas/pkg_routes_deals_prospects.dealChoice'
        request_id:
          type: string
        source:
          $ref: '#/components/schemas/pkg_routes_deals_prospects.sourceIdentity'
    pkg_routes_deals_prospects.bulkRowResult:
      type: object
      properties:
        client_id:
          type: string
        code:
          type: string
        contact_id:
          type: string
        created:
          $ref: '#/components/schemas/pkg_routes_deals_prospects.createdResources'
        deal_id:
          type: string
        link:
          $ref: '#/components/schemas/pkg_routes_deals_prospects.prospectingLink'
        message:
          type: string
        request_id:
          type: string
        status:
          type: string
    pkg_routes_deals_prospects.companyInput:
      type: object
      properties:
        address:
          type: array
          items:
            $ref: '#/components/schemas/types.Address'
        business_type:
          type: string
        ein:
          type: string
        existing_id:
          type: string
        naics_code:
          type: string
        name:
          type: string
        notes:
          type: string
        phone:
          type: string
        tags:
          type: array
          items:
            type: string
        website:
          type: string
    pkg_routes_deals_prospects.contactChoice:
      type: object
      properties:
        create:
          $ref: '#/components/schemas/pkg_routes_deals_prospects.contactInput'
        existing_id:
          type: string
        role:
          type: string
    pkg_routes_deals_prospects.dealChoice:
      type: object
      properties:
        create:
          $ref: '#/components/schemas/pkg_routes_deals_prospects.dealCreateInput'
        existing_id:
          type: string
    pkg_routes_deals_prospects.sourceIdentity:
      type: object
      properties:
        crd:
          type: string
        ein:
          type: string
        firm_crd:
          type: string
        kind:
          type: string
        plan_number:
          type: string
    pkg_routes_deals_prospects.createdResources:
      type: object
      properties:
        company:
          type: boolean
        contact:
          type: boolean
        deal:
          type: boolean
        link:
          type: boolean
    pkg_routes_deals_prospects.prospectingLink:
      type: object
      properties:
        _id:
          type: string
        client:
          type: string
        contact:
          type: string
        created_at:
          type: string
        created_by:
          type: string
        deal:
          description: >-
            Deal is nil for representative-derived advisory_firm placeholders
            that

            only reserve the firm company until a direct firm add upgrades them.
          type: string
        source_key:
          type: string
        source_kind:
          type: string
        team:
          type: string
    types.Address:
      type: object
      properties:
        attn:
          type: string
        city:
          type: string
        country:
          type: string
        desc:
          type: string
        state:
          type: string
        street:
          type: string
        street2:
          type: string
        unit:
          type: string
        zip:
          type: string
    pkg_routes_deals_prospects.contactInput:
      type: object
      properties:
        address:
          $ref: '#/components/schemas/types.Address'
        company:
          type: string
        email:
          type: array
          items:
            type: string
        name:
          type: string
        notes:
          type: string
        phone:
          type: array
          items:
            $ref: '#/components/schemas/types.Phone'
        preferred_name:
          type: string
        suffix:
          type: string
        tags:
          type: array
          items:
            type: string
        title:
          type: string
    pkg_routes_deals_prospects.dealCreateInput:
      type: object
      properties:
        funnel:
          type: string
        name:
          type: string
        owner:
          type: string
        stage:
          type: string
        tags:
          type: array
          items:
            type: string
        value:
          type: number
    types.Phone:
      type: object
      properties:
        number:
          type: string
        type:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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