Skip to content

Upload an image

Upload an image to your account.

Sample Request

Here’s a sample request to upload an image:

ENDPOINT
POST /v1/upload
Content-Type: multipart/form-data
// Create form data
const fileInput = document.getElementById('fileInput');
const formData = new FormData();
formData.append('file', fileInput.files[0]);
fetch('https://api.templated.io/v1/upload', {
method: 'POST',
body: formData,
headers: {
'Authorization' : `Bearer ${API_KEY}`
}
})