import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.environmets.regenerateApiKeys();
use Novu\SDK\Novu;
$novu = new Novu(<NOVU_API_KEY>);
$key = $novu->regenerateEnvironmentsAPIKeys()->toArray();
require 'novu'
client = Novu::Client.new('<NOVU_API_KEY>')
client.regenerate_api_keys()
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.regenerateApiKeys();
}
}
from novu.api import EnvironmentApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
regenerateApiKey = EnvironmentApi(url, api_key).regenerate_api_key()
curl --request POST \
--url https://api.novu.co/v1/environments/api-keys/regenerate \
--header 'Authorization: ApiKey <NOVU_API_KEY>'
{
"data": [
{
"key": "string",
"_userId": "string"
}
]
}
Environments
Regenerate api keys
POST
/
v1
/
environments
/
api-keys
/
regenerate
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.environmets.regenerateApiKeys();
use Novu\SDK\Novu;
$novu = new Novu(<NOVU_API_KEY>);
$key = $novu->regenerateEnvironmentsAPIKeys()->toArray();
require 'novu'
client = Novu::Client.new('<NOVU_API_KEY>')
client.regenerate_api_keys()
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.regenerateApiKeys();
}
}
from novu.api import EnvironmentApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
regenerateApiKey = EnvironmentApi(url, api_key).regenerate_api_key()
curl --request POST \
--url https://api.novu.co/v1/environments/api-keys/regenerate \
--header 'Authorization: ApiKey <NOVU_API_KEY>'
{
"data": [
{
"key": "string",
"_userId": "string"
}
]
}
Enter your API key in the
Authorization field like the example shown below:E.g ApiKey 18d2e625f05d80eimport { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.environmets.regenerateApiKeys();
use Novu\SDK\Novu;
$novu = new Novu(<NOVU_API_KEY>);
$key = $novu->regenerateEnvironmentsAPIKeys()->toArray();
require 'novu'
client = Novu::Client.new('<NOVU_API_KEY>')
client.regenerate_api_keys()
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.regenerateApiKeys();
}
}
from novu.api import EnvironmentApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
regenerateApiKey = EnvironmentApi(url, api_key).regenerate_api_key()
curl --request POST \
--url https://api.novu.co/v1/environments/api-keys/regenerate \
--header 'Authorization: ApiKey <NOVU_API_KEY>'
{
"data": [
{
"key": "string",
"_userId": "string"
}
]
}
Was this page helpful?
⌘I