Test VectorDB Connection
Endpoint
POST /apiops/projects/{projectName}/vector-dbs/{vectorDbName}/test-connection/
Authentication
Requires a Personal API Access Token.
Header
Authorization: Bearer YOUR_TOKEN
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer {token} | Yes |
| Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| vectorDbName | string | Yes | Vector DB connection name (must equal name in the body when provided; falls back to the path value when blank) |
Query Parameters
None
Request Body
The body is the full connection entity — same shape as Create: it must include "_class": "vector-db" and a nested transport object with its own "family" discriminator. Because the test runs against the values in the body (nothing is loaded from storage), you must supply the real secrets — a blank secret is NOT substituted from a stored connection.
Full JSON Body Example - JDBC transport (pgvector)
{
"_class": "vector-db",
"name": "pgvector-primary",
"dbType": "PGVECTOR",
"defaultCollectionName": "documents",
"embeddingDimension": 1536,
"distanceMetric": "COSINE",
"transport": {
"family": "jdbc",
"connectTimeoutMs": 5000,
"jdbcUrl": "jdbc:postgresql://db.internal:5432/vectors",
"username": "apinizer",
"password": "s3cr3t-db-pass"
}
}
Full JSON Body Example - HTTP transport (Qdrant)
{
"_class": "vector-db",
"name": "qdrant-cloud",
"dbType": "QDRANT",
"defaultCollectionName": "documents",
"embeddingDimension": 1536,
"distanceMetric": "COSINE",
"transport": {
"family": "http",
"endpoint": "https://xyz.eu-central.aws.cloud.qdrant.io:6333",
"apiVersion": "v1",
"authScheme": "API_KEY_HEADER",
"authHeaderName": "api-key",
"apiKey": "qdrant-api-key-value"
}
}
Request Body Fields
The fields are identical to Create VectorDB Connection (top-level connection fields plus the polymorphic transport sub-document). The only difference is that secrets must be real, plaintext values — blank secrets are not preserved from any stored connection.
| Field | Type | Required | Description |
|---|---|---|---|
| _class | string | Yes | Connection subtype discriminator — must be "vector-db" |
| name | string | No | Connection name — must match vectorDbName if provided; falls back to the path value when blank |
| dbType | enum | Yes | Vector store type (PGVECTOR, QDRANT, WEAVIATE, MILVUS, CHROMA, PINECONE, REDIS, OTHER) |
| transport | object | Yes | Polymorphic transport sub-document with the real credentials — see Create for full transport field tables |