The Qdrant Cloud API uses both authentication and authorization to control access to resources and operations.
Authentication verifies the identity of the caller. The API supports multiple authentication methods through different actor types.
The API defines several actor types that represent different ways of authenticating:
ACTOR_TYPE_USER: Users authenticated via identity providers (Auth0)ACTOR_TYPE_MANAGEMENT_KEY: Programmatic access keys (API keys) tied to an account, not a specific userACTOR_TYPE_SERVICE_ACCOUNT: Service accounts for machine-to-machine communication (internal platform use)
Methods can specify authentication requirements using the requires_authentication option:
rpc PublicMethod(PublicRequest) returns (PublicResponse) {
option (common.v1.requires_authentication) = false; // No authentication required
}- Default behavior: Authentication is required (
requires_authentication = true) - Public endpoints: Set
requires_authentication = falsefor endpoints that don't require authentication
Methods can restrict which actor types are allowed using the supported_actor_types option:
rpc UserOnlyMethod(UserRequest) returns (UserResponse) {
option (common.v1.supported_actor_types) = ACTOR_TYPE_USER; // Only users allowed
}When supported_actor_types is not specified, all authenticated actor types are allowed (subject to authorization checks).
Some methods must only be callable from an interactive session (a real user login), not from long-lived or delegated credentials that still authenticate as ACTOR_TYPE_USER (personal API keys, OAuth-delegated agents). Use the interactive_only option:
rpc CreateManagementKey(CreateManagementKeyRequest) returns (CreateManagementKeyResponse) {
option (common.v1.permissions) = "write:management_keys";
option (common.v1.interactive_only) = true;
}supported_actor_types = USERrestricts who the principal is (user vs management key vs service account).interactive_only = truerestricts how that user authenticated (session vs personal API key / OAuth-delegated token).
When interactive_only is unset or false, any credential that passes actor-type and permission checks is allowed. The API gateway enforces this once it receives credential_type from IAM.
CredentialType (in common.v1) describes how the caller authenticated. It is shared by the public Caller message (e.g. on event.v1.Event) and by the internal IAM AuthenticateResponse, so audit and authorization use one enum:
| Value | Meaning |
|---|---|
CREDENTIAL_TYPE_SESSION |
Interactive console / first-party JWT |
CREDENTIAL_TYPE_MANAGEMENT_KEY |
Account management API key |
CREDENTIAL_TYPE_PERSONAL_API_KEY |
User-owned personal API key |
CREDENTIAL_TYPE_SERVICE |
Service-to-service credential |
CREDENTIAL_TYPE_OAUTH_DELEGATED |
Short-lived delegated JWT after OAuth token exchange |
Caller may also carry credential_id, acting_client_id (OAuth client / CIMD URL), scope (OauthScope: READ_ONLY / MANAGE, OAuth wire strings read-only / manage), and platform_handler when relevant. These fields are optional so legacy events remain valid.
OauthScope is the shared access-class enum for delegated OAuth credentials (on Caller and IAM AuthenticateResponse / ExchangeToken). It is not a permission verb and not an RBAC resource scope.
PlatformHandler (in common.v1) identifies which API gateway / protocol handler received the request. It is carried on Caller for audit attribution:
| Value | Meaning |
|---|---|
PLATFORM_HANDLER_GRPC |
Native gRPC |
PLATFORM_HANDLER_GRPC_GATEWAY |
gRPC-Gateway (HTTP/JSON transcoding) |
PLATFORM_HANDLER_CONNECT |
Connect protocol |
PLATFORM_HANDLER_MCP |
Model Context Protocol |
PLATFORM_HANDLER_GRAPHQL |
GraphQL |
PLATFORM_HANDLER_UNKNOWN |
Handler could not be determined |
The API uses a permission-based authorization system for RPC methods. Each method defines the required permissions that must be satisfied for access to be granted.
Permissions are granted in the scope of an account, based on the roles that a user has assigned for that account.
Methods specify their authorization requirements using the permissions option in their Protocol Buffer definitions:
rpc CreateCluster(CreateClusterRequest) returns (CreateClusterResponse) {
option (common.v1.permissions) = "write:clusters";
}A method can require multiple permissions by specifying multiple permissions options. By default, when multiple permissions are specified, all permissions must be satisfied (AND behavior):
rpc ListHybridCloudEnvironments(ListHybridCloudEnvironmentsRequest) returns (ListHybridCloudEnvironmentsResponse) {
option (common.v1.permissions) = "read:hybrid_cloud_environments";
option (common.v1.permissions) = "write:clusters";
// Both permissions are required (AND behavior by default)
}Some methods may have empty permissions ("") when the method doesn't require permission checks or when the authorization logic is custom and handled in the implementation:
rpc GetUserInfo(GetUserInfoRequest) returns (GetUserInfoResponse) {
option (common.v1.permissions) = ""; // no permission check or custom logic in implementation
}Note: Empty permissions does not mean no authentication is required. Authentication is still required by default (requires_authentication = true) unless explicitly disabled.
By default, when multiple permissions are specified, all permissions must be satisfied (AND behavior). To enable OR behavior where any of the specified permissions grants access, set requires_all_permissions = false:
rpc ListHybridCloudEnvironments(ListHybridCloudEnvironmentsRequest) returns (ListHybridCloudEnvironmentsResponse) {
option (common.v1.requires_all_permissions) = false;
option (common.v1.permissions) = "read:hybrid_cloud_environments";
option (common.v1.permissions) = "write:clusters";
}To avoid breaking changes when modifying a method's permission requirements, follow this migration pattern:
-
Add the new permission alongside the existing one and enable OR behavior:
rpc ExampleMethod(ExampleRequest) returns (ExampleResponse) { option (common.v1.requires_all_permissions) = false; option (common.v1.permissions) = "old:permission"; // existing option (common.v1.permissions) = "new:permission"; // new } -
Update clients to use the new permission while the old one is still accepted.
-
Remove the old permission and restore AND behavior (if multiple permissions remain):
rpc ExampleMethod(ExampleRequest) returns (ExampleResponse) { option (common.v1.permissions) = "new:permission"; }
This approach ensures backward compatibility during the transition period.