Skip to main content

kobana dunning notification-channels

Commands of kobana dunning notification-channels. Every global option (Global options) applies here.

CommandHTTPDescription
notification-channels listGET /v1/notification-channelsList notification channels
notification-channels createPOST /v1/notification-channelsCreate notification channel
notification-channels getGET /v1/notification-channels/{id}Get notification channel
notification-channels updatePATCH /v1/notification-channels/{id}Update notification channel
notification-channels deleteDELETE /v1/notification-channels/{id}Delete notification channel

notification-channels list​

List notification channels

kobana dunning notification-channels list [OPTIONS]

GET /v1/notification-channels

Returns the organization channels. Credentials are never included.

Query parameters

NameTypeRequiredDescription
pageintegernoPage number (starts at 1).
per_pageintegernoItems per page (max 100).
channel_typestringnoFilter by channel type. Values: email, sms, whatsapp, voice, manual.
providerstringnoFilter by provider.
activated_atstringnoFilter by activation: true (active) | false/null (inactive). Values: true, false, null.
sortstringnoSort field: channel_type | provider | created_at | updated_at. Values: channelType, provider, createdAt, updatedAt.
orderstringnoSort direction: asc | desc. Values: asc, desc.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200Paginated list of channels.
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

notification-channels create​

Create notification channel

kobana dunning notification-channels create [OPTIONS]

POST /v1/notification-channels

Creates a channel. Credentials are encrypted at rest before saving. One channel per type + provider combination.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Request body

NameTypeRequiredDescription
channel_typestringyesChannel type: email | sms | whatsapp | voice | manual. Values: email, sms, whatsapp, voice, manual.
providerstringyesChannel provider (e.g. sendgrid, twilio, meta).
credentialsobjectyesProvider credentials (e.g. api_key/api_secret). Encrypted at rest on write and NEVER returned on read. Write-only.
settingsobjectnoNon-sensitive channel settings (free-form JSON).
cost_per_messagenumbernoCost per sent message (decimal string).
activated_atstring (date-time)noActivation date; null = inactive channel.
external_idstringnoChannel identifier in the integrator external system.
custom_dataobjectnoCustom data (JSON) defined by the integrator.
custom_metadataobjectnoUser metadata (free-form JSON object, read-write). See custom_data for the legacy field on core resources.
tagsarray<string>noFree-form tags for organization.

More fields and nested objects: kobana schema dunning.notification-channels.create.

Responses

HTTPDescription
201Channel created (without credentials).
400Invalid request (validation error).
404Resource not found or outside your organization.
409Conflict with the current resource state (or reused idempotency key).
413Request body larger than 2 MB.

notification-channels get​

Get notification channel

kobana dunning notification-channels get [ID] [OPTIONS]

GET /v1/notification-channels/{id}

Returns a channel by ID. Credentials are never included.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200Channel found.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

notification-channels update​

Update notification channel

kobana dunning notification-channels update [ID] [OPTIONS]

PATCH /v1/notification-channels/{id}

Updates a channel (partial). If credentials is sent, it is re-encrypted; omitting keeps the current secret.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Request body

NameTypeRequiredDescription
channel_typestringnoChannel type: email | sms | whatsapp | voice | manual. Values: email, sms, whatsapp, voice, manual.
providerstringnoChannel provider (e.g. sendgrid, twilio, meta).
credentialsobjectnoProvider credentials (e.g. api_key/api_secret). Encrypted at rest on write and NEVER returned on read. Write-only.
settingsobjectnoNon-sensitive channel settings (free-form JSON).
cost_per_messagenumbernoCost per sent message (decimal string).
activated_atstring (date-time)noActivation date; null = inactive channel.
external_idstringnoChannel identifier in the integrator external system.
custom_dataobjectnoCustom data (JSON) defined by the integrator.
custom_metadataobjectnoUser metadata (free-form JSON object, read-write). See custom_data for the legacy field on core resources.
tagsarray<string>noFree-form tags for organization.
custom_metadata_modestringnoHow the custom_metadata sent is reconciled with the stored value: replace (default) replaces the whole object; merge deep-merges — nested objects merge, scalars and arrays replace the key, and a key sent as null is stored as null (not removed). Update only. Values: replace, merge.

More fields and nested objects: kobana schema dunning.notification-channels.update.

Responses

HTTPDescription
200Channel updated.
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

notification-channels delete​

Delete notification channel

kobana dunning notification-channels delete [ID] [OPTIONS]

DELETE /v1/notification-channels/{id}

Removes the channel (soft delete).

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
204Channel removed.
404Resource not found or outside your organization.
413Request body larger than 2 MB.