---
title: "Create a new legal entity"
method: POST
path: "/legal-entities"
tags: ["legalEntities"]
---

# Create a new legal entity

`POST /legal-entities`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/legal-entities`
- Auth: HTTP bearer

Creates a new legal entity under the organization and returns the entity record including its assigned id.

 **Token scopes**: `legal-entity:write`, `legal-entity:read`

## Request body

- object
  - `data` LegalEntitiesPostRequestBodyContentApplicationJsonSchemaData
    - `name` string, required: The legal name of the entity.
    - `phone` string, required: Contact phone number for the entity.
    - `address` LegalEntitiesPostRequestBodyContentApplicationJsonSchemaDataAddress, required: The physical address of the entity.
      - `zip` string, required: Zip code.
      - `city` string, required: City name.
      - `state` string: State
      - `street` string, required: Street address.
      - `country` string, required: Country code.
    - `sic_number` string, required: The SIC number for the entity.
    - `entity_type` string, required: Type of the entity.
    - `company_identifiers` LegalEntitiesPostRequestBodyContentApplicationJsonSchemaDataCompanyIdentifiers, required
      - `tax_number` string, required: Tax number of the entity.
      - `registration_number` string, required: Registration number of the entity.

## Response `200`

Successfully created legal entity.

- LegalEntitiesCreateLegalEntityResponse200
  - `data` LegalEntitiesPostResponsesContentApplicationJsonSchemaData
    - `id` string: The unique identifier for the legal entity.
    - `name` string: The name of the entity.
    - `phone` string: The contact number of the entity.
    - `address` LegalEntitiesPostResponsesContentApplicationJsonSchemaDataAddress: The entity's address.
      - `zip` string
      - `city` string
      - `state` string
      - `street` string
      - `country` string
    - `created_at` string, date-time: Timestamp when the entity was created.
    - `sic_number` string: The SIC number of the entity.
    - `updated_at` string, date-time: Timestamp when the entity was last updated.
    - `entity_type` string: Type of the entity.

## Other responses

- `400`: Invalid request parameters.
- `401`: Operation failed.
- `403`: Permission denied. User must have the `entities.manage` permission.
- `404`: Operation failed.
- `500`: Operation failed.

---

[API](https://skmtc.dev/deel/apis/endpoints.md) - [All operations](https://skmtc.dev/deel/apis/endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/endpoints/revisions/0c7142fd9f93?raw)
