This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI-API: API Key access issue

Part Number: TI-API

Hi,
I'm encountering an issue with accessing your APIs. Here are my details:

Our account was established several months ago, and today I utilized the "Regenerate key" function on www.ti.com/.../accessApi because our previous credentials were no longer functional. 

Now, for authentication purposes (https://www.ti.com/developer-api/product-information-api-suite/authentication.html), I attempted to invoke the following endpoint: transact.ti.com/.../accesstoken

However, it returned an error:

{
"error": "invalid_client",
"error_description": "client_id or client_secret are not correct",
"error_uri": "See the full API docs at ">api-portal.ti.com/order-api-authentication"
}

I engaged in a live chat with your support team (Dinah), who suggested reaching out here. Could you please assist me in resolving this issue?

  • Hi NWI, we are the API support connectivity solutions IT team. Happy to Assist, I have your secret and Key from the notes - it seems I can validate the auth token. - can i send you a private message and you share to me the complete payload in private message.  Regards Tammy


  • Hi,


    Sure. Waiting for your message.
    Thanks

  • Hi 

    also note as this is a public forum, you shared your key and secret originally - you may want to regenerate new ones for security reasons.

    Please request your access token without additional parameters - it should be valid then --> as seen here.

    • The request should be sent to the appropriate URL above without any additional query parameters.
    • The request parameters (grant_type, client_id, client_secret) must be in the request body, sent in a string, separated by "&" without any further encoding.
      For example: "grant_type=client_credentials&client_id=[CLIENT_ID]&client_secret=[CLIENT_SECRET]."
    • The access token is valid for 60 minutes. Before using the token in other APIs, check whether the access token has expired.
    curl --request POST \   
           --url transact.ti.com/.../accesstoken \   
           --header 'Content-Type: application/x-www-form-urlencoded' \   
           --data grant_type=client_credentials \   
           --data client_id=XXXXXXXXXXXXXXXXX \   
           --data client_secret=XXXXXXXXXXXXXXXXX

**Attention** This is a public forum