Use Token in Endpoint

Hi Guys , I create Login endpoint then i get access token and use it as a global variable . when i use token in other endpoint , error 401 displayed "
“error”:“invalid_token”,
“error_description”:“Cannot convert access token to JSON”
can any one help me please .