Authentication
Get access to PowerReviews API
Reach out to your account manager at PowerReviews to create the Client ID and Client Secret to access the API.
Access Tokens
Your application must send an OAuth2 access token in an Authorization header with each request. To request an access token, you need:
API Keys
You have two different API keys
client_id
Your application’s client ID
client_secret
Private identifier required for accessing data
How to get your access token
cURL
curl -X POST --user <client_id>:<client_secret> \
'https://enterprise-api.powerreviews.com/oauth2/token?grant_type=client_credentials' \
-H 'Content-Type: application/x-www-form-urlencoded
RESPONSE
{
"access_token": "eyJraWQiOiJcL1FzZmszSWJmd1JEbENQMXR6T...",
"expires_in": 3600,
"token_type": "Bearer"
}
The token expires in 3600 seconds (1 hour)
Using the access token
cURL
curl -s https://enterprise-api.powerreviews.com/v1/reviews \
-H 'Authorization:Bearer <access_token>' \
-H 'Accept:application/json'