> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cloudraker.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cloudraker.com/_mcp/server.

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

GET https://api.cloudraker.com/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.

Reference: https://docs.cloudraker.com/api/cloud-raker-api/workspace/ontology/get-org-ontology-entity

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: CloudRaker API
  version: 1.0.0
paths:
  /ontology/entities/{entityId}:
    get:
      operationId: get-org-ontology-entity
      summary: Get one entity and its mentions from the org-wide graph
      description: >-
        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.
      tags:
        - ontology
      parameters:
        - name: entityId
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The entity (or null) and its mentions across the organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OntologyEntityDetail'
servers:
  - url: https://api.cloudraker.com
    description: Production
  - url: https://api.staging.raker.one
    description: Staging
  - url: https://api.dev.raker.one
    description: Development
components:
  schemas:
    OntologyEntityDetailEntity:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        name:
          type: string
        key:
          type:
            - string
            - 'null'
      required:
        - id
        - type
        - name
        - key
      description: Null when the id is unknown in this graph.
      title: OntologyEntityDetailEntity
    OntologyBBox:
      type: object
      properties:
        x:
          type: number
          format: double
        'y':
          type: number
          format: double
        width:
          type: number
          format: double
        height:
          type: number
          format: double
      required:
        - x
        - 'y'
        - width
        - height
      description: Normalized 0–1, origin top-left.
      title: OntologyBBox
    OntologyMention:
      type: object
      properties:
        fileId:
          type: string
        page:
          type:
            - integer
            - 'null'
          description: 0-based page, for documents.
        bbox:
          oneOf:
            - $ref: '#/components/schemas/OntologyBBox'
            - type: 'null'
        text:
          type: string
        startSeconds:
          type:
            - number
            - 'null'
          format: double
          description: For audio transcripts.
        endSeconds:
          type:
            - number
            - 'null'
          format: double
        speaker:
          type:
            - string
            - 'null'
      required:
        - fileId
        - page
        - bbox
        - text
        - startSeconds
        - endSeconds
        - speaker
      title: OntologyMention
    OntologyEntityDetail:
      type: object
      properties:
        entity:
          oneOf:
            - $ref: '#/components/schemas/OntologyEntityDetailEntity'
            - type: 'null'
          description: Null when the id is unknown in this graph.
        mentions:
          type: array
          items:
            $ref: '#/components/schemas/OntologyMention'
      required:
        - entity
        - mentions
      title: OntologyEntityDetail
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "entity": {
    "id": "org-9f8b7c6d-1234-4a56-b789-0a1b2c3d4e5f",
    "type": "organization",
    "name": "Acme Corporation",
    "key": "acme-corp"
  },
  "mentions": [
    {
      "fileId": "file-20240401-xyz123",
      "page": 3,
      "bbox": {
        "x": 0.15,
        "y": 0.25,
        "width": 0.3,
        "height": 0.1
      },
      "text": "Acme Corporation announced a new product line.",
      "startSeconds": null,
      "endSeconds": null,
      "speaker": null
    },
    {
      "fileId": "audio-20240315-abc789",
      "page": null,
      "bbox": null,
      "text": "The CEO of Acme Corporation spoke at the conference.",
      "startSeconds": 45.2,
      "endSeconds": 52.7,
      "speaker": "Speaker 1"
    }
  ]
}
```

**SDK Code**

```python
import requests

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

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.cloudraker.com/ontology/entities/entityId';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

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

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.cloudraker.com/ontology/entities/entityId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.cloudraker.com/ontology/entities/entityId")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.cloudraker.com/ontology/entities/entityId', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/ontology/entities/entityId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/ontology/entities/entityId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```