English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/templateRetrieve a paginated list of automation templates.
This endpoint is used to fetch available templates that can be used to configure content automations. It is useful for browsing and selecting templates before creating or configuring an automation.
Authorization: Basic Base64(AccessKey:SecretKey))| Parameter | Type | Required | Description |
|---|---|---|---|
page | number | Yes | Page to return, starting from 1. Templates are sorted newest first. |
limit | number | Yes | Items per page, from 1 to 100, for example 20. The response says how many pages there are in totalPages. |
search | string | No | Matches the template name, case-insensitive. |
curl -X GET "https://api.repliz.com/public/template?page=1&limit=20&search=Auto%20Comment" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const response = await axios.get('https://api.repliz.com/public/template', {
params: {
page: 1,
limit: 20,
search: 'Auto Comment',
},
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
});
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const response = await fetch(
'https://api.repliz.com/public/template?page=1&limit=20&search=Auto%20Comment',
{
headers: {
Authorization: `Basic ${credentials}`,
},
},
);
const data = await response.json();
console.log(data);{
"docs": [
{
"_id": "6a912e6c8133bfb870b220d3",
"name": "Hello",
"config": {
"delete": {
"isActive": true,
"type": "keyword",
"keywords": ["Jobless"],
"prompt": ""
},
"reply": {
"isActive": true,
"type": "text",
"text": "Thanks for comment",
"prompt": "",
"isIncludeContentContext": false,
"keyword": {
"isExactMatch": false,
"values": []
},
"condition": {
"isActive": false,
"isExactMatch": false,
"keywords": []
},
"exception": {
"isActive": false,
"isExactMatch": false,
"keywords": []
},
"delay": {
"isActive": false,
"value": 10,
"type": "second"
}
},
"like": {
"isActive": true
},
"message": {
"isActive": true,
"type": "text",
"text": "Thanks for comment, here we are",
"prompt": "",
"opening": {
"postback": {
"isActive": false,
"text": "",
"image": "",
"file": null,
"button": {
"type": "postback",
"title": "",
"payload": ""
}
},
"additional": {
"isActive": false,
"isPreventBeforeFollow": false,
"text": "",
"image": "",
"file": null,
"button": {
"type": "postback",
"title": "",
"payload": ""
}
},
"webUrl": {
"text": "",
"image": "",
"file": null,
"buttons": []
}
},
"keyword": {
"isExactMatch": false,
"values": []
},
"condition": {
"isActive": false,
"isExactMatch": false,
"keywords": []
},
"delay": {
"isActive": false,
"value": 10,
"type": "second"
}
},
"story": {
"isActive": true,
"type": "text",
"text": "Like this story?",
"prompt": "",
"opening": {
"postback": {
"isActive": false,
"text": "",
"image": "",
"file": null,
"button": {
"type": "postback",
"title": "",
"payload": ""
}
},
"additional": {
"isActive": false,
"isPreventBeforeFollow": false,
"text": "",
"image": "",
"file": null,
"button": {
"type": "postback",
"title": "",
"payload": ""
}
},
"webUrl": {
"text": "",
"image": "",
"file": null,
"buttons": []
}
},
"keyword": {
"isExactMatch": false,
"values": []
},
"condition": {
"isActive": false,
"isExactMatch": false,
"keywords": []
},
"delay": {
"isActive": false,
"value": 10,
"type": "second"
}
},
"chat": {
"isActive": true,
"type": "text",
"text": "For information, please call a book on website",
"prompt": "",
"keyword": {
"isExactMatch": false,
"values": []
},
"delay": {
"isActive": false,
"value": 10,
"type": "second"
}
}
},
"userId": "6a55bba8622734cc66f2d7b3",
"createdAt": "2026-08-28T06:45:00.514Z",
"updatedAt": "2026-08-28T06:45:00.514Z",
"__v": 0,
"id": "6a912e6c8133bfb870b220d3"
}
],
"totalDocs": 1,
"limit": 20,
"totalPages": 1,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}{
"code": 401,
"message": "unauthorized"
}