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

# OpenMetadata SDKs & APIs

> Programmatic access to your OpenMetadata data catalog through REST APIs and native SDKs

# OpenMetadata SDKs & APIs

The OpenMetadata API provides programmatic access to all metadata in your data catalog. Build integrations, automate workflows, and manage your data assets using our REST API or native SDKs.

## Base URL

All API requests should be made to your OpenMetadata instance.

```bash Cloud theme={null}
https://{your-company}.open-metadata.org/api/v1
```

```bash Self-Hosted theme={null}
https://your-host.com/api/v1
```

## Client Libraries

Install an official SDK to interact with the OpenMetadata API in your preferred language.

> [tab] Python
>
> ```bash theme={null}
> pip install "openmetadata-ingestion~=2.1.0.0"
> ```
>
> The Python SDK provides a high-level, type-safe API with built-in support for ingestion, lineage, and all entity operations.

> [tab] Java
>
> ```xml theme={null}
> <dependency>
>   <groupId>org.open-metadata</groupId>
>   <artifactId>openmetadata-sdk</artifactId>
>   <version>2.1.0.1</version>
> </dependency>
> ```
>
> The Java SDK integrates OpenMetadata into your JVM environment to provision and manage resources.

> [tab] Go
>
> ```bash theme={null}
> go get github.com/open-metadata/openmetadata-sdk/openmetadata-go-client
> ```
>
> A robust, type-safe Go API that integrates with the OpenMetadata backend.

## Quick Start

Get started with a simple API call to list tables in your catalog:

```python Python theme={null}
from metadata.ingestion.ometa.ometa_api import OpenMetadata
from metadata.generated.schema.entity.services.connections.metadata.openMetadataConnection import (
    OpenMetadataConnection,
)
from metadata.generated.schema.security.client.openMetadataJWTClientConfig import (
    OpenMetadataJWTClientConfig,
)

# Configure connection
server_config = OpenMetadataConnection(
    hostPort="https://your-company.open-metadata.org/api",
    authProvider="openmetadata",
    securityConfig=OpenMetadataJWTClientConfig(
        jwtToken="your-jwt-token"
    ),
)

# Create client
metadata = OpenMetadata(server_config)

# List tables
tables = metadata.list_all_entities(entity=Table)
for table in tables:
    print(f"{table.fullyQualifiedName.root}: {getattr(table.description, 'root', table.description)}")
```

```java Java theme={null}
import org.openmetadata.sdk.client.OpenMetadataClient;
import org.openmetadata.sdk.config.OpenMetadataConfig;
import org.openmetadata.sdk.models.ListParams;

// Configure connection
OpenMetadataConfig config = OpenMetadataConfig.builder()
    .serverUrl("https://your-company.open-metadata.org/api")
    .accessToken("your-jwt-token")
    .build();

OpenMetadataClient client = new OpenMetadataClient(config);

// List tables
var tables = client.tables().list(new ListParams().setLimit(10));
for (var table : tables.getData()) {
    System.out.println(table.getFullyQualifiedName());
}
```

```bash cURL theme={null}
curl -X GET "https://your-company.open-metadata.org/api/v1/tables?limit=10" \
  -H "Authorization: Bearer your-jwt-token" \
  -H "Content-Type: application/json"
```

## Authentication

All API requests require authentication using a JWT Bearer token.

```bash Authorization Header theme={null}
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
```

> [!NOTE]
>
> **Note**: The **Bots** tile under **Settings** is only visible to users with Admin privileges. If you don't see it, ask your organization's OpenMetadata Admin to generate a bot token for you or grant you Admin access.

You can obtain a token through **Bot Tokens** (for service accounts via **Settings > Bots**) or **Personal Access Tokens** (via your **Profile > Access Tokens**).

> [card] [Authentication Guide](https://docs.open-metadata.org/v2.1.x/api-reference/authentication.md)
>
> Learn more about authentication methods, token management, and security configuration.

## Error Handling

The API uses conventional HTTP response codes:

| Code | Description |
| - | - |
| `200` | Success |
| `201` | Created |
| `400` | Bad Request — Invalid parameters |
| `401` | Unauthorized — Invalid or missing token |
| `403` | Forbidden — Insufficient permissions |
| `404` | Not Found — Resource doesn't exist |
| `409` | Conflict — Resource already exists |
| `429` | Too Many Requests — Rate limit exceeded |
| `500` | Internal Server Error |

## Explore the API

> [card] [Data Assets](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets.md)
>
> Manage tables, dashboards, pipelines, topics, ML models, and more.

> [card] [Discovery](https://docs.open-metadata.org/v2.1.x/api-reference/discovery.md)
>
> Search and discover metadata across your catalog.

> [card] [Lineage](https://docs.open-metadata.org/v2.1.x/api-reference/lineage/index.md)
>
> Query, create, delete, and export lineage. Send OpenLineage events individually or in batches.

> [card] [Data Contracts](https://docs.open-metadata.org/v2.1.x/api-reference/data-contracts.md)
>
> Define and validate data contracts for your assets.

> [card] [Teams & Users](https://docs.open-metadata.org/v2.1.x/api-reference/teams-and-users.md)
>
> Manage users, teams, and organizational structure.

> [card] [Data Governance](https://docs.open-metadata.org/v2.1.x/api-reference/governance.md)
>
> Manage domains, glossaries, classifications, and tags.

> [card] [Data Quality](https://docs.open-metadata.org/v2.1.x/api-reference/data-quality.md)
>
> Create and manage test suites, test cases, and quality metrics.

## Need Help?

> [card] [Support](mailto:support@getcollate.io)
>
> Contact our support team

> [card] [Community](https://slack.open-metadata.org)
>
> Join the OpenMetadata Slack community


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.