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

# Resolve Company

> Derive a company's name, domain, website and industry from one hint.

Read-only. The single owner of account identity derivation — the create-account
chat, the manual form and any other caller share this one implementation, so a
name is derived the same way regardless of entry point.



## OpenAPI

````yaml /openapi-generated.json post /ai/resolve-company
openapi: 3.1.0
info:
  title: anycrm-api
  version: 0.0.1
servers: []
security: []
tags:
  - name: Customer Intelligence
    description: >-
      Company research and ICP-fit scoring — create a research run, track its
      progress, and read back scored companies as leads.
  - name: Outreach
    description: >-
      The cold-email management console — domains, mailboxes, and campaigns — as
      a thin control plane over the SalesForge stack.
  - name: AnyCard
    description: >-
      Authenticated CRUD for AnyCard, the org's digital business-card /
      lead-capture product.
  - name: AnyCard Events
    description: >-
      Event-attribution analytics for AnyCard — which captured leads converted,
      broken down by source, owner, and deal.
  - name: AnyCard Share Links
    description: >-
      Unauthenticated endpoints reached by anyone who scans a QR code or opens a
      shared AnyCard link.
  - name: AI
    description: >-
      A streaming (SSE) AI chat endpoint with account-commit actions it can take
      on the caller's behalf.
  - name: Analytics Assistant
    description: >-
      The natural-language analytics assistant — a guarded text-to-SQL loop
      (SSE) that answers ad-hoc questions over the org's CRM data as a
      least-privilege, read-only database role.
  - name: Account Readiness
    description: >-
      Account Readiness Profiles — AI-scored signals on whether an account is
      ready for outreach or expansion, computed via a Temporal workflow.
  - name: Integrations
    description: >-
      Pipedream Connect — issuing connect tokens and managing the org's
      connected third-party accounts.
  - name: Feedback
    description: >-
      User-submitted platform feedback (bug reports, feature requests) — global,
      not scoped to one organization.
  - name: Public Media
    description: >-
      Unauthenticated image reads for publicly-embeddable assets (card photos,
      inline email images) — allowlisted by key shape; everything else in the
      storage bucket stays private.
  - name: Service Health
    description: Service liveness.
paths:
  /ai/resolve-company:
    post:
      tags:
        - AI
      summary: Resolve Company
      description: >-
        Derive a company's name, domain, website and industry from one hint.


        Read-only. The single owner of account identity derivation — the
        create-account

        chat, the manual form and any other caller share this one
        implementation, so a

        name is derived the same way regardless of entry point.
      operationId: resolve_company_route_ai_resolve_company_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveCompanyIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolveCompanyOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ResolveCompanyIn:
      properties:
        seed:
          type: string
          maxLength: 500
          minLength: 1
          title: Seed
          description: A URL, a bare domain, or a company name.
      type: object
      required:
        - seed
      title: ResolveCompanyIn
    ResolveCompanyOut:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Domain
        website:
          anyOf:
            - type: string
            - type: 'null'
          title: Website
        industry:
          anyOf:
            - $ref: '#/components/schemas/AccountIndustry'
            - type: 'null'
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        linkedin_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Linkedin Url
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
        phone:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone
        estimated_num_employees:
          anyOf:
            - type: integer
            - type: 'null'
          title: Estimated Num Employees
        annual_revenue:
          anyOf:
            - type: number
            - type: 'null'
          title: Annual Revenue
        technologies:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Technologies
        enrichment_source:
          anyOf:
            - type: string
              enum:
                - perplexity
                - model_inference
                - domain_parse
            - type: 'null'
          title: Enrichment Source
          description: Which path produced this — for debugging, not display.
        schema_version:
          type: integer
          title: Schema Version
          default: 1
      type: object
      title: ResolveCompanyOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AccountIndustry:
      type: string
      enum:
        - Food & Beverage
        - Technology
        - Healthcare
        - Financial Services
        - Retail
        - Manufacturing
        - Professional Services
        - Real Estate
        - Education
        - Media & Entertainment
        - Transportation & Logistics
        - Energy
        - Agriculture
        - Construction
        - Hospitality & Travel
        - Other
      title: AccountIndustry
      description: >-
        Account industry taxonomy — keep in sync with frontend
        industry-options.ts.


        Pydantic renders this as a JSON-schema enum, so it is at once the API

        validation, the constraint handed to the AI, and the account form's
        option

        list. StrEnum so members serialize as their labels.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````