Get all notification configs
curl --request GET \
--url https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs \
--header 'x-admin-api-key: <x-admin-api-key>'import requests
url = "https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs"
headers = {"x-admin-api-key": "<x-admin-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-admin-api-key': '<x-admin-api-key>'}};
fetch('https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-admin-api-key: <x-admin-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-admin-api-key", "<x-admin-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs")
.header("x-admin-api-key", "<x-admin-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-admin-api-key"] = '<x-admin-api-key>'
response = http.request(request)
puts response.read_body[
{
"event": "trial_period_expiry",
"timePeriod": [
1,
2,
3
],
"unit": "seconds",
"templateName": "notificationservice-template-testing",
"senderEmail": "sinan@razi.ai",
"senderName": "Sinan",
"supportEmail": "sinan@razi.ai",
"productName": "Razi"
}
]Notification Configs
Get all notification configs
GET
/
api
/
v1
/
notification-configs
Get all notification configs
curl --request GET \
--url https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs \
--header 'x-admin-api-key: <x-admin-api-key>'import requests
url = "https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs"
headers = {"x-admin-api-key": "<x-admin-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-admin-api-key': '<x-admin-api-key>'}};
fetch('https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-admin-api-key: <x-admin-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-admin-api-key", "<x-admin-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs")
.header("x-admin-api-key", "<x-admin-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-admin-api-key"] = '<x-admin-api-key>'
response = http.request(request)
puts response.read_body[
{
"event": "trial_period_expiry",
"timePeriod": [
1,
2,
3
],
"unit": "seconds",
"templateName": "notificationservice-template-testing",
"senderEmail": "sinan@razi.ai",
"senderName": "Sinan",
"supportEmail": "sinan@razi.ai",
"productName": "Razi"
}
]Headers
The API key to access the admin API
Response
Returns all notification configs
Trial Period Expiry
Example:
"trial_period_expiry"
Time period for the event
Example:
[1, 2, 3]
Unit of measurement for the time period
Example:
"seconds"
Name of the template
Example:
"notificationservice-template-testing"
Sender email
Example:
"sinan@razi.ai"
Sender Name
Example:
"Sinan"
Support Email
Example:
"sinan@razi.ai"
Product Name
Example:
"Razi"
⌘I