Welcome to the official API documentation

Designed to serve as the definitive technical blueprint for developers seeking to integrate our robust services into your ecosystems. This comprehensive resource provides an exhaustive breakdown of our architectural framework, ensuring that every interaction with our platform is secure.

Within these pages, you will find accurate detail regarding our RESTful endpoints, industry-standard authentication protocols, and the nuances of our multifaceted data structures. Our primary objective is to offer a transparent and highly structured roadmap that facilitates a friction-less onboarding experience for your ecosystems.

By covering every critical phase—from the initial connection setup to sophisticated error diagnostic strategies—we aim to minimize development overhead. Ultimately, this documentation is crafted to empower you with the insights necessary to achieve a seamless, scalable, and resilient integration process.

Getting Started with Our API

To ensure a secure and seamless integration for all our developers, access to this API is currently managed via a manual registration process. To request your credentials, please send a formal registration inquiry to our support team at support@divasinergi.com.

Once your request has been submitted, our team will review your application and finalize your account setup. In the meantime, we encourage you to proceed to the Authentication section. There, you will find comprehensive documentation on how to generate the necessary authorization headers and secure your connection to our services.

Authentication

To interact with our protected endpoints, you must include a valid JSON Web Token (JWT) in your request headers. This token is obtained after a successful login and serves as your digital identity for all subsequent API calls.

The Authentication Process

Once you have completed the registration and received your credentials, you can perform a POST request to our login endpoint. Upon a successful login, the server will return a JSON response containing a unique token.

{
	"success": true,
	"statusCode": 200,
	"message": "Login Success.",
	"data": {
		"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e-ri73ScUYQaO8RiIJvLE",
		"member": {
			"id": 1,
			"code": "1881-E62B-7341-A",
			"name": "user",
			"email": "user@email.com",
			"member": 1,
			"status": "active"
		}
	},
	"rows": 2,
	"apiCost": {
		"start": "2026-03-31 15:56:56'255",
		"finish": "2026-03-31 15:56:56'333",
		"duration": 0.078
	}
}
How to Use the Token

To authenticate your requests, you must pass the token string (found in data.token) into the Authorization header using the Bearer Authentication scheme.

Key     : Authorization
Value   : Bearer <your_token_here>
Important Notes:
  • Token Security: Please treat your token like a password. Never share it publicly or include it in client-side code that is visible to everyone.
  • Expiration: Each token has a specific lifespan. If you receive a 401 Unauthorized response, it may indicate that your token has expired and you will need to log in again to receive a fresh one.

API Reference

Once you have successfully authenticated your requests using the Bearer Token, you can begin interacting with our available resources. Below is a comprehensive list of the endpoints provided by this API.