Got 403 Forbidden for https://api.line.me/v2/profile

Pre condition, Condition to reproduce

I request access token with following request body. I also add scope as 'profile' for user profile inquiry

curl --location --request POST 'https://api.line.me/v2/oauth/accessToken' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=xxx' \
--data-urlencode 'client_secret=xxx' \
--data-urlencode 'scope=profile'

Issue/ Error Message details

I use the request token to call https://api.line.me/v2/profile but I got 403 Forbidden

    "message": "Access Denied"

Any idea for this issue please. Thank you so much:)

  • 0
  • 1
  • 3197
  • X(旧Twitter) facebook

Expected request path is /v2/bot/profile/{userid}. https://developers.line.biz/en/reference/messaging-api/#users

  • 0

Similar posts

    No similar posts

Are you sure? question.vm