Embeddings API#

Served by: GeoNeMo Toolkit API. Schemas are on the schemas page.

Method

Path

Summary

GET

/v1/embedding-default

Get default embedding

PUT

/v1/embedding-default

Set default embedding

GET

/v1/embedding-models

List embedding models

GET

/v1/embedding-setups

List embedding setups

POST

/v1/embedding-setups

Create embedding setup

PUT

/v1/embedding-setups/{setup_id}

Update embedding setup

DELETE

/v1/embedding-setups/{setup_id}

Delete embedding setup

POST

/v1/embedding-setups/{setup_id}/default

Set default embedding setup

GET /v1/embedding-default#

Get default embedding

Returns the caller’s default embedding selection, or null when none is set.

  • Operation: default_v1_embedding_default_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/embedding-default" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

EmbeddingDefault

422

Validation Error

HTTPValidationError

PUT /v1/embedding-default#

Set default embedding

Sets the caller’s default embedding selection, or clears it when embedding is null. The selection is checked against the available models.

  • Operation: set_default_v1_embedding_default_put

  • Access: bearer token or console session cookie

curl -X PUT "https://geonemo.example.com/v1/embedding-default" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

EmbeddingDefault

yes

Responses

Status

Meaning

Body

200

OK

EmbeddingDefault

422

Validation Error

HTTPValidationError

GET /v1/embedding-models#

List embedding models

Lists the embedding models this deployment offers. With include_availability=true each model also reports whether it can be used now and, if not, why.

  • Operation: models_v1_embedding_models_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/embedding-models" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

include_availability

query

boolean

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

EmbeddingModelList

422

Validation Error

HTTPValidationError

GET /v1/embedding-setups#

List embedding setups

Lists the caller’s saved embedding setups.

  • Operation: list_setups_v1_embedding_setups_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/embedding-setups" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

EmbeddingSetupList

422

Validation Error

HTTPValidationError

POST /v1/embedding-setups#

Create embedding setup

Saves a new embedding setup for the caller. Returns 409 when the name already exists or the per-user limit is reached.

  • Operation: create_setup_v1_embedding_setups_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/embedding-setups" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

EmbeddingSetupWrite

yes

Responses

Status

Meaning

Body

201

Created

EmbeddingSetup

422

Validation Error

HTTPValidationError

PUT /v1/embedding-setups/{setup_id}#

Update embedding setup

Replaces one of the caller’s setups. Returns 404 when it is not theirs and 409 on a name clash or when the model contract changed.

  • Operation: update_setup_v1_embedding_setups__setup_id__put

  • Access: bearer token or console session cookie

curl -X PUT "https://geonemo.example.com/v1/embedding-setups/<setup_id>" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

setup_id

path

string (uuid)

yes

The embedding setup ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

EmbeddingSetupWrite

yes

Responses

Status

Meaning

Body

200

OK

EmbeddingSetup

422

Validation Error

HTTPValidationError

DELETE /v1/embedding-setups/{setup_id}#

Delete embedding setup

Deletes one of the caller’s setups and returns the remaining list.

  • Operation: delete_setup_v1_embedding_setups__setup_id__delete

  • Access: bearer token or console session cookie

curl -X DELETE "https://geonemo.example.com/v1/embedding-setups/<setup_id>" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

setup_id

path

string (uuid)

yes

The embedding setup ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

EmbeddingSetupList

422

Validation Error

HTTPValidationError

POST /v1/embedding-setups/{setup_id}/default#

Set default embedding setup

Makes one of the caller’s setups their default and returns the updated list. Returns 409 when the setup is unavailable.

  • Operation: default_setup_v1_embedding_setups__setup_id__default_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/embedding-setups/<setup_id>/default" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

setup_id

path

string (uuid)

yes

The embedding setup ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

EmbeddingSetupList

422

Validation Error

HTTPValidationError