API key authentication JWT format issue


I have installed Grafana 9.1.1 and I am trying to create alert/contact point using Terraform code with Grafana provider, but I am getting below error in the authentication for the API key. Please Suggest

Error: status: 401, Body: Jwt is not in the form of header.payload.signature with two dots and 3 sections