Ensot

API Documentation

Discover how to integrate and use Ensot's APIs to build powerful applications. Full request examples, parameters, and code samples included.

Available Endpoints

POST /api/v1/users
Authentication Required

Create a new user account with required credentials and profile information.

Request


POST https://api.ensot.com/api/v1/users
Headers:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "email": "user@example.com",
  "password": "securepassword",
  "full_name": "John Doe"
}

                        

Response


{
  "user_id": "12345",
  "email": "user@example.com",
  "created_at": "2025-09-23T09:00:00Z"
}

                        

Parameters

Field Type Description
email string Valid email address
password string Secure password
full_name string Display name
GET /api/v1/transactions
Authentication Required

Retrieve transaction history for your Ensot account.

Request


GET https://api.ensot.com/api/v1/transactions
Headers:
Authorization: Bearer YOUR_API_KEY
Query:
date_from=2025-09-01
date_to=2025-09-30

                        

Response


{
  "data": [
    {
      "transaction_id": "TX5321",
      "amount": 19.99,
      "description": "API service fee"
    }
  ],
  "meta": { "page": 1, "total": 98 }
}

                        

Parameters

Parameter Type Description
date_from date Start date for query
date_to date End date for query
page number Pagination page number

Code Examples


// Create user example
fetch('https://api.ensot.com/api/v1/users', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_api_key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    email: 'test@example.com',
    password: 'secure123'
  })
})
.then(res => res.json())
.then(data => console.log(data));

                
🛡️ Always store credentials securely and never expose them in client-side code.