Don’t use the snippet by itself as it depends on a lot of other internal rblx stuff that I didn’t include, such as Util. Just npm install rblx & use the following snippet instead:
// CommonJS
const { OpenCloudUniverse } = require('rblx');
const API_KEY = // API key here
const UNIVERSE_ID = // Universe ID here
let uni = new OpenCloudUniverse(UNIVERSE_ID);
uni.authenticate(API_KEY);
await uni.publishToTopic('newtopic1', { hello: "world" });
The fact that postman also didn’t work is consistent with your api key not being set correctly. What does your creator dashboard view of the api key look like when you click edit on it? Make sure to either cover the actual key / regenerate it though.
Also what do you mean by this? It sounds like you may have entered the wrong IP. Your best bet is to use a local tool (use local python code rather than a website like postman) and to find out your actual public ip by googling “what is my ip”
I already have the postman app so it should sent the request via my IP. I used to put my IP only as allowed then I made it for everyone to prevent errors.
That ip address won’t work for sure. Make sure you use your public ip address (i.e. not one that’s like 192.168.0.1 as that is typically a local one) use google to find it.
I did some testing and the only way I found to get the 403 response was to not have the correct place / experience details set up. You can copy the correct universe id from that page.
It uses CIDR notation so you’ll need the /0 if you want to allow for all IP addresses. It’s possible that for certain networks that your IP address might be different. One of the easiest ways to get your IP is to just search “what’s my ip” in Google search and it’ll tell you where you’re making a request from.