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: TI official documentation to help us setup API using insomnia (or equivalent)

Part Number: TI-API

Is there any TI official documentation to help us setup API using insomnia (or equivalent)?

Insomnia was suggest by a TI consultant so we're wondering if any documentation us available.

thanks in advance,

Diogo Oliveira,

IT Manager

  • Hi Diogo,

    We do not have any in house documentation on Insomnia , but, it is an open source application with a  lot of information available on the internet.  Here is their home page: https://insomnia.rest/    Let me know if you have other questions.

    Regards,

    Faye

  • Thanks for the reply Faye. Do you know where can we find the "client_id" and the "secret_id"?

    The secret_id is the same as the API key secret? And what about the "client_id", where can we find it?

    thanks once again

    Diogo

  • Diogo,

    Once you login to TI.com using your myTI account info, click on your name (top right) --> Dashboard;  Then on the left-hand side, you'll find the option for "API keys and access", which will take you to the appropriate page.   If you have forgotten your keys/secret, you'll need to "Regenerate" them. 

    Important:  Key secret information will be generated in 24 hrs.  You will have 30 minutes, to login and capture this information.  So, it's important for you to log the time, when you select the "regenerate" button.  

    Let me know if you need anything else.

    Regards,

    Faye

  • Hi Faye,

    using API key for "client_id" and API secret for "client_secret" in Insomnia, Diogo is receiving an error:

    Following the steps from this page: https://www.ti.com/developer-api/store-api/authentication.html

    Can you advise what could be leading to this error?

  • Bart,

    I'll send Diogo a private chat so that I can get the exact details of what he submitted.

  • Bart,

    Also let him know that I don't see where he ever received a token, which means there was a problem with his key and/or secret.  Ask him to re-check and make sure that he eliminates any spaces around these values.  In the meantime, I sent him a friend request so that I can get more details from him.

    Regards,

    Faye

  • Hello, Bart, Faye,

    Thank you for your follow up on this.

    I've rechecked all again to be sure there's no space or something else that could be wrong.

    I'll regenerate the key and secret, maybe there's an issue with them.

    But it seems I'll need to wait 24h more.

    I'll keep you updated if that solve the authentication problem.

    thanks one again

    regards

    Diogo

  • For information I've asked to generate a new key/secret and I got them immediately.

    So I've did a new test with those new codes and same issue.

    Here's the configuration for the moment on a post:

    (There's any space on the fields).

    Can you please confirm that the "client_id" is the API key received and the "client_secret" is the API secret?

    Thank you in advance,

    best regards

    Diogo

    Removed the pic with your key/secret.

  • Also can you please confirm that the keys are approved on your side?

    thanks in advance,

    Diogo

  • Hi Diogo,

    Your credentials look fine and you are approved for all of the TI Store APIs.   Please check your "POST" statement - it should reflect making a call to the appropriate API.  Below is a call to test the Order-create API.  Let me know if you still have problems.


    Regards,

    Faye

  • Hi Faye,

    Appreciated on your reply.

    I've changed the POST statement into the orders test you've suggested and I don't have authentication error. So I suppose it's ok, can you confirm?
    I get a syntax error but I suppose because the test missed more details for the request.

    I will definitely need assistance for configuring this to be able to pass orders on the store. Any possibility of an assistance from TI?

    thanks in advance

    regards

    Diogo

     

  • Hi Diogo,

    You are making progress!  This error means that there is a comma, bracket, etc... missing in your JSON call.  I'm going to transition to the private chat and request that you send me more information there.

    Regards,

    Faye

**Attention** This is a public forum