Retrieval API#

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

Method

Path

Summary

GET

/v1/retrieval/contracts

Get retrieval contracts

GET

/v1/retrieval/corpora

List corpora

POST

/v1/retrieval/corpora

Create corpus

GET

/v1/retrieval/corpora/{corpus_id}

Get corpus

GET

/v1/retrieval/corpora/{corpus_id}/artifacts

List corpus artifacts

GET

/v1/retrieval/corpora/{corpus_id}/artifacts/{artifact_id}

Get corpus artifact

POST

/v1/retrieval/corpora/{corpus_id}/imports

Import precomputed vectors

GET

/v1/retrieval/corpora/{corpus_id}/jobs

List corpus jobs

POST

/v1/retrieval/corpora/{corpus_id}/jobs

Submit retrieval job

GET

/v1/retrieval/corpora/{corpus_id}/jobs/{job_id}

Get retrieval job

POST

/v1/retrieval/corpora/{corpus_id}/jobs/{job_id}/actions

Act on retrieval job

GET

/v1/retrieval/corpora/{corpus_id}/maintenance

Get corpus maintenance

PUT

/v1/retrieval/corpora/{corpus_id}/maintenance

Configure corpus maintenance

POST

/v1/retrieval/corpora/{corpus_id}/maintenance/actions

Pause or resume maintenance

PUT

/v1/retrieval/corpora/{corpus_id}/metadata

Update corpus metadata

POST

/v1/retrieval/corpora/{corpus_id}/prepared-inputs

Submit prepared inputs

GET

/v1/retrieval/corpora/{corpus_id}/sample

Sample corpus artifacts

GET

/v1/retrieval/corpora/{corpus_id}/snapshots

List corpus snapshots

POST

/v1/retrieval/corpora/{corpus_id}/snapshots

Create corpus snapshot

GET

/v1/retrieval/corpora/{corpus_id}/sources

List corpus sources

GET

/v1/retrieval/corpora/{corpus_id}/summary

Get corpus summary

GET

/v1/retrieval/directory

List corpus directory

POST

/v1/retrieval/search

Search retrieval corpora

POST

/v1/retrieval/sources/resolve

Resolve retrieval source

GET /v1/retrieval/contracts#

Get retrieval contracts

Returns the retrieval profiles, embedding spaces and limits this deployment enables.

  • Operation: contracts_v1_retrieval_contracts_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/contracts" \
  -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

RetrievalContracts

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora#

List corpora

Lists corpora, paged by after and limit (at most 100), optionally for one source_key.

  • Operation: corpora_v1_retrieval_corpora_get

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

after

query

string or null

source_key

query

string or null

limit

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

RetrievalCorpusPage

422

Validation Error

HTTPValidationError

POST /v1/retrieval/corpora#

Create corpus

Creates a corpus: either a fixed set of captured sources, or a maintained corpus the service keeps up to date.

  • Operation: create_v1_retrieval_corpora_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/retrieval/corpora" \
  -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

CorpusCreate

yes

Responses

Status

Meaning

Body

201

Created

CorpusView

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}#

Get corpus

Returns one corpus. Requires read access to it.

  • Operation: corpus_v1_retrieval_corpora__corpus_id__get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

CorpusView

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}/artifacts#

List corpus artifacts

Lists a corpus’s artifacts, optionally for one source_key or space_id, paged by after and limit (at most 100).

  • Operation: artifacts_v1_retrieval_corpora__corpus_id__artifacts_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/artifacts" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

source_key

query

string or null

after

query

string or null

limit

query

integer

space_id

query

string or null

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

RetrievalArtifactPage

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}/artifacts/{artifact_id}#

Get corpus artifact

Returns one retained artifact of a corpus. With require_current=true it fails unless the artifact is current. Returns 503 when original artifact reads are unavailable.

  • Operation: artifact_v1_retrieval_corpora__corpus_id__artifacts__artifact_id__get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/artifacts/<artifact_id>" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

artifact_id

path

string

yes

The artifact ID.

require_current

query

boolean

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

RetrievalArtifact

422

Validation Error

HTTPValidationError

POST /v1/retrieval/corpora/{corpus_id}/imports#

Import precomputed vectors

Queues a job that imports precomputed vectors into an embedding space, recording the producer and its revision. Returns 202 with the job. The body’s idempotency_key makes a retry return the same job. Returns 503 when external vector imports are not enabled.

  • Operation: import_vectors_v1_retrieval_corpora__corpus_id__imports_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/imports" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus 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

VectorImportCreate

yes

Responses

Status

Meaning

Body

202

Accepted

RetrievalJobView

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}/jobs#

List corpus jobs

Lists a corpus’s retrieval jobs, paged by after and limit (at most 100).

  • Operation: jobs_v1_retrieval_corpora__corpus_id__jobs_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/jobs" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

after

query

string or null

limit

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

RetrievalJobPage

422

Validation Error

HTTPValidationError

POST /v1/retrieval/corpora/{corpus_id}/jobs#

Submit retrieval job

Queues a job that makes one source searchable, or keeps its originals, in one embedding space. Returns 202 with the job; poll the job for progress. The body’s idempotency_key makes a retry return the same job.

  • Operation: submit_v1_retrieval_corpora__corpus_id__jobs_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/jobs" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus 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

RetrievalJobCreate

yes

Responses

Status

Meaning

Body

202

Accepted

RetrievalJobView

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}/jobs/{job_id}#

Get retrieval job

Returns a job’s state, stage, error and the artifacts it produced.

  • Operation: job_v1_retrieval_corpora__corpus_id__jobs__job_id__get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/jobs/<job_id>" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

job_id

path

string

yes

The retrieval job ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

RetrievalJobView

422

Validation Error

HTTPValidationError

POST /v1/retrieval/corpora/{corpus_id}/jobs/{job_id}/actions#

Act on retrieval job

Pauses, resumes or cancels a job. retry_ambiguous retries work whose outcome is unknown.

  • Operation: action_v1_retrieval_corpora__corpus_id__jobs__job_id__actions_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/jobs/<job_id>/actions" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

job_id

path

string

yes

The retrieval job 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

RetrievalJobAction

yes

Responses

Status

Meaning

Body

200

OK

RetrievalJobView

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}/maintenance#

Get corpus maintenance

Returns a corpus’s maintenance configuration with its version, pause state, phase and last completed scan.

  • Operation: maintenance_v1_retrieval_corpora__corpus_id__maintenance_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/maintenance" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

MaintenanceView

422

Validation Error

HTTPValidationError

PUT /v1/retrieval/corpora/{corpus_id}/maintenance#

Configure corpus maintenance

Sets what a maintained corpus follows: the catalog or GKB selection and filters, one binding of execution setup per embedding space, and the scan interval in seconds (1 to 86400).

  • Operation: configure_maintenance_v1_retrieval_corpora__corpus_id__maintenance_put

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus 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

MaintenanceConfigure

yes

Responses

Status

Meaning

Body

200

OK

MaintenanceView

422

Validation Error

HTTPValidationError

POST /v1/retrieval/corpora/{corpus_id}/maintenance/actions#

Pause or resume maintenance

Pauses or resumes a corpus’s maintenance and returns its updated state.

  • Operation: maintenance_action_v1_retrieval_corpora__corpus_id__maintenance_actions_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/maintenance/actions" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus 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

MaintenanceAction

yes

Responses

Status

Meaning

Body

200

OK

MaintenanceView

422

Validation Error

HTTPValidationError

PUT /v1/retrieval/corpora/{corpus_id}/metadata#

Update corpus metadata

Replaces a corpus’s display name, description and tags and returns its summary.

  • Operation: metadata_v1_retrieval_corpora__corpus_id__metadata_put

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus 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

CorpusMetadata

yes

Responses

Status

Meaning

Body

200

OK

CorpusSummary

422

Validation Error

HTTPValidationError

POST /v1/retrieval/corpora/{corpus_id}/prepared-inputs#

Submit prepared inputs

Queues a job from prepared inputs the caller supplies instead of having the service read the source. Returns 202 with the job. Returns 503 when prepared inputs are not enabled.

  • Operation: submit_prepared_v1_retrieval_corpora__corpus_id__prepared_inputs_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/prepared-inputs" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus 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

PreparedImportCreate

yes

Responses

Status

Meaning

Body

202

Accepted

RetrievalJobView

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}/sample#

Sample corpus artifacts

Returns up to limit (at most 32) artifacts from one embedding space, chosen deterministically by seed.

  • Operation: sample_v1_retrieval_corpora__corpus_id__sample_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/sample" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

space_id

query

string

yes

seed

query

string

limit

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

RetrievalSample

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}/snapshots#

List corpus snapshots

Lists a corpus’s snapshots, paged by after and limit (at most 100).

  • Operation: snapshots_v1_retrieval_corpora__corpus_id__snapshots_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/snapshots" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

after

query

string or null

limit

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

RetrievalSnapshotPage

422

Validation Error

HTTPValidationError

POST /v1/retrieval/corpora/{corpus_id}/snapshots#

Create corpus snapshot

Pins the corpus’s current state for a retrieval profile and returns the snapshot ID. Searches that name the snapshot give repeatable results. Returns 503 when the profile is not enabled.

  • Operation: snapshot_v1_retrieval_corpora__corpus_id__snapshots_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/snapshots" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus 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

SnapshotCreate

yes

Responses

Status

Meaning

Body

201

Created

SnapshotView

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}/sources#

List corpus sources

Lists a corpus’s sources, paged by after and limit (at most 100).

  • Operation: sources_v1_retrieval_corpora__corpus_id__sources_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/sources" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

after

query

string or null

limit

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

RetrievalSourcePage

422

Validation Error

HTTPValidationError

GET /v1/retrieval/corpora/{corpus_id}/summary#

Get corpus summary

Returns a corpus’s metadata, membership, vector counts, per-space details, readiness and job counts, with the actions the caller may take.

  • Operation: summary_v1_retrieval_corpora__corpus_id__summary_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/summary" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

corpus_id

path

string

yes

The retrieval corpus ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

CorpusSummary

422

Validation Error

HTTPValidationError

GET /v1/retrieval/directory#

List corpus directory

Lists corpus summaries with filters for search text, membership kind, model family, model and readiness, sorted by name, vector count or freshness, and paged by after and limit (at most 100). Also returns totals across the directory.

  • Operation: directory_v1_retrieval_directory_get

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

after

query

string or null

limit

query

integer

search

query

string

membership

query

string or null

family

query

string or null

model

query

string or null

readiness

query

string or null

sort

query

string

descending

query

boolean

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

CorpusDirectory

422

Validation Error

HTTPValidationError

POST /v1/retrieval/search#

Search retrieval corpora

Runs up to 8 named queries (vector, text, content or retained artifact) against a corpus with a profile, filters and a result limit (default 20, at most 500). snapshot_id repeats an earlier state. Read-only despite using POST; needs only services:read. Returns 503 when the profile is not enabled.

  • Operation: search_v1_retrieval_search_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/retrieval/search" \
  -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

RetrievalSearch

yes

Responses

Status

Meaning

Body

200

OK

RetrievalResult

422

Validation Error

HTTPValidationError

POST /v1/retrieval/sources/resolve#

Resolve retrieval source

Resolves a catalog, GKB or dataset source identity to a retrieval source without reading payloads or calling a model. collection is required for catalog and dataset sources. Read-only despite using POST.

  • Operation: resolve_source_v1_retrieval_sources_resolve_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/retrieval/sources/resolve" \
  -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

SourceResolve

yes

Responses

Status

Meaning

Body

200

OK

ResolvedSource

422

Validation Error

HTTPValidationError