Eseneniiiai API

REST API Reference

Explore the Esen API to automate your workflows and integrate with our platform seamlessly.

GET /api/v1/status

Authentication

All API requests must be authenticated with a Bearer Token in the Authorization header.

POST /tokens Create authentication token

Request:

{ "client_id": "your_client_id", "client_secret": "your_client_secret" }

Response:

{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCoiCJk", "expires_in": 3600, "token_type": "Bearer" }

Endpoints

GET /api/v1/status Check API status

Response:

{ "status": "OK", "timestamp": "2025-09-25T14:30:00Z", "server": "esenen-router-01" }
GET /api/v1/user Retrieve current user data

Request Headers:

{ "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCoiCJk" }

Response:

{ "id": "user_12345", "email": "dev@example.com", "created_at": "2023-08-15T08:45:22Z" }