Hi, I am trying to deploy a service using rest API but I am getting below error everytime
error: { code: 'forbidden', message: 'Not authorized', invalidToken: true }
below is my API structure that I am trying to make via nodejs
const response = await axios.post( "https://api.vercel.com/v13/deployments", { name: "my-instant-deployment", gitSource: { type: "github", repo: GITHUB_REPO, // ✅ Use "username/repo-name" ref: BRANCH }, target: "production" }, { headers: { Authorization: Bearer ${VERCEL_API_TOKEN}, "Content-Type": "application/json", } } );
I am using node js