NOTE: rest of function working fine like getting instrument, bhav, etc etc so no APIKEY error. before that, I had a simple plan. yesterday purchased a new plan on the same API so is it working on same API or need to create a new API and secret ? or its take time to enable?
I was facing something similar, I enabled debug mode to find that the instrumentation ID I was sending was undefined.