API Reference
Discover the full suite of Ensot's RESTful APIs and their capabilities. Each endpoint is documented with examples, parameters, and response types.
Available Endpoints
GET /api/v1/users
Authentication Required
Retrieve user data and list of accounts associated with your API key.
Request
GET https://api.ensot.com/api/v1/users
Headers:
Authorization: Bearer YOUR_API_KEY
Response
{
"data": [{ "id": "123", "name": "John Doe" }],
"meta": { "total": 25 }
}
Parameters
Parameter | Type | Description |
---|---|---|
page | number |
GET /api/v1/transactions
Authentication Required
View transaction history and financial activity for your account.
Request
GET https://api.ensot.com/api/v1/transactions
Headers:
Authorization: Bearer YOUR_API_KEY
Query:
date_from=2025-01-01
Response
{
"data": [{ "id": "456", "amount": 149.99 }],
"meta": { "total": 102, "page": 1 }
}
Parameters
Parameter | Type | Description |
---|---|---|
date_from | date | Start date filter |
date_to | date | End date filter |
limit | number | Results per page |
Technical Reference
API Versioning
- Endpoints are versioned in format
/api/v{X}
- Current version: v1
- Always use the full version in endpoint paths
- Check changelog for breaking changes
HTTP Status Codes
Code | Description |
---|---|
200 | Success |
400 | Bad Request |
403 | Invalid Authorization |
404 | Resource Not Found |
Code Examples
// Get user list
fetch('https://api.ensot.com/api/v1/users', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));
🔐 Replace YOUR_API_KEY with a valid API key from your Developer Console.