---
title: "Get one entity and its mentions from the org-wide graph"
---

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

# Get one entity and its mentions from the org-wide graph

Path: CloudRaker Workspace API › Ontology

`GET /ontology/entities/{entityId}`

Returns `{ entity, mentions }` for an entity in the org-wide (`org`) graph. `entity` is `null` for an unknown id; otherwise `{ id, type, name, key }`. `mentions` carry `fileId`, `text`, and best-effort grounding (`page`+`bbox` for documents, `startSeconds`/`endSeconds`/`speaker` for audio). Org-admin only — requires the admin role; non-admins get a 403.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `entityId` (`getOrgOntologyEntity.path.entityId`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/ontology/entities/<entityId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/ontology/entities/<entityId>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/ontology/entities/<entityId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The entity (or null) and its mentions across the organization.

#### Example

```json
{
  "entity": {
    "id": "string",
    "type": "organization",
    "name": "string",
    "key": "string"
  },
  "mentions": [
    {
      "fileId": "string",
      "page": -9007199254740991,
      "bbox": {
        "x": 0,
        "y": 0,
        "width": 0,
        "height": 0
      },
      "text": "string",
      "startSeconds": 0,
      "endSeconds": 0,
      "speaker": "string"
    }
  ]
}
```

- `entity` (`getOrgOntologyEntity.response.200.entity`; any of, required) — Null when the id is unknown in this graph.
  - any of:
    - `object`
      - `id` (`getOrgOntologyEntity.response.200.entity.1.id`; string, required)
      - `type` (`getOrgOntologyEntity.response.200.entity.1.type`; string, required)
        - example `"organization"`
      - `name` (`getOrgOntologyEntity.response.200.entity.1.name`; string, required)
      - `key` (`getOrgOntologyEntity.response.200.entity.1.key`; string | null, required)
    - `null`
- `mentions` (`getOrgOntologyEntity.response.200.mentions`; array<object>, required)
  - `fileId` (`getOrgOntologyEntity.response.200.mentions.fileId`; string, required)
  - `page` (`getOrgOntologyEntity.response.200.mentions.page`; any of, required) — 0-based page, for documents.
    - any of: `integer`, `null`
  - `bbox` (`getOrgOntologyEntity.response.200.mentions.bbox`; any of, required)
    - any of: `OntologyBBox`, `null`
  - `text` (`getOrgOntologyEntity.response.200.mentions.text`; string, required)
  - `startSeconds` (`getOrgOntologyEntity.response.200.mentions.startSeconds`; number | null, required) — For audio transcripts.
  - `endSeconds` (`getOrgOntologyEntity.response.200.mentions.endSeconds`; number | null, required)
  - `speaker` (`getOrgOntologyEntity.response.200.mentions.speaker`; string | null, required)


Source: https://docs.cloudraker.com/workspace/api/ontology/get-org-ontology-entity/index.md
