fetch("https://forge.gwenaelremond.fr/api/v1/user/repos", { method: "POST", headers: { Authorization: "token ${MON_TOKEN_API}", "Content-Type": "application/json", Accept: "application/json", }, body: JSON.stringify({ name: "exercice", description: "Leon", }), }) .then((response) => response.json()) .then((data) => console.log(data));