dots.v2.vectorDatabases.byId().credentials.get()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.vectorDatabases.byId(id).credentials.get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | VectordbGetVectorDBAdminCredentialsResponse>

Description

To retrieve the admin credentials for a vector database, send a GET request to /v2/vector-databases/{id}/credentials. The response body contains the user_id and api_token for the admin user provisioned on the cluster.

Parameters

id string required

Example: "example string"

ID of the vector database.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.vectorDatabases
    .byId("\"example string\"").credentials.get();

Response Example

Show Response Example
{
  "api_token": "example string",
  "user_id": "123e4567-e89b-12d3-a456-426614174000"
}

More Information

See /v2/vector-databases/{id}/credentials in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.