Retrieve Notification Settings

GET {{base_url}}/api/v2/accounts/{{account_id}}/notifications/?type=2&state=1&slack_channel_id=C123456789

Request Params

KeyDatatypeRequiredDescription
typenumber(OPTIONAL) 1 for user email notifications, 2 for slack notifications, 4 for external email notifications
statenumber(OPTIONAL) 1 is enabled, 2 is disabled (soft deleted)
slack_channel_idstring(OPTIONAL) Get only notification settings for this channel ID
user_idnumber[Required for type 1 (email) notifications]
external_emailstring(OPTIONAL) Filter for Type 4 notifications

RESPONSES

status: OK

{"status":{"code":200,"is_success":true,"user_message":"Success!","developer_message":""},"data":[{"id":14791,"state":1,"on_cancel":[108688],"on_failure":[108688],"on_success":[108688],"account_id":86165,"user_id":103835,"slack_channel_id":"C123456789","slack_channel_name":"#ask-support","external_email":null,"type":2,"created_at":"2023-08-30T17:05:18.082186+00:00","updated_at":"2024-03-05T17:39:07.777550+00:00"},{"id":17898,"state":1,"on_cancel":[],"on_failure":[],"on_success":[441389],"account_id":86165,"user_id":103835,"slack_channel_id":"C12345678912","slack_channel_name":"#channel-example-2","external_email":null,"type":2,"created_at":"2024-03-01T17:34:16.090520+00:00","updated_at":"2024-03-01T18:02:49.565516+00:00"}],"extra":{"filters":{"limit":100,"offset":0,"state":1,"account_id":86165,"type":2},"order_by":"id","pagination":{"count":6,"total_count":6}}}