Skip to main content

kobana inbox workspaces

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

CommandHTTPDescription
workspaces listGET /v1/workspacesList workspaces
workspaces createPOST /v1/workspacesCreate workspace
workspaces updatePUT /v1/workspacesCreate or update workspace
workspaces getGET /v1/workspaces/{id}Get workspace
workspaces deleteDELETE /v1/workspaces/{id}Delete workspace

workspaces list​

List workspaces

kobana inbox workspaces list [OPTIONS]

GET /v1/workspaces

Scope: the organization of the token workspace — every live workspace of that organization is reachable; one outside it is a 404. A token whose workspace has no organization only sees itself. Keyset-paginated with typed filters.

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, slug. Without it the order is created_at descending. Values: created_at, updated_at, label, slug.
sort_orderstringnoasc (default) or desc. Needs sort_by. Values: asc, desc.
sourcestringnoEquality. Also source[in]=a,b.
slugstringnoEquality. Also slug[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.

workspaces create​

Create workspace

kobana inbox workspaces create [OPTIONS]

POST /v1/workspaces

Requires a src=system token. The workspace is created inside the token organization. Scope: the organization of the token workspace — every live workspace of that organization is reachable; one outside it is a 404. A token whose workspace has no organization only sees itself.

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
sourcestringyesValues: kobana_app, kobana_billing, kobana_inbox, kobana_agent, kobana_finance, kobana_legal, kobana_team.
labelstringyes
external_idstringnoOptional. When omitted the server defaults external_id to the generated internal id.
slugstringnoOptional. Lowercase dasherized slug, unique within the organization, used as the middle segment of inbox addresses. Capped at 20 characters so the composed local part fits SMTP's 64-character limit. When omitted, the server derives it from the dasherized label.
monthly_cost_limitnumberno
monthly_emails_limitintegerno
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.workspaces.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).

workspaces update​

Create or update workspace

kobana inbox workspaces update [OPTIONS]

PUT /v1/workspaces

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 workspace exactly as POST would and returns 201. Scope: the organization of the token workspace — every live workspace of that organization is reachable; one outside it is a 404. A token whose workspace has no organization only sees itself. Requires a src=system token; external_id cannot be changed on a matched workspace (409).

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
sourcestringyesValues: kobana_app, kobana_billing, kobana_inbox, kobana_agent, kobana_finance, kobana_legal, kobana_team.
labelstringyes
external_idstringnoMatch on the source-system id. Also stored on the record when it is created.
slugstringnoOptional. Lowercase dasherized slug, unique within the organization, used as the middle segment of inbox addresses. Capped at 20 characters so the composed local part fits SMTP's 64-character limit. When omitted, the server derives it from the dasherized label.
monthly_cost_limitnumberno
monthly_emails_limitintegerno
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.workspaces.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).

workspaces get​

Get workspace

kobana inbox workspaces get [ID] [OPTIONS]

GET /v1/workspaces/{id}

Accepts either the internal UUID or the resource external_id. Scope: the organization of the token workspace — every live workspace of that organization is reachable; one outside it is a 404. A token whose workspace has no organization only sees itself.

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.

workspaces delete​

Delete workspace

kobana inbox workspaces delete [ID] [OPTIONS]

DELETE /v1/workspaces/{id}

Accepts either the internal UUID or the resource external_id. Scope: the organization of the token workspace — every live workspace of that organization is reachable; one outside it is a 404. A token whose workspace has no organization only sees itself. Requires a src=system token.

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.