line / line/line-openapi

Add GET /v2/profile endpoint to channel-access-token.yml

Open
#117 1 comment 0 reactions 1 assignee View on GitHub

@mokuzon is already working on this.

Since Mar 25, 2026.

untriaged
Dominant language
JavaScript
Stars
205
Forks
42
PR merge metrics
No merged PRs in 30d

Description

## Feature Request

**Is your feature request related to a problem? Please describe.**
The `channel-access-token.yml` currently does not include the `GET /v2/profile` endpoint, which means auto-generated SDKs (like line-bot-sdk-ruby) lack a method to retrieve user profile information.

When we want to get user information (userId, displayName, pictureUrl, statusMessage) after LINE Login authentication, we have to manually implement HTTP requests since no SDK method exists for this endpoint.

**Describe the solution you'd like**
Please add the following endpoint to `channel-access-token.yml`:

- **Endpoint**: `GET https://api.line.me/v2/profile`
- **Operation ID**: `getUserProfile`
- **Authentication**: Bearer token (access token with `profile` scope)
- **Response Model**: `GetUserProfileResponse`
- Required: `userId` (string), `displayName` (string)
- Optional: `pictureUrl` (string), `statusMessage` (string)

**Reference**: https://developers.line.biz/en/reference/line-login/#get-user-profile

**Describe alternatives you've considered**
I've considered the following alternatives, but none are ideal:
1. SDK users manually implement requests using an HTTP client
2. Fork the SDK and extend it independently
3. Add methods manually without using auto-generation

By including it in the official OpenAPI specification, all SDKs can support this feature consistently.

**Additional context**
This endpoint is part of the LINE Login API and is widely used. Adding it would enable more complete LINE Login support across all SDKs, including line-bot-sdk-ruby.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.