Community Discussion

Ask a Question
Back to All

404 get all campaigns

When I try to get all the campaigns, I'm getting a 404 response:

{
http_status: 404,
message: 'account',
message_code: 'api.action.resource_not_found'
}

const fetch = require('node-fetch');
require('dotenv').config();

const url = 'https://backstage.taboola.com/backstage/api/1.0/ADACCOUNTID/campaigns/';
const options = {
method: 'GET',
headers: {
authorization: 'Bearer ' + process.env.TABOOLA_ACCESS
}
};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));

What could be the issue?

ο»Ώ