Authenticating Against the API

Now that you have your App ID, App Secret, and an API Token, you can begin making authenticated requests against the API.

These values are passed using the following headers:

X-Violet-App-Id
X-Violet-App-Secret
X-Violet-Token

As an example, the following request shows how you could use these values to perform a search against the product catalog for shirts with a minimum price of $15.00.

curl -X POST https://sandbox-api.violet.io/v1/catalog/products/search \
-H "X-Violet-App-Id: your-app-id-here" \
-H "X-Violet-App-Secret: your-app-secret-here" \
-H "X-Violet-Token: your-token-here" \
-H "Content-type: application/json" \
-d '{"query": "shirt", "min_price": 1500}'