mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-28 23:48:31 +02:00
* docs: Rust quick-start * docs: rust auth.md * docs: Rust /collections usage * docs: filtering Rust * docs: filtering Rust * docs: Rust /indexing * docs: Rust /payload * docs: Rust /points * docs: Rust /storage * docs: Rust /snapshots * docs: Rust /search * New line after code blocks * Add Rust imports * Functions end with semicolon, values end without it * Reformat using rustfmt * Use TokenizerType ID from type * Define score as Rust let if * Add example of update collection call, implemented in Rust client 1.7.0 * chore: hide update_collection() --------- Co-authored-by: timvisee <tim@visee.me>
1.9 KiB
1.9 KiB
title, weight
| title | weight |
|---|---|
| Authentication | 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.
- Go to the Access section in the Dashboard.
- The Access Management list will display all available API keys.
- 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
- 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, Rust, and .NET all support the API key parameter.
curl \
-X GET https://xyz-example.eu-central.aws.cloud.qdrant.io:6333 \
--header 'api-key: <provide-your-own-key>'
from qdrant_client import QdrantClient
qdrant_client = QdrantClient(
"xyz-example.eu-central.aws.cloud.qdrant.io",
api_key="<paste-your-api-key-here>",
)
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>",
});
using Qdrant.Client;
var client = new QdrantClient(
"xyz-example.eu-central.aws.cloud.qdrant.io",
https: true,
apiKey: "<paste-your-api-key-here>"
);
use qdrant_client::client::QdrantClient;
let client = QdrantClient::from_url("xyz-example.eu-central.aws.cloud.qdrant.io:6334")
.with_api_key("<paste-your-api-key-here>")
.build()
.unwrap();