Skip to main content
Do you like Artifex? Give it a ⭐ star on GitHub!

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
    str
    nullable

    The id of the user's default payment method. If the user has no payment method, this field will be None.
  • promo_credit_granted
    datetime
    nullable

    The date and time when the user was granted promotional credits. If the user has no promotional credits, this field will be None.
  • is_verified
    bool

    Whether the user has verified their email address.
from synthex import Synthex

client = Synthex()
client.users.me()
{
"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
}