Authentication
All API requests require authentication using an API key:
- To create an API key, go to the API Keys page.
- Then, include the API key in the
Authorization
header of your requests. - You should prefix the API key with
Bearer
.
For example, if your API key is
YzA0ODQwNTAtZTI1NC00MDY1
, you can use it as follows:
const response = await fetch("https://templatedocs.io/api/v1/templates", {
headers: {
"Authorization": "Bearer YzA0ODQwNTAtZTI1NC00MDY1"
}
})
const data = await response.json()
console.log(data)