Retrieve the current user
import os
from stainless_v0 import Stainless
client = Stainless(
api_key=os.environ.get("STAINLESS_API_KEY"), # This is the default and can be omitted
)
user = client.user.retrieve()
print(user.id){
"id": "id",
"email": "email",
"github": {
"username": "username"
},
"name": "name",
"object": "user"
}Returns Examples
{
"id": "id",
"email": "email",
"github": {
"username": "username"
},
"name": "name",
"object": "user"
}