GET
Profil account
/api/v1/me
Returns the current account profile and API key status, including expiry time.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
token | query | required | User API key |
Example request
https://mail.tgx-app.com/api/v1/me?token=YOUR_TOKEN
Example response
{
"success": true,
"data": {
"account_id": 3,
"username": "clienta",
"role": "user",
"api_key": {
"id": 3,
"prefix": "tm_live_0d5b...0e10",
"expires_at": "2026-09-13T01:06:33Z"
}
}
}
Watch api_key.expires_at to know when the key expires.