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

# API Reference

> Getting started with SafeDep API

SafeDep supports a [gRPC](https://grpc.io/) API with
a [ConnectRPC](https://connectrpc.com/) facade allowing clients to use both
gRPC over HTTP/2 and JSON over HTTP/1.1 based clients.

Authentication uses [OAuth 2.0](https://oauth.net/2/) or API keys, depending on the plane:

* Control plane APIs (e.g. creating policy) require OAuth 2.0 authentication.
* Data plane APIs (e.g. getting policy data) accept API keys.

Control plane APIs are for management tooling; data plane APIs are for security tools that use or integrate with SafeDep.

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/governance/cloud/authentication">
    API key and OAuth/JWT authentication for the API.
  </Card>

  <Card title="API Hosts" icon="server" href="/reference/endpoints">
    Control plane, data plane, and other SafeDep hosts.
  </Card>

  <Card title="Insights API with TypeScript" icon="code" href="/reference/insights-api-typescript">
    Query package insights from a TypeScript client.
  </Card>

  <Card title="SafeDep Cloud SQL" icon="database" href="/reference/sql-query">
    Query your tenant data with SQL.
  </Card>
</CardGroup>
