Get LINE User Profile
line_get_user_profileFetch a LINE user's profile data (display name, picture, status message, language) by user ID. Works only if user has added the bot as a friend.
Instructions
Fetch a LINE user's profile (display name, picture, status message, language) by user ID.
Note: Only works if the user has added the bot as a friend AND has not blocked it AND has consented to share profile (per LINE TOS). Returns 404 ambiguously if any of these conditions fail — we surface a clear Thai-language explanation.
Args:
user_id: LINE user ID (typically starts with 'U').
oa: optional OA id.
response_format: 'markdown' (default) | 'json'.
Returns: { user_id, display_name, picture_url?, status_message?, language? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | LINE user ID (starts with 'U' for chat users) | |
| oa | No | ||
| response_format | No | markdown |