Discussions

Ask a Question
Back to All

bearer token not working with api call

I am getting this error below when I try to use a bearer token in my custom add on
Error:"Account trial has expired. Please select an account plan and try again."
the format of the API call is as follows

url: 'https://api.servicem8.com/api_1.0/material.json?%24filter=active%20eq%201',
headers:
{
accept: 'application/json',
authorization : 'Bearer '+event.auth.accessToken
}