deploy.ltd

Deploy first, debug later.

Deploy first, debug later.

← All tools

cURL → fetch

Paste curl, get JavaScript.

const res = await fetch("https://api.example.com/endpoint", {
  method: "POST",
  headers: {
    "Content-Type": "application/json"
  },
  body: {,
});

const data = await res.json();
console.log(res.status, data);