Get Current User
curl --request GET \
--url https://api.example.com/api/v2/user/me \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"avatar_url": "<string>"
}
'import requests
url = "https://api.example.com/api/v2/user/me"
payload = {
"name": "<string>",
"avatar_url": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', avatar_url: '<string>'})
};
fetch('https://api.example.com/api/v2/user/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v2/user/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'avatar_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v2/user/me"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"avatar_url\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v2/user/me")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"avatar_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/user/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"avatar_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"email": {},
"telegram_username": {},
"avatar_url": {},
"plan": "<string>",
"plan_expires_at": {},
"token_balance": 123,
"token_limit": 123,
"rate_limit_hourly": 123,
"rate_limit_daily": 123,
"auth_methods": {}
}User
Get Current User
Retrieve the authenticated user’s profile, plan, and token balance
GET
/
api
/
v2
/
user
/
me
Get Current User
curl --request GET \
--url https://api.example.com/api/v2/user/me \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"avatar_url": "<string>"
}
'import requests
url = "https://api.example.com/api/v2/user/me"
payload = {
"name": "<string>",
"avatar_url": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', avatar_url: '<string>'})
};
fetch('https://api.example.com/api/v2/user/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v2/user/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'avatar_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v2/user/me"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"avatar_url\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v2/user/me")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"avatar_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/user/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"avatar_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"email": {},
"telegram_username": {},
"avatar_url": {},
"plan": "<string>",
"plan_expires_at": {},
"token_balance": 123,
"token_limit": 123,
"rate_limit_hourly": 123,
"rate_limit_daily": 123,
"auth_methods": {}
}Request
curl https://elumenta.ru/api/v2/user/me \
-H "Authorization: Bearer nb_YOUR_API_KEY"
Response
integer
Internal user ID.
string
Display name.
string | null
Email address (null if registered via Telegram only).
string | null
Telegram username (null if registered via email/Google).
string | null
Profile picture URL.
string
Active subscription plan:
free (Starter) | basic | pro | vip | elitestring | null
ISO 8601 datetime when the current subscription expires. Null for Starter plan.
integer
Current token balance (subscription tokens + bonus tokens combined).
integer
Monthly token allowance for your plan.
integer
Max requests per hour.
0 = unlimited (Elite plan).integer
Max requests per day.
0 = unlimited (Elite plan).object
Which authentication methods are connected to this account.
Response Example
{
"id": 1042,
"name": "Ivan Petrov",
"email": "ivan@example.com",
"telegram_username": "ivan_dev",
"avatar_url": "https://t.me/i/userpic/320/ivan_dev.jpg",
"plan": "vip",
"plan_expires_at": "2026-04-08T00:00:00Z",
"token_balance": 1247,
"token_limit": 1500,
"tokens_used_this_period": 253,
"rate_limit_hourly": 100,
"rate_limit_daily": 1000,
"auth_methods": {
"telegram": true,
"google": false,
"email": true
}
}
Get Balance
Lightweight endpoint for just token balance info.curl https://elumenta.ru/api/v2/user/balance \
-H "Authorization: Bearer nb_YOUR_API_KEY"
{
"plan": "vip",
"token_balance": 1247,
"plan_tokens_remaining": 1247,
"bonus_tokens": 0,
"plan_expires_at": "2026-04-08T00:00:00Z",
"next_refill_at": "2026-04-08T00:00:00Z"
}
Update Profile
Update your display name or avatar.curl -X PATCH https://elumenta.ru/api/v2/user/me \
-H "Authorization: Bearer nb_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ivan P."
}'
Request Body
string
New display name.
string
New avatar URL.

