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

# Get entity by ID

> Returns the full detail for a single entity, including its group, its aliases, and any entities merged into it.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json get /api/entities/{id}
openapi: 3.0.0
info:
  title: MentionLab Public API v0.3.4-rc
  description: ''
  version: 0.3.4-rc
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/entities/{id}:
    get:
      tags:
        - Entities
      summary: Get entity by ID
      description: >-
        Returns the full detail for a single entity, including its group, its
        aliases, and any entities merged into it.
      operationId: EntitiesRefController_findOne
      parameters:
        - name: id
          required: true
          in: path
          description: The UUID of the entity to retrieve.
          schema:
            type: string
            format: uuid
        - name: x-project-id
          in: header
          description: Project ID to specify the project context
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityDetailResponse'
        '400':
          description: >-
            The request failed validation — the body, query or path parameters
            are malformed or out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: The request is missing valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The authenticated principal lacks the required permission, or access
            to the requested organisation/project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    EntityDetailResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        slug:
          type: string
        type:
          type: string
          enum:
            - brand
            - person
            - company
            - other
        isOwned:
          type: boolean
        isPrimary:
          type: boolean
        isCompetitor:
          type: boolean
        isBlacklisted:
          type: boolean
        group:
          $ref: '#/components/schemas/EntityGroupRef'
        domains:
          description: Domains mapped to this entity (project-scoped).
          type: array
          items:
            $ref: '#/components/schemas/EntityDomainRef'
        canonicalId:
          type: string
          format: uuid
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        aliases:
          description: Alternate name strings that resolve to this entity.
          type: array
          items:
            $ref: '#/components/schemas/EntityAliasResponse'
        mergedSources:
          description: >-
            Separate entities merged into this one (their mentions roll up here;
            reversible via unmerge).
          type: array
          items:
            $ref: '#/components/schemas/MergedEntityRef'
      required:
        - id
        - name
        - slug
        - type
        - isOwned
        - isPrimary
        - isCompetitor
        - isBlacklisted
        - domains
        - createdAt
        - updatedAt
        - aliases
        - mergedSources
    ApiErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code of the error.
          example: 400
        message:
          type: string
          description: >-
            Human-readable description of the error. Validation failures return
            an array of per-field validation errors instead of a single string.
          example: Validation failed
        error:
          type: string
          description: Short name of the HTTP error.
          example: Bad Request
      required:
        - statusCode
    EntityGroupRef:
      type: object
      properties:
        id:
          type: string
          format: uuid
        kind:
          type: string
          enum:
            - group
            - division
          description: Whether this container is a top-level group or a division.
        parent:
          type: string
          description: >-
            Parent group ID when this container is a division inside a group;
            null for top-level groups and standalone divisions. Lets the entity
            list render "Group › Division" without a second fetch.
          format: uuid
          nullable: true
        name:
          type: string
        slug:
          type: string
      required:
        - id
        - kind
        - name
        - slug
    EntityDomainRef:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The entity-domain mapping id.
        domain:
          type: string
          example: hubspot.com
          description: The mapped root domain.
      required:
        - id
        - domain
    EntityAliasResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        alias:
          type: string
        source:
          type: string
          enum:
            - llm
            - manual
      required:
        - id
        - alias
        - source
    MergedEntityRef:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        slug:
          type: string
      required:
        - id
        - name
        - slug

````