mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 08:28:32 +02:00
* Add TS examples for Documentation/Concepts * Minor FAQ improvements: spelling & formatting (#318) * Minor spelling and formatting improvements in FAQ * Add unused RAM is wasted RAM quote, improve memory text * Add TypeScript version of Quickstart (#378) * Minor FAQ improvements: spelling & formatting (#318) * Minor spelling and formatting improvements in FAQ * Add unused RAM is wasted RAM quote, improve memory text * Add TS version of quickstart --------- Co-authored-by: Tim Visée <tim@visee.me> * Add TS examples to Documentation / Guides * Fix terminology * Add TS examples to Documentation / Cloud * Add TS version of bulk upload tutorial * Format tutorials with black * Move author data to [params.author] (#385) * Add TS examples for Documentation/Concepts * Add TypeScript version of Quickstart (#378) * Minor FAQ improvements: spelling & formatting (#318) * Minor spelling and formatting improvements in FAQ * Add unused RAM is wasted RAM quote, improve memory text * Add TS version of quickstart --------- Co-authored-by: Tim Visée <tim@visee.me> * Add TS examples to Documentation / Guides * Fix terminology * Add TS examples to Documentation / Cloud * Add TS version of bulk upload tutorial * Format tutorials with black --------- Co-authored-by: Tim Visée <tim@visee.me>
48 lines
1.5 KiB
Markdown
48 lines
1.5 KiB
Markdown
---
|
|
title: Authentication
|
|
weight: 30
|
|
---
|
|
|
|
# Authentication
|
|
|
|
This page shows you how to use the Qdrant Cloud Console to create a custom API key for a cluster. You will learn how to connect to your cluster using the new API key.
|
|
|
|
## Create API keys
|
|
|
|
The API key is only shown once after creation. If you lose it, you will need to create a new one.
|
|
However, we recommend rotating the keys from time to time. To create additional API keys do the following.
|
|
|
|
1. Go to the **Access** section in the Dashboard.
|
|
2. The **Access Management** list will display all available API keys.
|
|
3. Click **Create** and choose a cluster name from the dropdown menu.
|
|
> **Note:** You can create a key that provides access to multiple clusters. Simply check off which cluster in the dropdown
|
|
4. Click **OK** and retrieve your API key.
|
|
|
|
## Authenticate via SDK
|
|
|
|
Now that you have created your first cluster and key, you might want to access Qdrant Cloud from within your application.
|
|
Our official Qdrant clients for Python, TypeScript, Go, and Rust all support the API key parameter.
|
|
|
|
```bash
|
|
curl \
|
|
-X GET https://xyz-example.eu-central.aws.cloud.qdrant.io:6333 \
|
|
--header 'api-key: <provide-your-own-key>'
|
|
```
|
|
|
|
```python
|
|
from qdrant_client import QdrantClient
|
|
|
|
qdrant_client = QdrantClient(
|
|
"xyz-example.eu-central.aws.cloud.qdrant.io",
|
|
api_key="<paste-your-api-key-here>",
|
|
)
|
|
```
|
|
|
|
```typescript
|
|
import { QdrantClient } from "@qdrant/js-client-rest";
|
|
|
|
const client = new QdrantClient({
|
|
host: "xyz-example.eu-central.aws.cloud.qdrant.io",
|
|
apiKey: "<paste-your-api-key-here>",
|
|
});
|
|
``` |