curl --request POST \
--url https://api.novu.co/v1/feeds \
--header 'Authorization: ApiKey <NOVU_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{"name": "<FEED_NAME>"}'
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.feeds.create("<Feed_Name>");
use Novu\SDK\Novu;
$novu = new Novu(<NOVU_API_KEY>);
$novu->createFeed([
'name' => '<insert-name-for-feed>'
]);
require 'novu'
client = Novu::Client.new('<NOVU_API_KEY>')
client.create_feed({
'name' => 'New feed'
})
from novu.api import FeedApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
novu = FeedApi(url, api_key).create(
name = "<Feed_Name>",
)
import co.novu.sdk.Novu;
public class Main {
public static void main(String[] args) {
String apiKey = "<NOVU_API_KEY>";
Novu novu = new Novu(apiKey);
novu.createFeed(body);
}
}
{
"data": {
"_id": "string",
"name": "string",
"identifier": "string",
"_environmentId": "string",
"_organizationId": "string"
}
}
Feeds
Create feed
POST
/
v1
/
feeds
curl --request POST \
--url https://api.novu.co/v1/feeds \
--header 'Authorization: ApiKey <NOVU_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{"name": "<FEED_NAME>"}'
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.feeds.create("<Feed_Name>");
use Novu\SDK\Novu;
$novu = new Novu(<NOVU_API_KEY>);
$novu->createFeed([
'name' => '<insert-name-for-feed>'
]);
require 'novu'
client = Novu::Client.new('<NOVU_API_KEY>')
client.create_feed({
'name' => 'New feed'
})
from novu.api import FeedApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
novu = FeedApi(url, api_key).create(
name = "<Feed_Name>",
)
import co.novu.sdk.Novu;
public class Main {
public static void main(String[] args) {
String apiKey = "<NOVU_API_KEY>";
Novu novu = new Novu(apiKey);
novu.createFeed(body);
}
}
{
"data": {
"_id": "string",
"name": "string",
"identifier": "string",
"_environmentId": "string",
"_organizationId": "string"
}
}
Enter your API key in the
Authorization field like the example shown below:E.g ApiKey 18d2e625f05d80ecurl --request POST \
--url https://api.novu.co/v1/feeds \
--header 'Authorization: ApiKey <NOVU_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{"name": "<FEED_NAME>"}'
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.feeds.create("<Feed_Name>");
use Novu\SDK\Novu;
$novu = new Novu(<NOVU_API_KEY>);
$novu->createFeed([
'name' => '<insert-name-for-feed>'
]);
require 'novu'
client = Novu::Client.new('<NOVU_API_KEY>')
client.create_feed({
'name' => 'New feed'
})
from novu.api import FeedApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
novu = FeedApi(url, api_key).create(
name = "<Feed_Name>",
)
import co.novu.sdk.Novu;
public class Main {
public static void main(String[] args) {
String apiKey = "<NOVU_API_KEY>";
Novu novu = new Novu(apiKey);
novu.createFeed(body);
}
}
{
"data": {
"_id": "string",
"name": "string",
"identifier": "string",
"_environmentId": "string",
"_organizationId": "string"
}
}
Was this page helpful?
⌘I