Skip to content

Profile

Fetch the currently authenticated user's profile.

ProfileResource

ProfileResource(http: HTTPClient)

Bases: BaseResource

Synchronous profile resource.

get

get() -> Profile

Fetch current user profile.

Returns:

Type Description
Profile

Profile object containing user information

Raises:

Type Description
ChatwootAuthError

If authentication fails

Examples:

>>> client = ChatwootClient(base_url="", api_token="")
... profile = client.profile.get()
... print(profile.name)

AsyncProfileResource

AsyncProfileResource(http: AsyncHTTPClient)

Bases: AsyncBaseResource

Asynchronous profile resource.

get async

get() -> Profile

Fetch current user profile (async).

Returns:

Type Description
Profile

Profile object containing user information

Raises:

Type Description
ChatwootAuthError

If authentication fails

Examples:

>>> client = AsyncChatwootClient(base_url="", api_token="")
... profile = await client.profile.get()
... print(profile.name)