Skip to main content

kobana inbox secrets

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

CommandHTTPDescription
secrets listGET /v1/secretsList secrets
secrets createPOST /v1/secretsCreate secret
secrets updatePUT /v1/secretsCreate or update secret
secrets getGET /v1/secrets/{id}Get secret
secrets deleteDELETE /v1/secrets/{id}Delete secret

secrets list​

List secrets

kobana inbox secrets list [OPTIONS]

GET /v1/secrets

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. The value is write-only: it is stored encrypted and is never returned by any endpoint. To rotate it, PATCH the row (or PUT by key) with a new value.

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, key. Without it the order is created_at descending. Values: created_at, updated_at, key.
sort_orderstringnoasc (default) or desc. Needs sort_by. Values: asc, desc.
keystringnoEquality. Also key[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.

secrets create​

Create secret

kobana inbox secrets create [OPTIONS]

POST /v1/secrets

Store a secret an agent workflow can reference as ${{secrets.KEY}}. A duplicate key in the workspace is refused with 409 CONFLICT. The value is write-only: it is stored encrypted and is never returned by any endpoint. To rotate it, PATCH the row (or PUT by key) with a new value.

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
keystringyes
valuestringyesStored encrypted; never returned.
notesstringno

More fields and nested objects: kobana schema inbox.secrets.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).

secrets update​

Create or update secret

kobana inbox secrets update [OPTIONS]

PUT /v1/secrets

Upsert matched by key within the caller workspace — the rotation path, no id lookup needed. Creates with 201 when the key is new, replaces the value with 200 when it exists. The value is write-only: it is stored encrypted and is never returned by any endpoint. To rotate it, PATCH the row (or PUT by key) with a new value.

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
keystringyesLookup key of the upsert.
valuestringyes
notesstringno

More fields and nested objects: kobana schema inbox.secrets.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).

secrets get​

Get secret

kobana inbox secrets get [ID] [OPTIONS]

GET /v1/secrets/{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.

secrets delete​

Delete secret

kobana inbox secrets delete [ID] [OPTIONS]

DELETE /v1/secrets/{id}

Soft-delete. Workflow steps referencing the key start failing with secret not defined from the next run on.

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.