Files

36 lines
820 B
YAML

get:
tags:
- Profile
operationId: fetchProfile
summary: Fetch user profile
description: Get the user profile details
security:
- userApiKey: []
x-codeSamples:
- lang: python
label: "Fetch profile"
source: |
from chatwoot import ChatwootClient
client = ChatwootClient(
base_url="https://app.chatwoot.com",
api_token="your-api-token"
)
profile = client.profile.get()
print(profile.name, profile.email)
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/user'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'