Find your API key and secret
A2Reviews gives each connected store an API key and secret for the A2Reviews developer API. Use them when a developer or a third-party tool needs to work with your store's review data in A2Reviews.
Find your credentials
- In the A2Reviews dashboard, go to Sites Manager.
- Open the store you need credentials for.
- Scroll to the API Key & Secret section.
- Click Copy next to API Key and API Secret.
The same section links to the API Doc (https://api.a2rev.com/) and shows the API Endpoint (https://api.a2rev.com/v1/). The documentation lists the available requests, the parameters they take and how to authenticate.
Each store has its own key and secret. If you manage several stores, use the right credentials for each one.
Keep your secret safe
- Treat the API Secret like a password. Don't put it in theme code, browser JavaScript or public repositories.
- Share credentials only with developers or services you trust.
- Store them in your server's environment variables or a secrets manager, not in source code.
Reset your credentials
If you think your key or secret has leaked, or a developer no longer needs access:
- Open the store in Sites Manager.
- Click Reset API Key.
- Copy the new key and secret and update every integration that uses them.
Tip: Resetting creates a new key and a new secret straight away. The old ones stop working, so any integration still using them will fail until you update it.
Other developer options
- Theme developers can read review ratings directly in Shopify Liquid through the
a2reviews product metafields. See Shopify metafields and Shopify Flow.
- Automation without code: on Shopify, use the A2Reviews trigger and action in Shopify Flow.
- Bulk data: export reviews to CSV from the Products page, and import them with Import reviews from a CSV file.