Commands

The /commands endpoint allows you to execute various utility commands including those used to manage embeddings.

Embeddings

Get Embeddings Status

Endpoint: /commands/embeddings/<EMBEDDING_TYPE>/status

Method: GET

Requirements: User must have project:settings_read permission.

Headers

HeaderValue
AuthorizationBearer <YOUR_JWT_TOKEN>

Path Parameters

ParameterData TypeDescription
EMBEDDING_TYPE (Required)stringThe type of embedding. Can be text, image, or properties.

Example Response

{
  "status": "idle",
  "embeddingRunsInProgress": 0,
  "totalRunsInProgress": 0,
  "embeddingsModels": [
    "text-embedding-ada-002"
  ],
  "vectorIndex": {
    "status": "READY",
    "name": "vsearch_text",
    "type": "hnsw"
  }
}

Code Example

Get Embeddings Status

curl --location --request GET \
  'https://api.vertesia.io/api/v1/commands/embeddings/text/status' \
  --header 'Authorization: Bearer <YOUR_JWT_TOKEN>'

Activate Embeddings

Endpoint: /commands/embeddings/<EMBEDDING_TYPE>/enable

Method: POST

Requirements: User must have project:settings_write permission.

Headers

HeaderValue
AuthorizationBearer <YOUR_JWT_TOKEN>

Path Parameters

ParameterData TypeDescription
EMBEDDING_TYPE (Required)stringThe type of embedding. Can be text, image, or properties.

Input Parameters

ParameterData TypeDescription
environment (Required)stringThe ID of the environment to use for generating embeddings.
max_tokens (Required)numberThe maximum number of tokens to use for generating embeddings.
dimensions (Required)numberThe number of dimensions to use for the embedding vectors.
model (Required)stringThe ID of the model to use for generating embeddings.

Example Request

{
  "environment": "<ENVIRONMENT_ID>",
  "max_tokens": 500,
  "dimensions": 1536,
  "model": "text-embedding-ada-002"
}

Example Response

{
  "status": "success",
  "message": "Embeddings enabled"
}

Code Example

Activate Embeddings

curl --location --request POST \
  'https://api.vertesia.io/api/v1/commands/embeddings/text/enable' \
  --header 'Authorization: Bearer <YOUR_JWT_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "environment": "<ENVIRONMENT_ID>",
  "max_tokens": 500,
  "dimensions": 1536,
  "model": "text-embedding-ada-002"
}'

Deactivate Embeddings

Endpoint: /commands/embeddings/<EMBEDDING_TYPE>/disable

Method: POST

Requirements: User must have project:settings_write permission.

Headers

HeaderValue
AuthorizationBearer <YOUR_JWT_TOKEN>

Path Parameters

ParameterData TypeDescription
EMBEDDING_TYPE (Required)stringThe type of embedding. Can be text, image, or properties.

Example Response

{
  "status": "success",
  "message": "Embeddings disabled"
}

Code Example

Deactivate Embeddings

curl --location --request POST \
  'https://api.vertesia.io/api/v1/commands/embeddings/text/disable' \
  --header 'Authorization: Bearer <YOUR_JWT_TOKEN>'

Recalculate Embeddings

Endpoint: /commands/embeddings/<EMBEDDING_TYPE>/recalculate

Method: POST

Requirements: User must have project:settings_write permission.

Headers

HeaderValue
AuthorizationBearer <YOUR_JWT_TOKEN>

Path Parameters

ParameterData TypeDescription
EMBEDDING_TYPE (Required)stringThe type of embedding. Can be text, image, or properties.

Example Response

{
  "status": "success",
  "message": "Embeddings recalculation started"
}

Code Example

Recalculate Embeddings

curl --location --request POST \
  'https://api.vertesia.io/api/v1/commands/embeddings/text/recalculate' \
  --header 'Authorization: Bearer <YOUR_JWT_TOKEN>'

Onboarding

Initialize Samples

Endpoint: /commands/onboarding/init-samples

Method: POST

Requirements: User must have project:admin permission.

Headers

HeaderValue
AuthorizationBearer <YOUR_JWT_TOKEN>

Example Response

{
  "status": "success",
  "message": "Samples initialized"
}

Code Example

Initialize Samples

curl --location --request POST \
  'https://api.vertesia.io/api/v1/commands/onboarding/init-samples' \
  --header 'Authorization: Bearer <YOUR_JWT_TOKEN>'

Namespaces

Check Namespace Availability

Endpoint: /commands/namespaces/<NAMESPACE>/is_available

Method: GET

Requirements: User must be authenticated.

Headers

HeaderValue
AuthorizationBearer <YOUR_JWT_TOKEN>

Path Parameters

ParameterData TypeDescription
NAMESPACE (Required)stringThe namespace to check.

Example Response

{
  "available": true
}

Code Example

Check Namespace Availability

curl --location --request GET \
  'https://api.vertesia.io/api/v1/commands/namespaces/my-namespace/is_available' \
  --header 'Authorization: Bearer <YOUR_JWT_TOKEN>'

Was this page helpful?