---
title: "Get one entity and its grounded mentions in a space"
---

> 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 grounded mentions in a space

Path: CloudRaker Workspace API › Ontology

`GET /spaces/{spaceId}/ontology/entities/{entityId}`

Returns `{ entity, mentions }` for a single entity in a space's graph. `entity` (or `null` if the id is unknown in this space) carries `id`, `type`, `name`, `key`. `mentions` are the grounded occurrences: each has `fileId`, `text`, and best-effort grounding — `page` + `bbox` (`{x,y,width,height}`) for documents, or `startSeconds`/`endSeconds`/`speaker` for audio transcripts (fields are `null` when not applicable). Requires `space:read` on `:spaceId`; missing access surfaces as a 404.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`getSpaceOntologyEntity.path.spaceId`; string, required)
- `entityId` (`getSpaceOntologyEntity.path.entityId`; string, required)

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces/<spaceId>/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/spaces/<spaceId>/ontology/entities/<entityId>"

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

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

print(response.text)
```

## Responses

### 200

The entity (or null) and its grounded mentions.

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


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