Skip to main content

kobana inbox agents

Commands of kobana inbox agents. Every global option (Global options) applies here.

CommandHTTPDescription
agents listGET /v1/agentsList agents
agents createPOST /v1/agentsCreate agent
agents updatePUT /v1/agentsCreate or update agent
agents getGET /v1/agents/{id}Get agent
agents deleteDELETE /v1/agents/{id}Delete agent
agents versionsGET /v1/agents/{id}/versionsList agent prompt versions

agents list​

List agents

kobana inbox agents list [OPTIONS]

GET /v1/agents

Keyset-paginated. Filters are typed query params (field=value, field[op]=value); unknown filters, unsortable fields and malformed values are rejected with 400 VALIDATION_ERROR.

Query parameters

NameTypeRequiredDescription
limitintegerno
cursorstringnoOpaque cursor returned in meta.next_cursor of the previous page.
sort_bystringnoField to order by. Allowed: created_at, updated_at, label, version. Without it the order is created_at descending. Values: created_at, updated_at, label, version.
sort_orderstringnoasc (default) or desc. Needs sort_by. Values: asc, desc.
llm_modelstringnoEquality. Also llm_model[in]=a,b.
external_idstringnoEquality. Also external_id[in]=a,b.
created_atstringnoEquality. Also created_at[in]=a,b and created_at[gt|gte|lt|lte].
created_at[gte]stringno
created_at[lte]stringno
updated_atstringnoEquality. Also updated_at[in]=a,b and updated_at[gt|gte|lt|lte].
updated_at[gte]stringno
updated_at[lte]stringno

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
200Page of results.
400Body failed Zod validation. error.details carries formErrors/fieldErrors.
404Resource not found or filtered out by soft-delete.

agents create​

Create agent

kobana inbox agents create [OPTIONS]

POST /v1/agents

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Request body

NameTypeRequiredDescription
labelstringyes
llm_modelstringyes
system_messagestringyes
external_idstringnoOptional. Defaults to the generated internal id.
skills_repostring (uri)no
workflow_allowed_hostsarray<string>noHosts (exact, e.g. api.example.com) a workflow returned by this agent may send ${{secrets.*}}, ${{email.attachments.*}} or a step output derived from them to. Empty (the default) blocks every destination for those values; steps without them are unaffected.
custom_metadataobjectnoUser metadata, free-form. Send null to clear it. Max 64 KB serialized, 16 levels deep.

More fields and nested objects: kobana schema inbox.agents.create.

Responses

HTTPDescription
201Success.
400Body failed Zod validation. error.details carries formErrors/fieldErrors.
404Resource not found or filtered out by soft-delete.
409Unique constraint violated (e.g. external_id or inbox email already in use).
422Body validation that requires server-side context (e.g. inbox domain mismatch).

agents update​

Create or update agent

kobana inbox agents update [OPTIONS]

PUT /v1/agents

Upsert. Takes the same body as POST plus the lookup keys id and external_id, matched in that order. A match is updated in place and returns 200 — fields absent from the body keep their stored value. No key, or no match, creates the agent exactly as POST would and returns 201.

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Request body

NameTypeRequiredDescription
labelstringyes
llm_modelstringyes
system_messagestringyes
external_idstringnoMatch on the source-system id. Also stored on the record when it is created.
skills_repostring (uri)no
workflow_allowed_hostsarray<string>noHosts (exact, e.g. api.example.com) a workflow returned by this agent may send ${{secrets.*}}, ${{email.attachments.*}} or a step output derived from them to. Empty (the default) blocks every destination for those values; steps without them are unaffected.
custom_metadataobjectnoUser metadata, free-form. Send null to clear it. Max 64 KB serialized, 16 levels deep.
idstring (uuid)noMatch on the internal id. Checked before external_id.

More fields and nested objects: kobana schema inbox.agents.update.

Responses

HTTPDescription
200Success.
201Success.
400Body failed Zod validation. error.details carries formErrors/fieldErrors.
404Resource not found or filtered out by soft-delete.
409Unique constraint violated (e.g. external_id or inbox email already in use).
422Body validation that requires server-side context (e.g. inbox domain mismatch).

agents get​

Get agent

kobana inbox agents get [ID] [OPTIONS]

GET /v1/agents/{id}

Accepts either the internal UUID or the resource external_id.

Path arguments: id

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
200Success.
404Resource not found or filtered out by soft-delete.

agents delete​

Delete agent

kobana inbox agents delete [ID] [OPTIONS]

DELETE /v1/agents/{id}

Accepts either the internal UUID or the resource external_id.

Path arguments: id

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
200Deleted (soft delete).
404Resource not found or filtered out by soft-delete.

agents versions​

List agent prompt versions

kobana inbox agents versions [ID] [OPTIONS]

GET /v1/agents/{id}/versions

Keyset-paginated. Filters are typed query params (field=value, field[op]=value); unknown filters, unsortable fields and malformed values are rejected with 400 VALIDATION_ERROR.

Path arguments: id

Query parameters

NameTypeRequiredDescription
limitintegerno
cursorstringnoOpaque cursor returned in meta.next_cursor of the previous page.
sort_bystringnoField to order by. Allowed: created_at, version. Without it the order is version descending. Values: created_at, version.
sort_orderstringnoasc (default) or desc. Needs sort_by. Values: asc, desc.
versionintegernoEquality. Also version[in]=a,b and version[gt|gte|lt|lte].
version[gte]integerno
version[lte]integerno
created_atstringnoEquality. Also created_at[in]=a,b and created_at[gt|gte|lt|lte].
created_at[gte]stringno
created_at[lte]stringno

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
200Page of results.
400Body failed Zod validation. error.details carries formErrors/fieldErrors.
404Resource not found or filtered out by soft-delete.