Graphiql request Request failed with status code 401

Hello guys, I’m trying to consume some data from, I already have the query structure but once I fetch I get ‘Request failed with status code 401’, I’m passing my Api key on the request, any ideas how to fix that?? thanks for your help

  url: '',
  method: 'get',
  headers: {
    "Api-Key": "MYAPIKEYHERE",
    "Content-Type": "application/json",
    "Access-Control-Allow-Origin": "http://localhost:3000/",
    "Access-Control-Allow-Methods": "POST",
    "charset": "UTF-8",
  data: {
    query: myQuery
}).then((result) => {
}).catch((error) => {