---
title: "Get the org-wide aggregate knowledge 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 the org-wide aggregate knowledge graph

Path: CloudRaker Workspace API › Ontology

`GET /ontology`

Returns the organization-wide graph that aggregates entities and relations across every space: `{ entities, edges }`, in the same shape as the space graph. Optional `?limit=` (1-2000) caps entities. Because it spans all spaces, it is available only to organization administrators; other callers get 403.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `limit` (`getOrgOntology.query.limit`; integer, optional) — Maximum entities returned, 1–2000. There is no cursor.
  - min 1; max 2000; default `500`

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The organization-wide aggregate graph.

#### Example

```json
{
  "entities": [
    {
      "id": "string",
      "type": "organization",
      "name": "Acme Inc",
      "key": "string",
      "mentionCount": -9007199254740991
    }
  ],
  "edges": [
    {
      "sourceId": "string",
      "targetId": "string",
      "relation": "employed_by",
      "fileId": "string"
    }
  ]
}
```

- `entities` (`getOrgOntology.response.200.entities`; array<object>, required)
  - `id` (`getOrgOntology.response.200.entities.id`; string, required)
  - `type` (`getOrgOntology.response.200.entities.type`; string, required)
    - example `"organization"`
  - `name` (`getOrgOntology.response.200.entities.name`; string, required)
    - example `"Acme Inc"`
  - `key` (`getOrgOntology.response.200.entities.key`; string | null, required) — Normalized dedupe key.
  - `mentionCount` (`getOrgOntology.response.200.entities.mentionCount`; integer, required)
    - min -9007199254740991; max 9007199254740991
- `edges` (`getOrgOntology.response.200.edges`; array<object>, required)
  - `sourceId` (`getOrgOntology.response.200.edges.sourceId`; string, required)
  - `targetId` (`getOrgOntology.response.200.edges.targetId`; string, required)
  - `relation` (`getOrgOntology.response.200.edges.relation`; string, required)
    - example `"employed_by"`
  - `fileId` (`getOrgOntology.response.200.edges.fileId`; string, required) — The file the relation was observed in.


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