---
updatedAt: 2026-01-28T20:52:08.000Z
agentTools:
  projectIndex: https://developer.vyasa.com/llms.txt
---

# Tag named entities

Tag named entity concepts and their respective concept types for an input string of text.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Layar API Documentation",
    "version": "v1.927.2",
    "contact": {
      "name": "Certara AI Support",
      "email": "AI-Support@Certara.com",
      "url": "https://vyasa.readme.io/"
    }
  },
  "servers": [
    {
      "url": "BASE_PATH"
    }
  ],
  "paths": {
    "/layar/namedEntity/tag": {
      "post": {
        "operationId": "tagNER",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NamedEntityRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "$ref": "#/components/schemas/NamedEntityResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Tag named entities",
        "description": "Tag named entity concepts and their respective concept types for an input string of text.",
        "tags": [
          "namedEntity"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "Named Entity",
      "name": "namedEntity"
    }
  ],
  "components": {
    "schemas": {
      "NamedEntityRequest": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ontologyIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "withCustomTypes": {
            "type": "boolean",
            "description": "Include custom types (those returned by /conceptType/search) in addition to any types provided in the `types` parameter",
            "default": true
          }
        }
      },
      "NamedEntityResponse": {
        "type": "object",
        "properties": {
          "namedEntities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "pos": {
                  "type": "array",
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "concept": {
                  "type": "string"
                },
                "typeId": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "CONNECT_API_URL/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oAuth2ClientCredentials": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```