const options = {
method: 'GET',
headers: {
Authorization: 'Bearer poix-xxx',
},
};
fetch('https://api.poix.io/captions/dQw4w9WgXcQ', options)
.then((response) => response.json())
.then((response) => console.log(response))
.catch((err) => console.error(err));