TI store API suite
Authentication
TI store APIs use OAuth 2.0 for secure access. To interact with them, you will need an access token included in the request header. To obtain an access token, call the OAuth API at https://transact.ti.com/v1/oauth/accesstoken.
Obtaining an access token
We use the client credentials flow to get tokens. Ensure the following for a successful request:
- Content-Type: Set it to "application/x-www-form-urlencoded”
- Request URL: Use the provided URL without additional query parameters.
- Request body: Include these parameters (separated by “&” without encoding):
- grant_type
- client_id
- client_secret
Example request body:
"grant_type=client_credentials&client_id=[CLIENT_ID]&client_secret=[CLIENT_SECRET]"
Using the access token
- The token is valid for 60 minutes. Before using the token in other APIs, check whether the access token has expired.
- Include the access token (also called a bearer token) in the header of all API requests.
Response for a successful request:
Example authentication payload and header of an access token request from Insomnia client:
Insomnia request OAuth2 Settings:
Authentication example in VB.net (framework 4.6.1):
Authentication example in C# (framework 4.6.1):