I’m trying to test out reading data by API but not sure if I am using the right URL for the query. To generate an oauth2 token for our staging community I should be hitting https://xxxx-en.almostinsided.com/oauth2/token correct? the documentation only says /oauth2/token - but some older threads on here are referring to api.insided.com so I am a little confused if I target our community URL or some master API endpoint.
Assuming this is correct, If I am using the URL above with a test tool like https://reqbin.com/, I keep getting a 200 response back with the following RAW text which looks like HTTP rather than JSON.
var date = new Date();
var expire = 'expires='+date.toGMTString(),
secure = (window.location.protocol == 'https') ? 'secure;' : '';
document.cookie = 'redirect='+document.location.href+';' + expire + ';' + secure + 'path=/;';
document.location = '/site/index';
<META http-equiv="refresh" content="0;URL=/site/index">
Best answer by mstone
Give this a try for staging: