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

# List Ontologies

> Retrieve all ontologies in your account

## Endpoint

```
GET https://api.intellibase.dev/api/v1/ontologies
```

## Authentication

Requires a valid API key.

## Response

<ResponseField name="ontologies" type="array">
  Array of ontology summary objects

  <Expandable title="Ontology Summary">
    <ResponseField name="id" type="string">
      Unique identifier for the ontology
    </ResponseField>

    <ResponseField name="name" type="string">
      Ontology name
    </ResponseField>

    <ResponseField name="created_at" type="string" format="datetime">
      When the ontology was created
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.intellibase.dev/api/v1/ontologies \
    -H "Authorization: Bearer ib-your-api-key"
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.intellibase.dev/api/v1/ontologies",
      headers={"Authorization": "Bearer ib-your-api-key"}
  )

  ontologies = response.json()["ontologies"]
  for ontology in ontologies:
      print(f"{ontology['name']}: {ontology['id']}")
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch(
    "https://api.intellibase.dev/api/v1/ontologies",
    {
      headers: {
        "Authorization": "Bearer ib-your-api-key"
      }
    }
  );

  const { ontologies } = await response.json();
  ontologies.forEach(ontology => {
    console.log(`${ontology.name} : ${ontology.id}`);
  });
  ```
</RequestExample>

<ResponseExample>
  ```json 200 Success theme={null}
  {
    "ontologies": [
      {
        "id": "ont-abc123",
        "name": "Software Engineering",
        "created_at": "2024-01-15T10:30:00Z"
      },
      {
        "id": "ont-def456",
        "name": "Customer Support",
        "created_at": "2024-01-10T09:00:00Z"
      }
    ]
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
    "detail": "Invalid API key"
  }
  ```
</ResponseExample>

<Info>
  This endpoint returns summary information. Use [Get Ontology](/api-reference/ontologies/get) to retrieve the complete schema.
</Info>
