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

# Match an organization name to a verified record

> Uses semantic search to find the closest matching organizations for a given name. Optionally filter by headquarters location. Returns up to 10 results ranked by similarity score. Deducts 1 credit per request.

`result_count` must be between 1 and 10 (inclusive).

**Errors**
- `400` — `result_count` is out of the allowed range.
- `402` — Insufficient credits.

Uses semantic search to find the closest matching organizations for a given name. Optionally filter by headquarters location. Returns up to 10 results ranked by similarity score. Deducts 1 credit per request.


## OpenAPI

````yaml POST /v2/organization/resolve
openapi: 3.1.0
info:
  title: Revenuebase API v2
  version: 0.1.0
servers:
  - url: https://api.revenuebase.ai
security: []
paths:
  /v2/organization/resolve:
    post:
      tags:
        - Organization
      summary: Match an organization name to a verified record
      description: >-
        Uses semantic search to find the closest matching organizations for a
        given name. Optionally filter by headquarters location. Returns up to 10
        results ranked by similarity score. Deducts 1 credit per request.


        `result_count` must be between 1 and 10 (inclusive).


        **Errors**

        - `400` — `result_count` is out of the allowed range.

        - `402` — Insufficient credits.
      operationId: resolve_company_v2_organization_resolve_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyResolverRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyResolverResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
      x-codeSamples:
        - lang: Python
          label: Python SDK
          source: |-
            from revenuebase_sdk import RevenuebaseClient

            client = RevenuebaseClient()

            result = client.organization.resolve(
                company_name="Acme Corp",
                result_count=5,
                headquarters_country="US",
            )
            for org in result.companies:
                print(org.company_name, org.similar_score)
components:
  schemas:
    CompanyResolverRequest:
      properties:
        result_count:
          type: integer
          title: Result Count
          default: 3
        company_name:
          type: string
          title: Company Name
        headquarters_state:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters State
        headquarters_country:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters Country
        headquarters_city:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters City
        headquarters_street:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters Street
        headquarters_zip:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters Zip
      type: object
      required:
        - company_name
      title: CompanyResolverRequest
    CompanyResolverResponse:
      properties:
        companies:
          items:
            $ref: '#/components/schemas/Company'
          type: array
          title: Companies
      type: object
      required:
        - companies
      title: CompanyResolverResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Company:
      properties:
        rbid:
          type: string
          title: Rbid
        company_name:
          type: string
          title: Company Name
        similar_score:
          type: number
          title: Similar Score
        about_us:
          anyOf:
            - type: string
            - type: 'null'
          title: About Us
        headquarters_street:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters Street
        headquarters_city:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters City
        headquarters_state:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters State
        headquarters_zip:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters Zip
        headquarters_country:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters Country
      type: object
      required:
        - rbid
        - company_name
        - similar_score
      title: Company
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-key

````