Invalid REST API key! Please provide valid a valid REST API key

I’m sure that I copied the rest api very well but the plugin has another opinion it always gives me “Invalid REST API key! Please provide valid a valid REST API key” but sometimes it works and suddenly it stops. I don’t know where is the problem