AP.request and ServiceDesk issue

AP.request is going to the wrong url when u are trying to view the content(confluence page with dynamic content macro) from the service desk.
Code:
AP.request({
url: “/rest/api/content/” + pageId + “?expand=body.storage”, //pageId - valid page id
type: ‘GET’,
contentType: ‘application/json’,
success: function (response) {
console.log(“success!”);
},
error: function(e) {
console.log(“error!”);
}
});
In browser console:
Uncaught Error: undefined missing confluence/api/navigator-context
and
GET https://myinstancename.atlassian.net/plugins/servlet/servicedesk/customer/confluence/shim/rest/api/content/33226755?expand=body.storage 403 ()

When i’m trying the absolute url(url: “https://myinstancename.atlassian.net/wiki/rest/api/content/” + pageId + “?expand=body.storage”) i’m getting this:
GET https://myinstancename.atlassian.net/wikihttps://myinstancename.atlassian.net/wiki/rest/api/content/33226755?expand=body.storage 403 ()