You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

获取LinkedIn访问令牌报错求助:缺少client_id参数

Troubleshooting LinkedIn "client_id missing" Error in Postman

Hey there! Let's work through this frustrating auth error you're hitting—getting a invalid_request because of a missing client_id even though you already have one is such a common gotcha, but we can sort it out.

Here are the most likely fixes to check step by step:

  • Make sure you're sending parameters as form-encoded data
    LinkedIn's OAuth 2.0 endpoints require parameters to be sent in x-www-form-urlencoded format, not JSON. In Postman:

    1. Go to the Body tab of your request
    2. Select the x-www-form-urlencoded option
    3. Add your client_id, client_secret, and other required parameters (like grant_type) as key-value pairs here.
      Sending these in a JSON body is a super common mistake that triggers this exact error.
  • Double-check parameter spelling and case
    Confirm you're using client_id (with an underscore, not a hyphen like client-id)—LinkedIn's API is case-sensitive, so even a tiny typo will break the request. Also make sure you haven't accidentally added extra spaces when copying the ID from the developer portal.

  • Verify the request is actually sending the parameter
    Use Postman's built-in Console (click the icon in the bottom-left corner) to inspect the full request being sent. Look for the Form Data section to confirm client_id is present with the correct value. Sometimes Postman doesn't save parameter changes, so this is a quick way to validate.

  • Confirm your app details are correct
    Head back to the LinkedIn Developer Portal and double-check:

    • You're using the client_id from the correct app (if you have multiple)
    • Your app is in an active state (even test apps should work for basic token requests)
    • You didn't mix up client_id and client_secret (easy to do when copying!)
  • Test with a minimal request
    Strip down your request to only the essentials to rule out other issues. For example, if using the Client Credentials flow:

    • Request URL: https://www.linkedin.com/oauth/v2/accessToken
    • Method: POST
    • Form-encoded body:
      • grant_type=client_credentials
      • client_id=YOUR_ACTUAL_CLIENT_ID
      • client_secret=YOUR_ACTUAL_CLIENT_SECRET
        If this works, the problem was likely extra parameters or incorrect flow setup in your original request.

Once you get the access token working, you should be good to go with calling LinkedIn's REST APIs from other tools—just make sure to include the token in the Authorization header as Bearer YOUR_ACCESS_TOKEN.

内容的提问来源于stack exchange,提问作者Ali

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 04:20:34