Skip to main content

Catalog agents

Generated from apiome-rest/openapi.yaml (API version 1.307.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: catalog-agents · 12 operations

GET /v1/tenants/{tenant_slug}/catalog-agents​

List agents

The tenant's live agents with their model (and its deprecation) and owner (consumer_contracts:view).

Operation id: list_catalog_agents_v1_tenants__tenant_slug__catalog_agents_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list agents.application/json AgentList
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/catalog-agents​

Register an agent

Register an agent, optionally with its agent keys (consumer_contracts:create, plus api_keys:view for keys).

The agent becomes a consumer of every project its keys' toolsets reach, with a contract (source agent) holding the operations those keys may call; the graph derives one consumes edge per operation. slug is derived from name when omitted. A key must be a live agent key of the workspace that no other agent uses (409 agent-key-taken).

Operation id: create_catalog_agent_v1_tenants__tenant_slug__catalog_agents_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for register an agent.

Responses

StatusDescriptionBody
201Successful response for register an agent.application/json AgentOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/catalog-agents/{slug}​

Read an agent

One agent: model, owner, keys (prefix and status only), and the consumer it is per project.

Operation id: read_catalog_agent_v1_tenants__tenant_slug__catalog_agents__slug__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
slugpathstringyesURL-safe resource slug.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for read an agent.application/json AgentOut
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/tenants/{tenant_slug}/catalog-agents/{slug}​

Change an agent

Change an agent's name, description, runtime, model (null clears it) or status (consumer_contracts:edit).

Retiring an agent (status: retired) records empty contracts, so its consumes edges go stale.

Operation id: update_catalog_agent_v1_tenants__tenant_slug__catalog_agents__slug__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
slugpathstringyesURL-safe resource slug.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for change an agent.

Responses

StatusDescriptionBody
200Successful response for change an agent.application/json AgentOut
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/tenants/{tenant_slug}/catalog-agents/{slug}​

Delete an agent

Soft-delete an agent (consumer_contracts:delete); its contracts are emptied and its edges go stale.

Operation id: delete_catalog_agent_v1_tenants__tenant_slug__catalog_agents__slug__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
slugpathstringyesURL-safe resource slug.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
204Successful response for delete an agent.—
422Validation Errorapplication/json HTTPValidationError

Link an agent key

Add an agent key to the agent and re-derive its consumers (consumer_contracts:edit + api_keys:view).

Operation id: link_catalog_agent_key_v1_tenants__tenant_slug__catalog_agents__slug__keys__key_id__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
slugpathstringyesURL-safe resource slug.
key_idpathstringyesPath parameter identifying the key id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for link an agent key.application/json AgentOut
422Validation Errorapplication/json HTTPValidationError

Unlink an agent key

Remove an agent key from the agent (consumer_contracts:edit); what only it allowed goes stale.

Operation id: unlink_catalog_agent_key_v1_tenants__tenant_slug__catalog_agents__slug__keys__key_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
slugpathstringyesURL-safe resource slug.
key_idpathstringyesPath parameter identifying the key id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for unlink an agent key.application/json AgentOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/catalog-models​

List models

The tenant's live models with their deprecation and owner (consumer_contracts:view).

Operation id: list_catalog_models_v1_tenants__tenant_slug__catalog_models_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list models.application/json ModelList
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/catalog-models​

Register a model

Register a model: provider, name and version, hosting (api or self_hosted), data handling, deprecation.

Operation id: create_catalog_model_v1_tenants__tenant_slug__catalog_models_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for register a model.

Responses

StatusDescriptionBody
201Successful response for register a model.application/json ModelOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/catalog-models/{slug}​

Read a model

One model with the live agents that run on it.

Operation id: read_catalog_model_v1_tenants__tenant_slug__catalog_models__slug__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
slugpathstringyesURL-safe resource slug.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for read a model.application/json ModelOut
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/tenants/{tenant_slug}/catalog-models/{slug}​

Change a model

Change a model (consumer_contracts:edit); deprecatedAt shows on every agent that runs on it.

Operation id: update_catalog_model_v1_tenants__tenant_slug__catalog_models__slug__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
slugpathstringyesURL-safe resource slug.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for change a model.

Responses

StatusDescriptionBody
200Successful response for change a model.application/json ModelOut
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/tenants/{tenant_slug}/catalog-models/{slug}​

Delete a model

Soft-delete a model (consumer_contracts:delete); agents that ran on it show no model.

Operation id: delete_catalog_model_v1_tenants__tenant_slug__catalog_models__slug__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
slugpathstringyesURL-safe resource slug.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
204Successful response for delete a model.—
422Validation Errorapplication/json HTTPValidationError

Schemas used​

AgentInput​

Register an agent.

PropertyTypeRequiredDescription
slugstring or nullnoDerived from name when omitted.
namestringyesHuman-readable name.
descriptionstring or nullnoFree-text description.
runtimestring or nullnoFramework or host (LangGraph, a Lambda, …).
modelstring or nullnoThe slug of the model it runs on.
keyIdsarray of stringnoAgent keys (AGX-3.1) the agent uses.

AgentList​

The tenant's live agents.

PropertyTypeRequiredDescription
agentsarray of AgentOutyesAgents.

AgentOut​

An agent.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
slugstringyesURL-safe identifier.
namestringyesHuman-readable name.
descriptionstring or nullnoFree-text description.
runtimestring or nullnoRuntime.
statusstringyesStatus.
modelAgentModelRef or nullnoModel.
ownerEntityOwnerRef or nullnoOwner.
keysarray of AgentKeyRefnoKeys.
consumersarray of AgentConsumerRefnoConsumers.
usageHrefstringnoThe agent usage page.
createdAtstring (date-time) or nullnoCreated At.
updatedAtstring (date-time) or nullnoUpdated At.

AgentPatch​

Change an agent; an omitted field is kept, model: null clears the model.

PropertyTypeRequiredDescription
namestring or nullnoHuman-readable name.
descriptionstring or nullnoFree-text description.
runtimestring or nullnoRuntime.
modelstring or nullnoModel.
statusstring or nullnoactive or retired; a retired agent consumes nothing.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

ModelInput​

Register a model.

PropertyTypeRequiredDescription
slugstring or nullnoDerived from name when omitted.
namestring or nullnoDisplay name; defaults to modelName.
providerstringyesAnthropic, OpenAI, Mistral, an internal team…
modelNamestringyesModel Name.
modelVersionstring or nullnoModel Version.
hostingstringnoapi (a provider's API) or self_hosted.
dataHandlingstring or nullnoWhat the provider retains, where data is processed, opt-outs.
deprecatedAtstring (date-time) or nullnoWhen the model is (or was) deprecated.

ModelList​

The tenant's live models.

PropertyTypeRequiredDescription
modelsarray of ModelOutyesModels.

ModelOut​

A model.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
slugstringyesURL-safe identifier.
namestringyesHuman-readable name.
providerstringyesProvider.
modelNamestringyesModel Name.
modelVersionstring or nullnoModel Version.
hostingstringyesHosting.
dataHandlingstring or nullnoData Handling.
deprecatedAtstring (date-time) or nullnoDeprecated At.
deprecatedbooleanyesWhether deprecatedAt has arrived.
ownerEntityOwnerRef or nullnoOwner.
agentsarray of AgentRefnoLive agents that run on this model.
createdAtstring (date-time) or nullnoCreated At.
updatedAtstring (date-time) or nullnoUpdated At.

ModelPatch​

Change a model; an omitted field is kept, deprecatedAt: null clears the date.

PropertyTypeRequiredDescription
namestring or nullnoHuman-readable name.
providerstring or nullnoProvider.
modelNamestring or nullnoModel Name.
modelVersionstring or nullnoModel Version.
hostingstring or nullnoHosting.
dataHandlingstring or nullnoData Handling.
deprecatedAtstring (date-time) or nullnoDeprecated At.