Agent definitions API#

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

Method

Path

Summary

GET

/v1/agent-definitions

List agent definitions

GET

/v1/agent-definitions/editor-options

Get definition editor options

GET

/v1/agent-definitions/{agent_id}

Get agent definition

PUT

/v1/agent-definitions/{agent_id}

Save agent definition

POST

/v1/agent-definitions/{agent_id}/copy

Copy agent definition

POST

/v1/agent-definitions/{agent_id}/download

Download agent definition

GET

/v1/agent-definitions/{agent_id}/editor-options

Get agent editor options

GET

/v1/agent-definitions/{agent_id}/launch-requirements

Get launch requirements

PATCH

/v1/agent-definitions/{agent_id}/profile

Set agent lifecycle state

GET /v1/agent-definitions#

List agent definitions

Lists agent definitions. Archived ones are left out unless include_archived is true.

  • Operation: list_agent_definitions_v1_agent_definitions_get

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

include_archived

query

boolean

X-GeoNemo-Project-ID

header

string

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

Responses

Status

Meaning

Body

200

OK

AgentDefinitionList

422

Validation Error

HTTPValidationError

GET /v1/agent-definitions/editor-options#

Get definition editor options

Lists the model IDs, skills and tools that can be chosen when editing any agent definition.

  • Operation: definition_options_v1_agent_definitions_editor_options_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-definitions/editor-options" \
  -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

DefinitionOptions

422

Validation Error

HTTPValidationError

GET /v1/agent-definitions/{agent_id}#

Get agent definition

Returns an agent’s definition for its current release, or for release_id when given. Returns 404 for an unknown agent.

  • Operation: get_agent_definition_v1_agent_definitions__agent_id__get

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

agent_id

path

string

yes

The agent ID.

release_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

AgentDefinition

422

Validation Error

HTTPValidationError

PUT /v1/agent-definitions/{agent_id}#

Save agent definition

Saves an edited definition by registering it as a new local release of the agent, and returns the resulting definition. Returns 404 for an unknown agent.

  • Operation: save_agent_definition_v1_agent_definitions__agent_id__put

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

agent_id

path

string

yes

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

SaveAgentDefinitionRequest

yes

Responses

Status

Meaning

Body

200

OK

AgentDefinition

422

Validation Error

HTTPValidationError

POST /v1/agent-definitions/{agent_id}/copy#

Copy agent definition

Creates a new agent from an existing one, with the given name and specialization, and returns the copy (201).

  • Operation: copy_agent_definition_v1_agent_definitions__agent_id__copy_post

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

agent_id

path

string

yes

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

CopyAgentDefinitionRequest

yes

Responses

Status

Meaning

Body

201

Created

AgentDefinition

422

Validation Error

HTTPValidationError

POST /v1/agent-definitions/{agent_id}/download#

Download agent definition

Returns the edited definition as a YAML file with the profile metadata as leading comments. Nothing is saved.

  • Operation: download_agent_definition_v1_agent_definitions__agent_id__download_post

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

agent_id

path

string

yes

The agent ID.

release_id

query

string or null

X-GeoNemo-Project-ID

header

string

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

Request body

Content type

Schema

Required

application/json

SaveAgentDefinitionRequest

yes

Responses

Status

Meaning

Body

200

OK

422

Validation Error

HTTPValidationError

GET /v1/agent-definitions/{agent_id}/editor-options#

Get agent editor options

Lists the same editor options for one agent, optionally for a specific release. Returns 404 for an unknown agent.

  • Operation: agent_definition_options_v1_agent_definitions__agent_id__editor_options_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-definitions/<agent_id>/editor-options" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

agent_id

path

string

yes

The agent ID.

release_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

AgentDefinitionOptions

422

Validation Error

HTTPValidationError

GET /v1/agent-definitions/{agent_id}/launch-requirements#

Get launch requirements

Lists the tools of an agent, or of one release, that require the launch to select imagery collections.

  • Operation: launch_requirements_v1_agent_definitions__agent_id__launch_requirements_get

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/agent-definitions/<agent_id>/launch-requirements" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

agent_id

path

string

yes

The agent ID.

release_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

AgentLaunchRequirements

422

Validation Error

HTTPValidationError

PATCH /v1/agent-definitions/{agent_id}/profile#

Set agent lifecycle state

Sets an agent’s lifecycle state. New deployments and instances require an active agent. Returns 404 for an unknown agent.

  • Operation: update_definition_profile_v1_agent_definitions__agent_id__profile_patch

  • Access: bearer token or console session cookie

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

Parameters

Name

In

Type

Required

Description

agent_id

path

string

yes

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

DefinitionProfileRequest

yes

Responses

Status

Meaning

Body

200

OK

Agent

422

Validation Error

HTTPValidationError