Skip to content

Get current account

GET/v1/me/Free

Returns information about the account that owns the current Api-Key: account ID, balance, top-up multiplier, assigned roles and the notification threshold.

Api-Key header required.

No parameters, no body.

Terminal window
curl -H "Api-Key: $API_KEY" https://api.telesint.dev/v1/me/
{
"id_": 436307416,
"balance": 109992,
"multiplier": 1,
"roles": [
{
"name": "user",
"description": null,
"scopes": [
{ "name": "read_users", "description": null },
{ "name": "read_groups", "description": null },
{ "name": "search", "description": null }
]
}
],
"notification_threshold": 20
}
Field Type Notes
id_ integer Account ID.
balance integer Available amount in rubles.
multiplier number Top-up multiplier. Does not affect request prices.
roles array of role Assigned roles. Empty by default.
notification_threshold integer | null Low-balance alert threshold, configured in the bot. The alert goes to the bot when the balance after a charge drops below the threshold, at most once a day. null — alerts are off.

The path has a trailing slash: /v1/me without it answers 307 to /v1/me/.

Field Type Notes
name string | null Role identifier.
description string | null Human-readable description.
scopes array of scope Capabilities granted by this role.
Field Type Notes
name string | null Scope identifier.
description string | null Human-readable description.

Common error shapes — see Errors.