Skip to main content

kobana dashboards notifications

Commands of kobana dashboards notifications. Every global option (Global options) applies here.

CommandHTTPDescription
notifications statsGET /v1/notifications/statsNotification statistics
notifications listGET /v1/notificationsList notifications
notifications createPOST /v1/notificationsCreate notification
notifications sendPOST /v1/notifications/{id}/sendSend notification

notifications stats​

Notification statistics

kobana dashboards notifications stats [OPTIONS]

GET /v1/notifications/stats

Counts by status, type and channel of the notifications created in the last days days, with the delivery and read rates.

Query parameters

NameTypeRequiredDescription
daysintegernoWindow in days, 1 to 365. Default 30.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The statistics.
404Resource not found in the current organization.
422Request body failed validation.

notifications list​

List notifications

kobana dashboards notifications list [OPTIONS]

GET /v1/notifications

Lists the notifications of the workspace and the organization-wide ones, newest first.

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
typestringnoOnly this notification type. Values: api_key_expiring, account_suspended, account_activated, portal_invitation, portal_signup_verification, magic_link_portal, magic_link_dashboard, email_verification, password_reset, welcome, email_change_verification, password_verification, account_invitation, organization_welcome, dashboard_user_welcome.
channelstringnoOnly this channel. Values: email, in_app, webhook.
statusstringnoOnly this status. Values: pending, sent, delivered, failed, read, skipped.
created_afterstringnoStart of creation date range (YYYY-MM-DD).
created_beforestringnoEnd of creation date range (YYYY-MM-DD).
searchstringnoSubstring of the recipient or the subject, case-insensitive.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Page of notifications.
404Resource not found in the current organization.
422Request body failed validation.

notifications create​

Create notification

kobana dashboards notifications create [OPTIONS]

POST /v1/notifications

Renders the active template of the type with the variables, stores the notification and sends it right away — the response carries the outcome (sent, or failed with failure_reason). With a future scheduled_for it stays pending until it is due. Every creation counts toward the per-recipient manual-send limit (429).

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
typestringyesNotification type (required): picks the organization's active template, or the platform default. Values: api_key_expiring, account_suspended, account_activated, portal_invitation, portal_signup_verification, magic_link_portal, magic_link_dashboard, email_verification, password_reset, welcome, email_change_verification, password_verification, account_invitation, organization_welcome, dashboard_user_welcome.
recipientstringyesDestination address (required) — an email for the email channel.
channelstringnoDelivery channel. Defaults to email. Values: email, in_app, webhook.
portal_user_idstring (uuid)noPortal user the notification is for; must belong to the organization (else 404).
resource_typestringnoKind of the related record.
resource_idstring (uuid)noID (UUID) of the related record.
scheduled_forstring (date-time)noISO 8601 date-time to send at, instead of right away.
variablesobjectnoValues for the template variables: up to 100, names of letters, digits, _, . or -; values text (up to 10,000 characters), number, boolean or null.

More fields and nested objects: kobana schema dashboards.notifications.create.

Responses

HTTPDescription
201Notification created.
400Invalid request (missing required field, invalid type or variables).
404Resource not found in the current organization.

notifications send​

Send notification

kobana dashboards notifications send [ID] [OPTIONS]

POST /v1/notifications/{id}/send

Sends a stored notification now: the first send of a pending (scheduled) or skipped one, or a resend of a sent, delivered, read or failed one. Every call sends the email again and counts toward the per-recipient manual-send limit (429).

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The updated notification.
400Invalid request (missing required field, invalid type or variables).
404Resource not found in the current organization.
502The email provider refused the send; the reason is in the message.