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

# /massachusetts/companies

> Get a Massachusetts business entity's registry record from the Secretary of the Commonwealth Corporations Division by its Identification Number: exact name, previous name and change date, entity type, current and old ID numbers, Massachusetts organization/registration date, jurisdiction of formation (state, country, date) for foreign entities, fiscal year months, principal and mailing addresses, registered agent (name and address), officers and directors (title, name, address), authorized stock classes, publicly-traded and other flags, and comments.

**Price:** 10 credits

**⚠️ Common errors:** 412: No business found for the given Identification Number



## OpenAPI

````yaml /openapi/company-registries.json post /api/massachusetts/companies
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/massachusetts/companies:
    post:
      tags:
        - US
      summary: /massachusetts/companies
      description: >-
        Get a Massachusetts business entity's registry record from the Secretary
        of the Commonwealth Corporations Division by its Identification Number:
        exact name, previous name and change date, entity type, current and old
        ID numbers, Massachusetts organization/registration date, jurisdiction
        of formation (state, country, date) for foreign entities, fiscal year
        months, principal and mailing addresses, registered agent (name and
        address), officers and directors (title, name, address), authorized
        stock classes, publicly-traded and other flags, and comments.


        **Price:** 10 credits


        **⚠️ Common errors:** 412: No business found for the given
        Identification Number
      operationId: __api_massachusetts_companies_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MassachusettsCompaniesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MassachusettsCompany'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MassachusettsCompaniesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        id_number:
          type: string
      type: object
      required:
        - id_number
    MassachusettsCompany:
      properties:
        '@type':
          type: string
          default: MassachusettsCompany
        id_number:
          type: string
        old_id_number:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
        previous_name:
          anyOf:
            - type: string
            - type: 'null'
        previous_name_date:
          anyOf:
            - type: string
            - type: 'null'
        legal_form:
          anyOf:
            - type: string
            - type: 'null'
        organization_date:
          anyOf:
            - type: string
            - type: 'null'
        organization_date_label:
          anyOf:
            - type: string
            - type: 'null'
        revival_date:
          anyOf:
            - type: string
            - type: 'null'
        last_date_certain:
          anyOf:
            - type: string
            - type: 'null'
        jurisdiction_state:
          anyOf:
            - type: string
            - type: 'null'
        jurisdiction_country:
          anyOf:
            - type: string
            - type: 'null'
        jurisdiction_date:
          anyOf:
            - type: string
            - type: 'null'
        fiscal_month_current:
          anyOf:
            - type: string
            - type: 'null'
        fiscal_month_previous:
          anyOf:
            - type: string
            - type: 'null'
        principal_address:
          anyOf:
            - $ref: '#/components/schemas/MassachusettsAddress'
            - type: 'null'
        mailing_address:
          anyOf:
            - $ref: '#/components/schemas/MassachusettsAddress'
            - type: 'null'
        registered_agent:
          anyOf:
            - $ref: '#/components/schemas/MassachusettsAgent'
            - type: 'null'
        officers:
          items:
            $ref: '#/components/schemas/MassachusettsOfficer'
          type: array
          default: []
        stocks:
          items:
            $ref: '#/components/schemas/MassachusettsStock'
          type: array
          default: []
        is_publicly_traded:
          anyOf:
            - type: boolean
            - type: 'null'
        has_consent:
          anyOf:
            - type: boolean
            - type: 'null'
        has_confidential_data:
          anyOf:
            - type: boolean
            - type: 'null'
        is_merger_allowed:
          anyOf:
            - type: boolean
            - type: 'null'
        is_manufacturing:
          anyOf:
            - type: boolean
            - type: 'null'
        comments:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id_number
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    MassachusettsAddress:
      properties:
        '@type':
          type: string
          default: MassachusettsAddress
        street:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        state:
          anyOf:
            - type: string
            - type: 'null'
        zip:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    MassachusettsAgent:
      properties:
        '@type':
          type: string
          default: MassachusettsAgent
        name:
          anyOf:
            - type: string
            - type: 'null'
        street:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        state:
          anyOf:
            - type: string
            - type: 'null'
        zip:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    MassachusettsOfficer:
      properties:
        '@type':
          type: string
          default: MassachusettsOfficer
        name:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    MassachusettsStock:
      properties:
        '@type':
          type: string
          default: MassachusettsStock
        stock_class:
          anyOf:
            - type: string
            - type: 'null'
        par_value:
          anyOf:
            - type: string
            - type: 'null'
        authorized_count:
          anyOf:
            - type: string
            - type: 'null'
        authorized_value:
          anyOf:
            - type: string
            - type: 'null'
        issued_count:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````