I have a problem, I'm trying to access an API via javascript fetch().

In their documentation, they only have the curl guide

```
curl https://test.com/form/{form_id}/data \
-u apikey:'some-key'

```

Can you guys help me convert it to javascript fetch?

I tested the code below but the browser console says error 401 now I don't think I did put the apikey on the right location.

```
    fetch(https://test.com/form/371489/data', {
      method: 'GET',
      headers: {
          'Accept': 'application/json',
           apikey : 'some-ley',
          'Content-Type': 'application/json'
      }
      })

```

Thanks in advance. :)