Welcome to API Documentation

Welcome to the official API documentation. This page serves as a comprehensive guide and definitive reference for developers looking to integrate our services into their own applications. Within these sections, you will find exhaustive information regarding our available endpoints, secure authentication protocols, and complex data structures. Our goal is to provide a clear, structured roadmap that covers everything from initial connection setup to advanced error handling, ensuring a seamless and efficient 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.