Open API v2 / CMS & Content / Content Templates
Content Templates
→
Every request needs a bearer token: Authorization: Bearer <token>. Base URL https://your-site.webinone.com. New to field types? See the type reference.
Retrieves a list of content templates by using a "where" filtering
Parameters
Wherestring · query
JSON filter expression. Combine operators ($eq, $contains, $gt, $in, …) with $and / $or.
Order_Bystring · query
Sort field. Prefix with - for descending; comma-separate for tie-breakers.
Semantic_Querystring · query
Natural-language search, ranked by relevance.
Min_Scorenumber · query
Lowest relevance score to include when using Semantic_Query.
Offsetinteger · query
Number of items to skip before returning results. Defaults to 0.
Limitinteger · query
Maximum number of items to return. Defaults to 100.
Response
Idinteger
Aunique identifier. The technical ID of the template in the database. Read-only.
Contentstring · nullable
Template body (HTML). Contains markup with placeholders ({{pageContent}}), where the system inserts the dynamic page content.
FtpPathstring · nullable
File path. The physical location of the template file on the server or FTP storage. Read-only.
IsSystemboolean
System flag. True: the template is basic (system), it is usually forbidden to delete or rename. False: a custom template created by the administrator (set upon creation).
IsDefaultboolean
Default usage. Defines whether this template will be automatically selected for new pages of this type.
AmpContentstring · nullable
AMP markup. A special version of the template for Google Accelerated Mobile Pages. Contains markup with placeholders ({{pageContent}})
Namestring · nullable
Template name that is displayed in the admin panel.
Settingsobject
Technical configuration. A set of switches (UseGlobal, Enable, Disable) for managing the functionality of the page that uses this template. Contains [MainCSS],[RecaptchaJS],[EcommerceJS],[PaymentJS]
MainCSSenum
Controls whether the site's main stylesheet is loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
RecaptchaJSenum
Controls whether the Google reCAPTCHA protection script is loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
EcommerceJSenum
Controls whether the e-commerce scripts (cart, price tracking, sales analytics) are loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
PaymentJSenum
Controls whether the payment provider libraries (Stripe, PayPal, and similar) are loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
curl "https://your-site.webinone.com/api/v2/admin/content-templates" \ -H "Authorization: Bearer <token>"
await fetch("https://your-site.webinone.com/api/v2/admin/content-templates", { method: "GET", headers: { "Authorization": "Bearer <token>" } });
import requests requests.get( "https://your-site.webinone.com/api/v2/admin/content-templates", headers={"Authorization": "Bearer <token>"} )
$client = new GuzzleHttp\Client(); $response = $client->request('GET', 'https://your-site.webinone.com/api/v2/admin/content-templates', [ 'headers' => [ 'Authorization' => 'Bearer <token>' ] ]);
using var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Get, "https://your-site.webinone.com/api/v2/admin/content-templates"); request.Headers.Add("Authorization", "Bearer <token>"); var response = await client.SendAsync(request);
Response · 200
{
"Items": [
{
"Id": 1,
"Content": "string",
"FtpPath": "string",
"IsSystem": false,
"IsDefault": false,
"AmpContent": "string",
"Name": "Example",
"Settings": {
"MainCSS": "UseGlobal",
"RecaptchaJS": "UseGlobal",
"EcommerceJS": "UseGlobal",
"PaymentJS": "UseGlobal"
}
}
],
"TotalItemsCount": 0
}Creates a new content template
Body parameters
Contentstring · nullable
The main HTML/text content. The body of the page that the user sees in a regular browser. Supports HTML markup, scripts, and styles. Must contain the {{pageContent}} liquid tag. Cannot be empty/absent (nullable: false).
IsDefaultboolean
Defines whether this content variant is the main one. If multiple variants exist for a single URL, the system will display the one where this is enabled. Disabled by default.
Namestringrequired
A human-readable name that is displayed to the user.
AmpContentstring · nullable
Content for the AMP version. A special simplified markup for Accelerated Mobile Pages (Google's accelerated mobile pages). Used for fast loading on mobile devices. Must contain the {{pageContent}} liquid tag. Cannot be empty/absent (nullable: false).
Settingsobjectrequired
Technical configurations. A group of settings that defines which external resources and scripts will be connected to the page. Flexible resource management is provided for each parameter in Settings.
MainCSSenum
Manages the connection of the main site stylesheet. UseGlobal is selected by default.Possible values: UseGlobalEnableDisable
RecaptchaJSenum
Manages the display of Google ReCAPTCHA protection. UseGlobal is selected by default.Possible values: UseGlobalEnableDisable
EcommerceJSenum
Manages the loading of e-commerce scripts (cart, price tracking, sales analytics). UseGlobal is selected by default.Possible values: UseGlobalEnableDisable
PaymentJSenum
Manages the loading of payment libraries (Stripe, PayPal, etc.). UseGlobal is selected by default.Possible values: UseGlobalEnableDisable
Response
Idinteger
Aunique identifier. The technical ID of the template in the database. Read-only.
Contentstring · nullable
Template body (HTML). Contains markup with placeholders ({{pageContent}}), where the system inserts the dynamic page content.
FtpPathstring · nullable
File path. The physical location of the template file on the server or FTP storage. Read-only.
IsSystemboolean
System flag. True: the template is basic (system), it is usually forbidden to delete or rename. False: a custom template created by the administrator (set upon creation).
IsDefaultboolean
Default usage. Defines whether this template will be automatically selected for new pages of this type.
AmpContentstring · nullable
AMP markup. A special version of the template for Google Accelerated Mobile Pages. Contains markup with placeholders ({{pageContent}})
Namestring · nullable
Template name that is displayed in the admin panel.
Settingsobject
Technical configuration. A set of switches (UseGlobal, Enable, Disable) for managing the functionality of the page that uses this template. Contains [MainCSS],[RecaptchaJS],[EcommerceJS],[PaymentJS]
MainCSSenum
Controls whether the site's main stylesheet is loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
RecaptchaJSenum
Controls whether the Google reCAPTCHA protection script is loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
EcommerceJSenum
Controls whether the e-commerce scripts (cart, price tracking, sales analytics) are loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
PaymentJSenum
Controls whether the payment provider libraries (Stripe, PayPal, and similar) are loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
curl -X POST "https://your-site.webinone.com/api/v2/admin/content-templates" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"Content":"string","IsDefault":false,"Name":"Example","AmpContent":"string","Settings":{"MainCSS":"UseGlobal","RecaptchaJS":"UseGlobal","EcommerceJS":"UseGlobal","PaymentJS":"UseGlobal"}}'
await fetch("https://your-site.webinone.com/api/v2/admin/content-templates", { method: "POST", headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({ "Content": "string", "IsDefault": false, "Name": "Example", "AmpContent": "string", "Settings": { "MainCSS": "UseGlobal", "RecaptchaJS": "UseGlobal", "EcommerceJS": "UseGlobal", "PaymentJS": "UseGlobal" } }) });
import requests requests.post( "https://your-site.webinone.com/api/v2/admin/content-templates", headers={"Authorization": "Bearer <token>"}, json={ "Content": "string", "IsDefault": False, "Name": "Example", "AmpContent": "string", "Settings": { "MainCSS": "UseGlobal", "RecaptchaJS": "UseGlobal", "EcommerceJS": "UseGlobal", "PaymentJS": "UseGlobal" } } )
$client = new GuzzleHttp\Client(); $response = $client->request('POST', 'https://your-site.webinone.com/api/v2/admin/content-templates', [ 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json' ], 'json' => [ 'Content' => 'string', 'IsDefault' => false, 'Name' => 'Example', 'AmpContent' => 'string', 'Settings' => [ 'MainCSS' => 'UseGlobal', 'RecaptchaJS' => 'UseGlobal', 'EcommerceJS' => 'UseGlobal', 'PaymentJS' => 'UseGlobal' ] ] ]);
using var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Post, "https://your-site.webinone.com/api/v2/admin/content-templates"); request.Headers.Add("Authorization", "Bearer <token>"); request.Content = new StringContent( "{\"Content\":\"string\",\"IsDefault\":false,\"Name\":\"Example\",\"AmpContent\":\"string\",\"Settings\":{\"MainCSS\":\"UseGlobal\",\"RecaptchaJS\":\"UseGlobal\",\"EcommerceJS\":\"UseGlobal\",\"PaymentJS\":\"UseGlobal\"}}", Encoding.UTF8, "application/json"); var response = await client.SendAsync(request);
Response · 200
{
"Id": 1,
"Content": "string",
"FtpPath": "string",
"IsSystem": false,
"IsDefault": false,
"AmpContent": "string",
"Name": "Example",
"Settings": {
"MainCSS": "UseGlobal",
"RecaptchaJS": "UseGlobal",
"EcommerceJS": "UseGlobal",
"PaymentJS": "UseGlobal"
}
}Retrieves a single content template
Parameters
idinteger · pathrequired
Content template id.
Response
Idinteger
Aunique identifier. The technical ID of the template in the database. Read-only.
Contentstring · nullable
Template body (HTML). Contains markup with placeholders ({{pageContent}}), where the system inserts the dynamic page content.
FtpPathstring · nullable
File path. The physical location of the template file on the server or FTP storage. Read-only.
IsSystemboolean
System flag. True: the template is basic (system), it is usually forbidden to delete or rename. False: a custom template created by the administrator (set upon creation).
IsDefaultboolean
Default usage. Defines whether this template will be automatically selected for new pages of this type.
AmpContentstring · nullable
AMP markup. A special version of the template for Google Accelerated Mobile Pages. Contains markup with placeholders ({{pageContent}})
Namestring · nullable
Template name that is displayed in the admin panel.
Settingsobject
Technical configuration. A set of switches (UseGlobal, Enable, Disable) for managing the functionality of the page that uses this template. Contains [MainCSS],[RecaptchaJS],[EcommerceJS],[PaymentJS]
MainCSSenum
Controls whether the site's main stylesheet is loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
RecaptchaJSenum
Controls whether the Google reCAPTCHA protection script is loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
EcommerceJSenum
Controls whether the e-commerce scripts (cart, price tracking, sales analytics) are loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
PaymentJSenum
Controls whether the payment provider libraries (Stripe, PayPal, and similar) are loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
curl "https://your-site.webinone.com/api/v2/admin/content-templates/1" \ -H "Authorization: Bearer <token>"
await fetch("https://your-site.webinone.com/api/v2/admin/content-templates/1", { method: "GET", headers: { "Authorization": "Bearer <token>" } });
import requests requests.get( "https://your-site.webinone.com/api/v2/admin/content-templates/1", headers={"Authorization": "Bearer <token>"} )
$client = new GuzzleHttp\Client(); $response = $client->request('GET', 'https://your-site.webinone.com/api/v2/admin/content-templates/1', [ 'headers' => [ 'Authorization' => 'Bearer <token>' ] ]);
using var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Get, "https://your-site.webinone.com/api/v2/admin/content-templates/1"); request.Headers.Add("Authorization", "Bearer <token>"); var response = await client.SendAsync(request);
Response · 200
{
"Id": 1,
"Content": "string",
"FtpPath": "string",
"IsSystem": false,
"IsDefault": false,
"AmpContent": "string",
"Name": "Example",
"Settings": {
"MainCSS": "UseGlobal",
"RecaptchaJS": "UseGlobal",
"EcommerceJS": "UseGlobal",
"PaymentJS": "UseGlobal"
}
}Updates an existing content template
Parameters
idinteger · pathrequired
Resource identifier.
Body parameters
Contentstring · nullable
The main HTML/text content. The body of the page that the user sees in a regular browser. Supports HTML markup, scripts, and styles. Must contain the {{pageContent}} liquid tag. Cannot be empty/absent (nullable: false).
IsDefaultboolean
Defines whether this content variant is the main one. If multiple variants exist for a single URL, the system will display the one where this is enabled. Disabled by default.
Namestringrequired
A human-readable name that is displayed to the user.
AmpContentstring · nullable
Content for the AMP version. A special simplified markup for Accelerated Mobile Pages (Google's accelerated mobile pages). Used for fast loading on mobile devices. Must contain the {{pageContent}} liquid tag. Cannot be empty/absent (nullable: false).
Settingsobjectrequired
Technical configurations. A group of settings that defines which external resources and scripts will be connected to the page. Flexible resource management is provided for each parameter in Settings.
MainCSSenum
Manages the connection of the main site stylesheet. UseGlobal is selected by default.Possible values: UseGlobalEnableDisable
RecaptchaJSenum
Manages the display of Google ReCAPTCHA protection. UseGlobal is selected by default.Possible values: UseGlobalEnableDisable
EcommerceJSenum
Manages the loading of e-commerce scripts (cart, price tracking, sales analytics). UseGlobal is selected by default.Possible values: UseGlobalEnableDisable
PaymentJSenum
Manages the loading of payment libraries (Stripe, PayPal, etc.). UseGlobal is selected by default.Possible values: UseGlobalEnableDisable
Response
Idinteger
Aunique identifier. The technical ID of the template in the database. Read-only.
Contentstring · nullable
Template body (HTML). Contains markup with placeholders ({{pageContent}}), where the system inserts the dynamic page content.
FtpPathstring · nullable
File path. The physical location of the template file on the server or FTP storage. Read-only.
IsSystemboolean
System flag. True: the template is basic (system), it is usually forbidden to delete or rename. False: a custom template created by the administrator (set upon creation).
IsDefaultboolean
Default usage. Defines whether this template will be automatically selected for new pages of this type.
AmpContentstring · nullable
AMP markup. A special version of the template for Google Accelerated Mobile Pages. Contains markup with placeholders ({{pageContent}})
Namestring · nullable
Template name that is displayed in the admin panel.
Settingsobject
Technical configuration. A set of switches (UseGlobal, Enable, Disable) for managing the functionality of the page that uses this template. Contains [MainCSS],[RecaptchaJS],[EcommerceJS],[PaymentJS]
MainCSSenum
Controls whether the site's main stylesheet is loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
RecaptchaJSenum
Controls whether the Google reCAPTCHA protection script is loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
EcommerceJSenum
Controls whether the e-commerce scripts (cart, price tracking, sales analytics) are loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
PaymentJSenum
Controls whether the payment provider libraries (Stripe, PayPal, and similar) are loaded on pages that use this template. Possible values: UseGlobal, Enable, Disable.Possible values: UseGlobalEnableDisable
curl -X PUT "https://your-site.webinone.com/api/v2/admin/content-templates/1" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"Content":"string","IsDefault":false,"Name":"Example","AmpContent":"string","Settings":{"MainCSS":"UseGlobal","RecaptchaJS":"UseGlobal","EcommerceJS":"UseGlobal","PaymentJS":"UseGlobal"}}'
await fetch("https://your-site.webinone.com/api/v2/admin/content-templates/1", { method: "PUT", headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({ "Content": "string", "IsDefault": false, "Name": "Example", "AmpContent": "string", "Settings": { "MainCSS": "UseGlobal", "RecaptchaJS": "UseGlobal", "EcommerceJS": "UseGlobal", "PaymentJS": "UseGlobal" } }) });
import requests requests.put( "https://your-site.webinone.com/api/v2/admin/content-templates/1", headers={"Authorization": "Bearer <token>"}, json={ "Content": "string", "IsDefault": False, "Name": "Example", "AmpContent": "string", "Settings": { "MainCSS": "UseGlobal", "RecaptchaJS": "UseGlobal", "EcommerceJS": "UseGlobal", "PaymentJS": "UseGlobal" } } )
$client = new GuzzleHttp\Client(); $response = $client->request('PUT', 'https://your-site.webinone.com/api/v2/admin/content-templates/1', [ 'headers' => [ 'Authorization' => 'Bearer <token>', 'Content-Type' => 'application/json' ], 'json' => [ 'Content' => 'string', 'IsDefault' => false, 'Name' => 'Example', 'AmpContent' => 'string', 'Settings' => [ 'MainCSS' => 'UseGlobal', 'RecaptchaJS' => 'UseGlobal', 'EcommerceJS' => 'UseGlobal', 'PaymentJS' => 'UseGlobal' ] ] ]);
using var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Put, "https://your-site.webinone.com/api/v2/admin/content-templates/1"); request.Headers.Add("Authorization", "Bearer <token>"); request.Content = new StringContent( "{\"Content\":\"string\",\"IsDefault\":false,\"Name\":\"Example\",\"AmpContent\":\"string\",\"Settings\":{\"MainCSS\":\"UseGlobal\",\"RecaptchaJS\":\"UseGlobal\",\"EcommerceJS\":\"UseGlobal\",\"PaymentJS\":\"UseGlobal\"}}", Encoding.UTF8, "application/json"); var response = await client.SendAsync(request);
Response · 200
{
"Id": 1,
"Content": "string",
"FtpPath": "string",
"IsSystem": false,
"IsDefault": false,
"AmpContent": "string",
"Name": "Example",
"Settings": {
"MainCSS": "UseGlobal",
"RecaptchaJS": "UseGlobal",
"EcommerceJS": "UseGlobal",
"PaymentJS": "UseGlobal"
}
}Deletes an existing content template
Parameters
idinteger · pathrequired
Resource identifier.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/content-templates/1" \ -H "Authorization: Bearer <token>"
await fetch("https://your-site.webinone.com/api/v2/admin/content-templates/1", { method: "DELETE", headers: { "Authorization": "Bearer <token>" } });
import requests requests.delete( "https://your-site.webinone.com/api/v2/admin/content-templates/1", headers={"Authorization": "Bearer <token>"} )
$client = new GuzzleHttp\Client(); $response = $client->request('DELETE', 'https://your-site.webinone.com/api/v2/admin/content-templates/1', [ 'headers' => [ 'Authorization' => 'Bearer <token>' ] ]);
using var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Delete, "https://your-site.webinone.com/api/v2/admin/content-templates/1"); request.Headers.Add("Authorization", "Bearer <token>"); var response = await client.SendAsync(request);