Introduction
Overview
The SmartCMS API is a powerful and flexible RESTful API designed to interact seamlessly with this CMS. It allows developers to easily retrieve all website contents, posts, media, and other system features through secure, programmatic access. Whether you're building a mobile app, a custom frontend, or automating workflows, the Smartend API provides all the necessary endpoints support your needs.
We continually expand the API with new features and controls for enhanced functionality.
How to enable Restful API?
To enable the API in Smartend CMS, follow these steps from the Admin Dashboard:
- Navigate to System Settings >> RESTful API.
- Set the API status to Active, and your API token will be displayed.
- You can change or generate a new API token using the link below the API token field.
Notes:
- The API token is required to use in calling all RESTful services, you will need to push it in the request header.
- To retrieve data in a specific language, include the "lang" code parameter in the request header.
Postman API test collection
You can access the Postman API test collection using the this link:
Download collection
- Once you download the compressed file, simply extract it and import it into the Postman app.
- The collection includes tests for all endpoints.
- You'll need to update the Base URL and API Key in the collection's variables before using it.
Website info
{ GET } Website status
Retrieve the website status along with the HTML message displayed when it is closed.
GET/api/v1/website/status
Success Response
{
"status": "success",
"details": {
"status": 1,
"close_msg": ""
}
}