Agent instances API#

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

Method

Path

Summary

GET

/v1/agent-instance-monitoring

List monitored agent instances

GET

/v1/agent-instance-monitoring/{instance_id}

Get monitored agent instance

GET

/v1/agent-instance-monitoring/{instance_id}/history

List monitored agent instance history

GET

/v1/agent-instances

List agent instances

POST

/v1/agent-instances

Launch agent instance

GET

/v1/agent-instances/{instance_id}

Get agent instance

PATCH

/v1/agent-instances/{instance_id}

Update agent instance

GET

/v1/agent-instances/{instance_id}/history

List agent instance history

POST

/v1/agent-instances/{instance_id}/stop

Stop agent instance

POST

/v1/agent-instances/{instance_id}/tasks

Submit instance task

POST

/v1/agent-instances/{instance_id}/wake

Wake agent instance

GET

/v1/agent-instances/{instance_id}/wake-deliveries

List wake deliveries

PUT

/v1/agent-instances/{instance_id}/wake-policy

Set wake policy

GET

/v1/agent-instances/{instance_id}/wakes

List wake history

GET /v1/agent-instance-monitoring#

List monitored agent instances

Lists instances, optionally for one agent, live ones only (live_only) or matching a search string. Paged by limit (at most 100) and offset. The monitoring path returns the same list with each instance’s failure, if any.

  • Operation: list_instances_v1_agent_instance_monitoring_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-instance-monitoring" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

agent_id

query

string or null

live_only

query

boolean

search

query

string

limit

query

integer

offset

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

MonitoredInstancePage

422

Validation Error

HTTPValidationError

GET /v1/agent-instance-monitoring/{instance_id}#

Get monitored agent instance

Returns one instance with its deployment state, and its recent resource history and activity when monitoring is available. The monitoring path also reports the instance’s failure, if any. Returns 404 for an unknown instance.

  • Operation: get_instance_v1_agent_instance_monitoring__instance_id__get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-instance-monitoring/<instance_id>" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

MonitoredInstanceDetail

422

Validation Error

HTTPValidationError

GET /v1/agent-instance-monitoring/{instance_id}/history#

List monitored agent instance history

Lists the runs an instance has performed, paged by limit (at most 100) and offset. The monitoring path also reports each run’s failure, if any. Returns 404 for an unknown instance.

  • Operation: instance_history_v1_agent_instance_monitoring__instance_id__history_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-instance-monitoring/<instance_id>/history" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance ID.

limit

query

integer

offset

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

MonitoredInstanceHistory

422

Validation Error

HTTPValidationError

GET /v1/agent-instances#

List agent instances

Lists instances, optionally for one agent, live ones only (live_only) or matching a search string. Paged by limit (at most 100) and offset. The monitoring path returns the same list with each instance’s failure, if any.

  • Operation: list_instances_v1_agent_instances_get

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

agent_id

query

string or null

live_only

query

boolean

search

query

string

limit

query

integer

offset

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

InstancePage

422

Validation Error

HTTPValidationError

POST /v1/agent-instances#

Launch agent instance

Launches an agent instance and returns 202 with it and its detail URL. The Idempotency-Key header is required: a repeat returns the original instance and reuse with a different request returns 409. The agent must be active and its release must carry the execution contract (409 otherwise). Returns 422 when required collections are missing or unavailable.

  • Operation: launch_instance_v1_agent_instances_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/agent-instances" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: <idempotency-key>" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

Idempotency-Key

header

string

yes

X-GeoNemo-Project-ID

header

string

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

Request body

Content type

Schema

Required

application/json

LaunchAgentInstanceRequest

yes

Responses

Status

Meaning

Body

202

Accepted

InstanceAccepted

422

Validation Error

HTTPValidationError

GET /v1/agent-instances/{instance_id}#

Get agent instance

Returns one instance with its deployment state, and its recent resource history and activity when monitoring is available. The monitoring path also reports the instance’s failure, if any. Returns 404 for an unknown instance.

  • Operation: get_instance_v1_agent_instances__instance_id__get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-instances/<instance_id>" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

InstanceDetail

422

Validation Error

HTTPValidationError

PATCH /v1/agent-instances/{instance_id}#

Update agent instance

Renames an instance or sets its swarm name; an empty swarm name clears it. Returns 404 for an unknown instance.

  • Operation: update_instance_v1_agent_instances__instance_id__patch

  • Access: bearer token or console session cookie

curl -X PATCH "https://geonemo.example.com/v1/agent-instances/<instance_id>" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance 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

InstanceMetadata

yes

Responses

Status

Meaning

Body

200

OK

InstanceView

422

Validation Error

HTTPValidationError

GET /v1/agent-instances/{instance_id}/history#

List agent instance history

Lists the runs an instance has performed, paged by limit (at most 100) and offset. The monitoring path also reports each run’s failure, if any. Returns 404 for an unknown instance.

  • Operation: instance_history_v1_agent_instances__instance_id__history_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-instances/<instance_id>/history" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance ID.

limit

query

integer

offset

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

InstanceHistory

422

Validation Error

HTTPValidationError

POST /v1/agent-instances/{instance_id}/stop#

Stop agent instance

Requests that an instance stop. Returns 202 once its deployment is marked stopping and its active runs are cancelled.

  • Operation: stop_instance_v1_agent_instances__instance_id__stop_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/agent-instances/<instance_id>/stop" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance ID.

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

202

Accepted

InstanceView

422

Validation Error

HTTPValidationError

POST /v1/agent-instances/{instance_id}/tasks#

Submit instance task

Queues follow-up work for an interactive instance and returns 202. The Idempotency-Key header is required. Returns 409 when the instance is not interactive or is not yet available for follow-up work.

  • Operation: submit_task_v1_agent_instances__instance_id__tasks_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/agent-instances/<instance_id>/tasks" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: <idempotency-key>" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance ID.

Idempotency-Key

header

string

yes

X-GeoNemo-Project-ID

header

string

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

Request body

Content type

Schema

Required

application/json

CreateRunRequest

yes

Responses

Status

Meaning

Body

202

Accepted

Run or AgentTask

422

Validation Error

HTTPValidationError

POST /v1/agent-instances/{instance_id}/wake#

Wake agent instance

Wakes a sleeping instance manually and returns 202 with the instance. The Idempotency-Key header is required.

  • Operation: wake_instance_v1_agent_instances__instance_id__wake_post

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/agent-instances/<instance_id>/wake" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: <idempotency-key>"

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance ID.

Idempotency-Key

header

string

yes

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

202

Accepted

InstanceView

422

Validation Error

HTTPValidationError

GET /v1/agent-instances/{instance_id}/wake-deliveries#

List wake deliveries

Lists the events considered for waking an instance and the decision made for each, paged by limit (at most 100) and offset. Events carry references and revisions, never private media locators. Returns 503 when event history is unavailable.

  • Operation: wake_deliveries_v1_agent_instances__instance_id__wake_deliveries_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-instances/<instance_id>/wake-deliveries" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance ID.

limit

query

integer

offset

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

WakeDeliveryPage

422

Validation Error

HTTPValidationError

PUT /v1/agent-instances/{instance_id}/wake-policy#

Set wake policy

Sets the events that wake a sleeping instance and returns the instance. Returns 409 when the policy conflicts with the instance’s capabilities.

  • Operation: set_wake_policy_v1_agent_instances__instance_id__wake_policy_put

  • Access: bearer token or console session cookie

curl -X PUT "https://geonemo.example.com/v1/agent-instances/<instance_id>/wake-policy" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance 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

WakePolicy

yes

Responses

Status

Meaning

Body

200

OK

InstanceView

422

Validation Error

HTTPValidationError

GET /v1/agent-instances/{instance_id}/wakes#

List wake history

Lists an instance’s wake attempts and outcomes, paged by limit (at most 100) and offset. Returns 503 when event history is unavailable.

  • Operation: wake_history_v1_agent_instances__instance_id__wakes_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-instances/<instance_id>/wakes" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

instance_id

path

string

yes

The agent instance ID.

limit

query

integer

offset

query

integer

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

WakeHistoryPage

422

Validation Error

HTTPValidationError