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

# Create a new company

> Create a new company. If `mergeWithExisting` is true (default), the company will merge into an existing record matched by normalized LinkedIn URL, domain, website, or exact name. Set `mergeWithExisting` to false to always create a new company.

Responses include direct Enginy app URLs when available. The response includes an `appUrl` field for the company. MCP agents should return those URLs to users whenever they are present in the response.

    > **Required scope:** `COMPANIES_WRITE`
    >
    > **Rate limit:** 30 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json post /v1/company
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/company:
    post:
      tags:
        - Companies
      summary: Create a new company
      description: >-
        Create a new company. If `mergeWithExisting` is true (default), the
        company will merge into an existing record matched by normalized
        LinkedIn URL, domain, website, or exact name. Set `mergeWithExisting` to
        false to always create a new company.


        Responses include direct Enginy app URLs when available. The response
        includes an `appUrl` field for the company. MCP agents should return
        those URLs to users whenever they are present in the response.

            > **Required scope:** `COMPANIES_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Company name
                domain:
                  type: string
                  description: Company website domain
                website:
                  type: string
                  format: uri
                  description: Company website URL
                companyLinkedInUrl:
                  type: string
                  format: uri
                  description: Company LinkedIn URL
                listId:
                  type: integer
                  exclusiveMinimum: 0
                  description: ID of the list to add the company to
                mergeWithExisting:
                  type: boolean
                  default: true
                  description: >-
                    Whether to merge with an existing company matched by
                    normalized LinkedIn URL, domain, website, or exact name.
                    Defaults to true.
              additionalProperties: {}
      responses:
        '201':
          description: Company created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: number
                        description: ID of the created or updated company
                      appUrl:
                        type: string
                        format: uri
                        description: Direct Enginy app URL for opening the company.
                      name:
                        type:
                          - string
                          - 'null'
                        description: Company name
                      domain:
                        type:
                          - string
                          - 'null'
                        description: Company website domain
                      companyLinkedInUrl:
                        type:
                          - string
                          - 'null'
                        description: Company LinkedIn URL
                      createdAt:
                        type: string
                        format: date-time
                        description: Date and time when the company was created
                      updatedAt:
                        type: string
                        format: date-time
                        description: Date and time when the company was last updated
                      outcome:
                        type: string
                        enum:
                          - CREATED
                          - MERGED_UPDATED
                          - MERGED_NOOP
                        description: Whether the company was newly created or merged
                      matchedBy:
                        type: string
                        enum:
                          - LINKEDIN_URL
                          - DOMAIN
                          - WEBSITE
                          - NAME
                        description: >-
                          How an existing company was matched when
                          mergeWithExisting reused a record
                      warnings:
                        type: array
                        items:
                          type: string
                        description: Non-fatal warnings describing merge or no-op behavior
                    required:
                      - id
                      - appUrl
                      - name
                      - domain
                      - companyLinkedInUrl
                      - createdAt
                      - updatedAt
                      - outcome
                      - warnings
                required:
                  - status
                  - message
                  - data
        '400':
          description: Bad request - validation error or list not found
        '500':
          description: Internal server error
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````