Authentication
const body = {
html: "<html><body><p>Hello World!</p></body></html>"
}
const res = await fetch("mattermix.com/api/v1/image", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.MATTERMIX_API_KEY}`
},
body: JSON.stringify(body)
});Last updated