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

# Create Entity

> Add a new subsidiary entity to your account

This endpoint creates a new subsidiary entity under your account. You'll need to provide the legal name and country of registration. Tax ID is optional.


## OpenAPI

````yaml POST /entities
openapi: 3.0.1
info:
  title: Antei API Reference
  description: >-
    Programmatic access to Antei’s platform. Use this API to manage core objects
    and retrieve taxation insights.
  version: 1.0.0
  license:
    name: MIT
  contact:
    name: Antei Developer Support
    email: support@antei.com
    url: https://antei.com
servers:
  - url: https://api.antei.com
security:
  - bearerAuth: []
paths:
  /entities:
    post:
      summary: Create Entity
      description: >-
        Creates a new entity under your account. Useful for adding subsidiary
        entities.
      requestBody:
        description: Entity data
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewEntity'
      responses:
        '201':
          description: Entity created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Entity'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    NewEntity:
      type: object
      required:
        - name
        - country
      properties:
        name:
          type: string
        country:
          type: string
        tax_id:
          type: string
    Entity:
      type: object
      required:
        - id
        - name
        - country
      properties:
        id:
          type: string
          description: Unique ID of the entity
        name:
          type: string
          description: Legal name of the entity
        country:
          type: string
          description: Country of registration
        tax_id:
          type: string
          description: Official tax ID for the entity
        is_primary:
          type: boolean
          description: Indicates whether this is the primary entity
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        status:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````