Getting Started
...
UpStart Commerce APIs
Consumer APIs

Anonymous Bearer Token

8min

This section outlines the process of creating an Anonymous Bearer Token to easily access and engage with UpStart Commerce Consumer APIs. This will help you to access the API without having to log in or register. Follow these steps to establish an anonymous token through our APIs.

Generate an Anonymous Bearer Token

Step 1: Obtain Tenant ID and Site ID

For authorization, you will require two parameters Tenant ID and Site ID. If your organization has a development instance, get the Tenant ID and Site ID from the admin of your environment. If not, you can create a Sandbox environment to explore our APIs by visiting this link.

Step 2: Obtain an Access Token

For authorization, you will require an Access Token. Copy the Curl below to obtain an Access Token. Replace and with the specific values obtained from the response in step 1.

Request:

Curl


For more information, go to the obtain an Access Token endpoint example request.

Step 3: Check the Status Code



Step 4: Access Token Obtained Successfully

After executing the Curl above, you have successfully obtained a valid response for "accessToken". Copy this Access Token and paste it in the authorization field.

Response:

JSON


Token Validity: The Anonymous Bearer Token, once established, does not have an expiry, providing flexibility for customers during the exploration of UpStart Commerce APIs.

Make Your First API Call with Anonymous Bearer Token

To make your first call by using an Anonymous Bearer Token, you need to replace your "Anonymous Bearer Token" (obtained above) in the request authorization header by using the Curlbelow.

Request:

Curl

Curl


Response:

JSON

JSON


Upon receiving the successful response for the Search Items request, you have completed your first UpStart Commerce Consumer API call, using an anonymous bearer token.