from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Get user from workspace
user = portkey.admin.workspaces.users.retrieve(
workspace_id="WORKSPACE_SLUG",
user_id="USER_ID"
)
print(user)
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Get user from workspace
user = portkey.admin.workspaces.users.retrieve(
workspace_id="WORKSPACE_SLUG",
user_id="USER_ID"
)
print(user)