Invalid API Token

I cant find any documentation on how to set a Purestake key in the Linux CLI to run goal commands, nor have I had to for the last 8 months while running this node. not sure what Im missing here.