Skip to main content
Version: v5.2

Sender

The Sender API allows you to list, create, update, search by ID, and delete notification senders.

List senders

Endpoints

GET notificationsvc/api/v1/sender

Request

Request body

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
_countIntegerNumber of templates. Default is 10.Required
_offsetIntegerPosition in list of templates to begin listingRequired
_nameStringName of subscriptionRequired
_namespaceStringProject namespaceOptional
Request body example

None

Response

Codes

CodeDescription
200Success
400Bad Request
404Not Found

Response

{
_offset?: integer
_pageSize?: integer
_total?: integer
_list: {
_id?: string
_namespaces?: string[]
_name: string
_description?: string
_createdAt?: string
_updatedAt?: string
_version?: integer
_transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]
_email: {
_address: string
_displayName?: string
}
_webhook: {
_userAgent?: string
}
_templates: {
}
_redirects: {
}
}[]
}

Create sender

Endpoints

POST notificationsvc/api/v1/sender

Request

Request body

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional

Request body example

{
_description?: string
_transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]
_email: {
_address: string
_displayName?: string
}
_webhook: {
_userAgent?: string
}
_templates: {
}
_redirects: {
}
_name: string
_namespaces?: string[]
}

Response

Codes

CodeDescription
200Success
400Bad Request
404Not Found

Response

{
_id?: string
_namespaces?: string[]
_name: string
_description?: string
_createdAt?: string
_updatedAt?: string
_version?: integer
_transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]
_email: {
_address: string
_displayName?: string
}
_webhook: {
_userAgent?: string
}
_templates: {
}
_redirects: {
}
}

Get sender by ID

Endpoints

GET notificationsvc/api/v1/sender/{id}

Request

Request body

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
Request body example

None

Response

Codes

CodeDescription
200Success
400Bad Request
404Not Found

Response

{
_id?: string
_namespaces?: string[]
_name: string
_description?: string
_createdAt?: string
_updatedAt?: string
_version?: integer
_transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]
_email: {
_address: string
_displayName?: string
}
_webhook: {
_userAgent?: string
}
_templates: {
}
_redirects: {
}
}

Update sender by ID

Endpoints

PUT notificationsvc/api/v1/sender/{id}

Request

Request body

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
_versionIntegerVersion of groupOptional

Request body example

{
_description?: string
_transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]
_email: {
_address: string
_displayName?: string
}
_webhook: {
_userAgent?: string
}
_templates: {
}
_redirects: {
}
}

Response

Codes

CodeDescription
200Success
400Bad Request
404Not Found

Response

{
_id?: string
_namespaces?: string[]
_name: string
_description?: string
_createdAt?: string
_updatedAt?: string
_version?: integer
_transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]
_email: {
_address: string
_displayName?: string
}
_webhook: {
_userAgent?: string
}
_templates: {
}
_redirects: {
}
}

Delete sender by ID

Endpoints

DELETE notificationsvc/api/v1/sender/{id}

Request

Request body

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
_versionStringVersion to apply
Request body example

Response

Codes

CodeDescription
200Success
400Bad Request
404Not Found

Response