Get my user
Warning
This method is only available to users who have signed up on the Tanaos platform and generated an API Key. If you are using Synthex without an API Key, this method will return an authentication error.
Retrieves information on the user whose API key is used to authenticate the request.
Arguments
No parameters.
Response
- id str
The user's unique identifier. - first_name str
The user's first name. - last_name str
The user's last name. - email str
The user's email address. - default_payment_method_id strnullable
The id of the user's default payment method. If the user has no payment method, this field will beNone
. - promo_credit_granted datetimenullable
The date and time when the user was granted promotional credits. If the user has no promotional credits, this field will beNone
. - is_verified bool
Whether the user has verified their email address.
- Python
from synthex import Synthex
client = Synthex()
client.users.me()
- 200 Response
{
"id": "d7rhfmtl68w82b5k68",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@gmail.com",
"default_payment_method_id": "pm_3875bhdm3io54719",
"promo_credit_granted": datetime(2025, 3, 15, 18, 20, 41),
"is_verified": true
}