Templates
The HTML content of the template
The CSS content of the template
The name of the template
template has been created
Error creating template
Transaction limit reached or upgrade required to proceed
User does not own template DID
POST /templates HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"html": "text",
"css": "text",
"name": "text"
}{
"id": "text",
"html": "text",
"css": "text",
"name": "text",
"metadata": {}
}How many items to offset by for pagination
0How many items to return at one time (max 64)
64A paged array of templates
Application error
GET /templates HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "text",
"html": "text",
"css": "text",
"name": "text",
"metadata": {}
}
]The template ID
Expected response to a valid request
Error getting template
template was not found
GET /templates/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"html": "text",
"css": "text",
"name": "text",
"metadata": {}
}A template ID
The HTML content of the template
The CSS content of the template
The name of the template
Template has been updated
Error creating template
Transaction limit reached or upgrade required to proceed
PATCH /templates/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"html": "text",
"css": "text",
"name": "text"
}{
"id": "text",
"html": "text",
"css": "text",
"name": "text",
"metadata": {}
}A template ID
Template deleted
No content
Error deleting template
template was not found
DELETE /templates/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?