Inference connections API#

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

Method

Path

Summary

GET

/v1/inference-connections

List inference connections

POST

/v1/inference-connections

Create inference connection

GET

/v1/inference-connections/{connection_id}/deployments

List connection deployments

POST

/v1/inference-connections/{connection_id}/disable

Disable inference connection

GET

/v1/inference-connections/{connection_id}/model-catalog

Get connection model catalog

GET

/v1/inference-connections/{connection_id}/models

List connection models

POST

/v1/inference-connections/{connection_id}/rotate

Rotate inference credential

POST

/v1/inference-connections/{connection_id}/verify

Verify inference connection

GET

/v1/inference-gateways

List inference gateways

GET /v1/inference-connections#

List inference connections

Lists the caller’s inference connections. Credentials are never returned.

  • Operation: connections_v1_inference_connections_get

  • Access: bearer token or console session cookie

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

ConnectionList

422

Validation Error

HTTPValidationError

POST /v1/inference-connections#

Create inference connection

Creates a connection to a gateway, or to a custom gateway, with an API key the caller supplies. The key is stored server-side and never returned. Requires connections:manage; returns 422 for a malformed credential.

  • Operation: create_connection_v1_inference_connections_post

  • Access: bearer token or console session cookie

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

ConnectionCreate

yes

Responses

Status

Meaning

Body

201

Created

ConnectionMetadata

422

Validation Error

HTTPValidationError

GET /v1/inference-connections/{connection_id}/deployments#

List connection deployments

Lists the caller’s deployments that use a connection, with their status and the connection revision each bound.

  • Operation: deployments_v1_inference_connections__connection_id__deployments_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/inference-connections/<connection_id>/deployments" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

connection_id

path

string

yes

The inference connection ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

ConnectionDeployments

422

Validation Error

HTTPValidationError

POST /v1/inference-connections/{connection_id}/disable#

Disable inference connection

Disables a connection so new launches cannot use it. Requires connections:manage.

  • Operation: disable_connection_v1_inference_connections__connection_id__disable_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/inference-connections/<connection_id>/disable" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

connection_id

path

string

yes

The inference connection ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

ConnectionMetadata

422

Validation Error

HTTPValidationError

GET /v1/inference-connections/{connection_id}/model-catalog#

Get connection model catalog

Lists the connection’s models with capability metadata. refresh=true bypasses the cached list.

  • Operation: model_catalog_v1_inference_connections__connection_id__model_catalog_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/inference-connections/<connection_id>/model-catalog" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

connection_id

path

string

yes

The inference connection ID.

refresh

query

boolean

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

ModelCatalog

422

Validation Error

HTTPValidationError

GET /v1/inference-connections/{connection_id}/models#

List connection models

Lists the model IDs a connection offers. refresh=true bypasses the cached list.

  • Operation: models_v1_inference_connections__connection_id__models_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/inference-connections/<connection_id>/models" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

connection_id

path

string

yes

The inference connection ID.

refresh

query

boolean

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

ModelList

422

Validation Error

HTTPValidationError

POST /v1/inference-connections/{connection_id}/rotate#

Rotate inference credential

Replaces a connection’s API key and returns its metadata. Requires connections:manage.

  • Operation: rotate_connection_v1_inference_connections__connection_id__rotate_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/inference-connections/<connection_id>/rotate" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

connection_id

path

string

yes

The inference connection 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

ConnectionRotate

yes

Responses

Status

Meaning

Body

200

OK

ConnectionMetadata

422

Validation Error

HTTPValidationError

POST /v1/inference-connections/{connection_id}/verify#

Verify inference connection

Checks a connection by refreshing its model list with the stored key, and returns its metadata. Requires connections:manage.

  • Operation: verify_v1_inference_connections__connection_id__verify_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/inference-connections/<connection_id>/verify" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

connection_id

path

string

yes

The inference connection ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

ConnectionMetadata

422

Validation Error

HTTPValidationError

GET /v1/inference-gateways#

List inference gateways

Lists the inference gateways this deployment supports, with their public metadata.

  • Operation: gateways_v1_inference_gateways_get

  • Access: bearer token or console session cookie

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

GatewayList

422

Validation Error

HTTPValidationError