Notification sender API
Base URL: https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v2
The Notification Senders v2 API (version v2).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL https://api.asgardeo.io/t/{root-organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{root-organization-name}/oauth2/authorize
Email Senders
Get a list of email senders
GET /notification-senders/email
This API provides the capability to retrieve the list of email senders.
Scope(Permission) required: internal_org_notification_senders_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | EmailProviderList |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Create an email sender
POST /notification-senders/email
This API provides the capability to create an email sender. If the 'name' is not defined, 'EmailPublisher' is taken as the default name. For SMTP-based providers, Basic and Client Credential authentication types are supported. For HTTP-based providers, Basic, Client Credential, Bearer Token, API Key, Password Credential, and None authentication types are supported.
Scope(Permission) required: internal_org_notification_senders_create
Request body: application/json
Schema: one of: HTTPBasedEmailSenderAdd, SMTPBasedEmailSenderAdd
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful Response | one of: HTTPBasedEmailSenderAdd, SMTPBasedEmailSenderAdd |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
409 | Conflict | Error |
500 | Server Error | Error |
Retrieve an email sender by name
GET /notification-senders/email/{sender-name}
This API provides the capability to retrieve an email sender by name.
The URL encoded email sender name is used as sender-name.
Scope(Permission) required: internal_org_notification_senders_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sender-name | path | string | Yes | name of the email sender |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | EmailSender |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Update an email sender
PUT /notification-senders/email/{sender-name}
This API provides the capability to update an email sender by name.
The URL encoded email sender name is used as sender-name.
Scope(Permission) required: internal_org_notification_senders_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sender-name | path | string | Yes | name of the email sender |
Request body (required): application/json
Schema: one of: HTTPBasedEmailSenderUpdate, SMTPBasedEmailSenderUpdate
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | EmailSender |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Delete an email sender by name
DEL /notification-senders/email/{sender-name}
This API provides the capability to delete an email sender by name.
The URL encoded email sender name is used as sender-name.
Scope(Permission) required: internal_org_notification_senders_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sender-name | path | string | Yes | name of the email sender |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
SMS Senders
Get a list of SMS senders
GET /notification-senders/sms
This API provides the capability to retrieve a list of SMS notification senders.
Scope(Permission) required: internal_org_notification_senders_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | SMSProviderList |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Create a SMS sender
POST /notification-senders/sms
This API provides the capability to create a SMS sender.
If the 'name' is not defined, 'SMSPublisher' is taken as the default name.
Scope(Permission) required: internal_org_notification_senders_create
Request body: application/json
Schema: SMSSenderAdd
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ||
provider | string | Yes | |
providerURL | string | ||
key | string | ||
secret | string | ||
authentication | Authentication | The type of authentication required by the action's endpoint. The following options are supported:
| |
sender | string | ||
contentType | string | Yes | Allowed values: |
properties | array of Properties |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful Response | SMSSender |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
409 | Conflict | Error |
500 | Server Error | Error |
Get a SMS sender by name
GET /notification-senders/sms/{sender-name}
This API provides the capability to retrieve a SMS notification sender by name.
The URL encoded SMS sender name is used as sender-name.
Scope(Permission) required: internal_org_notification_senders_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sender-name | path | string | Yes | name of the SMS sender |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | SMSSender |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Update a SMS sender
PUT /notification-senders/sms/{sender-name}
This API provides the capability to update a SMS Sender.
The URL encoded SMS sender name is used as sender-name.
Scope(Permission) required: internal_org_notification_senders_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sender-name | path | string | Yes | name of the SMS sender |
Request body (required): application/json
Schema: SMSSenderUpdateRequest
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
provider | string | Yes | |
providerURL | string | ||
key | string | ||
secret | string | ||
authentication | Authentication | The type of authentication required by the action's endpoint. The following options are supported:
| |
sender | string | ||
contentType | string | Yes | Allowed values: |
properties | array of Properties |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | SMSSender |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Delete a SMS sender by name
DEL /notification-senders/sms/{sender-name}
This API provides the capability to delete a SMS sender by name.
The URL encoded SMS sender name is used as sender-name.
Scope(Permission) required: internal_org_notification_senders_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sender-name | path | string | Yes | name of the SMS sender |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Push Senders
Get a list of push notification senders
GET /notification-senders/push
This API provides the capability to retrieve the list of push notification senders.
Scope(Permission) required: internal_org_notification_senders_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | PushProviderList |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Create a push notification sender
POST /notification-senders/push
This API provides the capability to create a push notification sender.
If the 'name' is not defined, 'PushPublisher' is taken as the default name.
Scope(Permission) required: internal_org_notification_senders_create
Request body: application/json
Schema: PushSenderAdd
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ||
provider | string | Yes | |
properties | array of Properties | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful Response | PushSender |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
409 | Conflict | Error |
500 | Server Error | Error |
Get a push sender by name
GET /notification-senders/push/{sender-name}
This API provides the capability to retrieve a push notification sender by name.
The URL encoded push sender name is used as sender-name.
Scope(Permission) required: internal_org_notification_senders_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sender-name | path | string | Yes | name of the push sender |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | PushSender |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Update a push notification sender
PUT /notification-senders/push/{sender-name}
This API provides the capability to update a push notification sender.
The URL encoded push notification sender name is used as sender-name.
Scope(Permission) required: internal_org_notification_senders_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sender-name | path | string | Yes | name of the push notification sender |
Request body (required): application/json
Schema: PushSenderUpdateRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
provider | string | Yes | |
properties | array of Properties | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | PushSender |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Delete a push notification sender by name
DEL /notification-senders/push/{sender-name}
This API provides the capability to delete a push notification sender by name.
The URL encoded push notification sender name is used as sender-name.
Scope(Permission) required: internal_org_notification_senders_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sender-name | path | string | Yes | name of the push notification sender |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
405 | Method Not Allowed. | Error |
500 | Server Error | Error |
Schemas
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
traceId | string |
SMTPBasedEmailSenderAdd
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ||
provider | string | ||
smtpServerHost | string | ||
smtpPort | integer | ||
fromAddress | string | ||
authType | string | ||
properties | array of Properties |
HTTPBasedEmailSenderAdd
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ||
provider | string | ||
providerURL | string | ||
authType | string | ||
properties | array of Properties |
SMSSenderAdd
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ||
provider | string | Yes | |
providerURL | string | ||
key | string | ||
secret | string | ||
authentication | Authentication | The type of authentication required by the action's endpoint. The following options are supported:
| |
sender | string | ||
contentType | string | Yes | Allowed values: |
properties | array of Properties |
PushSenderAdd
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ||
provider | string | Yes | |
properties | array of Properties | Yes |
EmailSender
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
provider | string | ||
providerURL | string | ||
smtpServerHost | string | ||
smtpPort | integer | ||
fromAddress | string | ||
authType | string | ||
properties | array of Properties |
SMSSender
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
provider | string | Yes | |
providerURL | string | Yes | |
key | string | ||
secret | string | ||
sender | string | ||
authentication | Authentication | The type of authentication required by the action's endpoint. The following options are supported:
| |
contentType | string | Yes | Allowed values: |
properties | array of Properties |
PushSender
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
provider | string | Yes | |
properties | array of Properties |
SMSSenderUpdateRequest
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
provider | string | Yes | |
providerURL | string | ||
key | string | ||
secret | string | ||
authentication | Authentication | The type of authentication required by the action's endpoint. The following options are supported:
| |
sender | string | ||
contentType | string | Yes | Allowed values: |
properties | array of Properties |
SMTPBasedEmailSenderUpdate
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
provider | string | ||
smtpServerHost | string | ||
smtpPort | integer | ||
fromAddress | string | ||
authType | string | ||
properties | array of Properties |
HTTPBasedEmailSenderUpdate
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
provider | string | ||
providerURL | string | ||
authType | string | ||
properties | array of Properties |
PushSenderUpdateRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
provider | string | Yes | |
properties | array of Properties | Yes |
EmailProviderList
Type: array of EmailSender
PushProviderList
Type: array of PushSender
Authentication
Type: object
The type of authentication required by the action's endpoint. The following options are supported:
- CLIENT_CREDENTIAL: Client credential authentication.
{ "type": "CLIENT_CREDENTIAL", "properties": { "clientId": "3e172dd2-901b-43a9-a26a-728466795f01", "clientSecret": "83cdc120-ccf6-4163-a4a8-c1ba3e872daa", "tokenEndpoint": "https://custom.sms.provider/auth/token", "scopes": "send_scope" } } - BASIC: Username and password based authentication.
{ "type": "BASIC", "properties": { "username": "admin", "password": "admin123" } } - BEARER: Token based based authentication.
{ "type": "BEARER", "properties": { "token": "83cdc120-ccf6-4163-a4a8-c1ba3e872daa" } } - API_KEY: API key secret based authentication.
{ "type": "API_KEY", "properties": { "header": "auth", "value": "123ert45" } } - PASSWORD_CREDENTIAL: OAuth 2.0 resource owner password credentials authentication.
{ "type": "PASSWORD_CREDENTIAL", "properties": { "clientId": "3e172dd2-901b-43a9-a26a-728466795f01", "clientSecret": "83cdc120-ccf6-4163-a4a8-c1ba3e872daa", "username": "admin", "password": "admin123", "tokenEndpoint": "https://custom.sms.provider/auth/token", "scopes": "send_scope" } }
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Allowed values: |
properties | object | Authentication properties specific to the selected type. |
Was this page helpful?