curl --request GET \
--url https://api.novu.co/v1/notification-groups/{id} \
--header 'Authorization: ApiKey <NOVU_API_KEY>'
import { Novu, TemplateVariableTypeEnum, FilterPartTypeEnum, StepTypeEnum } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.notificationGroups.getOne("notificationGroupId");
<?php
$url = 'https://api.novu.co/v1/notification-groups/:id';
$data = array(
[options]
);
$options = array(
"http" => array(
"header" => "Content-type: application/json",
"header" => "Authorization: ApiKey REPLACE_WITH_API_KEY",
"method" => "GET",
"content" => json_encode($data)
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) { /* Handle error */ }
echo $result;
require 'net/http'
require 'uri'
uri = URI.parse('https://api.novu.co/v1/notification-groups/:id')
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Post.new(uri.request_uri)
request.body = '{
[options]
}'
request.content_type = 'application/json'
request.add_field('Authorization', 'ApiKey REPLACE_WITH_API_KEY')
response = http.request(request)
puts response.body
import requests
response = requests.get('https://api.novu.co/v1/notification-groups/:id')
print(response.json())
package main
import (
"fmt"
"net/http"
"encoding/json"
)
func main() {
url := "https://api.novu.co/v1/notification-groups/:id"
data := map[string]string{
[options]
}
jsonValue, _ := json.Marshal(data)
req, _ := http.NewRequest("GET", url, bytes.NewBuffer(jsonValue))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "ApiKey REPLACE_WITH_API_KEY")
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
"data": {
"_id": "string",
"name": "string",
"_environmentId": "string",
"_organizationId": "string",
"_parentId": "string"
}
}
Workflow groups
Get workflow group
workflow group was previously named notification group
GET
/
v1
/
notification-groups
/
{id}
curl --request GET \
--url https://api.novu.co/v1/notification-groups/{id} \
--header 'Authorization: ApiKey <NOVU_API_KEY>'
import { Novu, TemplateVariableTypeEnum, FilterPartTypeEnum, StepTypeEnum } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.notificationGroups.getOne("notificationGroupId");
<?php
$url = 'https://api.novu.co/v1/notification-groups/:id';
$data = array(
[options]
);
$options = array(
"http" => array(
"header" => "Content-type: application/json",
"header" => "Authorization: ApiKey REPLACE_WITH_API_KEY",
"method" => "GET",
"content" => json_encode($data)
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) { /* Handle error */ }
echo $result;
require 'net/http'
require 'uri'
uri = URI.parse('https://api.novu.co/v1/notification-groups/:id')
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Post.new(uri.request_uri)
request.body = '{
[options]
}'
request.content_type = 'application/json'
request.add_field('Authorization', 'ApiKey REPLACE_WITH_API_KEY')
response = http.request(request)
puts response.body
import requests
response = requests.get('https://api.novu.co/v1/notification-groups/:id')
print(response.json())
package main
import (
"fmt"
"net/http"
"encoding/json"
)
func main() {
url := "https://api.novu.co/v1/notification-groups/:id"
data := map[string]string{
[options]
}
jsonValue, _ := json.Marshal(data)
req, _ := http.NewRequest("GET", url, bytes.NewBuffer(jsonValue))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "ApiKey REPLACE_WITH_API_KEY")
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
"data": {
"_id": "string",
"name": "string",
"_environmentId": "string",
"_organizationId": "string",
"_parentId": "string"
}
}
Enter your API key in the
Authorization field like the example shown below:E.g ApiKey 18d2e625f05d80ecurl --request GET \
--url https://api.novu.co/v1/notification-groups/{id} \
--header 'Authorization: ApiKey <NOVU_API_KEY>'
import { Novu, TemplateVariableTypeEnum, FilterPartTypeEnum, StepTypeEnum } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.notificationGroups.getOne("notificationGroupId");
<?php
$url = 'https://api.novu.co/v1/notification-groups/:id';
$data = array(
[options]
);
$options = array(
"http" => array(
"header" => "Content-type: application/json",
"header" => "Authorization: ApiKey REPLACE_WITH_API_KEY",
"method" => "GET",
"content" => json_encode($data)
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) { /* Handle error */ }
echo $result;
require 'net/http'
require 'uri'
uri = URI.parse('https://api.novu.co/v1/notification-groups/:id')
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Post.new(uri.request_uri)
request.body = '{
[options]
}'
request.content_type = 'application/json'
request.add_field('Authorization', 'ApiKey REPLACE_WITH_API_KEY')
response = http.request(request)
puts response.body
import requests
response = requests.get('https://api.novu.co/v1/notification-groups/:id')
print(response.json())
package main
import (
"fmt"
"net/http"
"encoding/json"
)
func main() {
url := "https://api.novu.co/v1/notification-groups/:id"
data := map[string]string{
[options]
}
jsonValue, _ := json.Marshal(data)
req, _ := http.NewRequest("GET", url, bytes.NewBuffer(jsonValue))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "ApiKey REPLACE_WITH_API_KEY")
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
"data": {
"_id": "string",
"name": "string",
"_environmentId": "string",
"_organizationId": "string",
"_parentId": "string"
}
}
Was this page helpful?
⌘I