Authentication
Every request to the Review Rover API needs an API token, sent as a bearer token. Each token is tied to one account and carries one or more scopes that limit what it can do.
Create a token
Create tokens in the Review Rover app under Settings » Integrations » API Token Management. A token looks like rr_live_ followed by 32 characters. Review Rover shows the full token once, when you create it, and stores only a hash, so copy it somewhere safe right away.
Send it in the Authorization header:
Example request
curl https://api.reviewrover.co/api/v1/me \
-H "Authorization: Bearer rr_live_..."
Keep tokens out of source control and client-side code. If a token leaks, delete it in the app; it stops working immediately.
Scopes
Each token has one or more scopes. New tokens get read unless you choose more, and only account admins can create tokens with send.
| Scope | Allows |
|---|---|
read | GET requests: list and fetch contacts, reviews, campaigns and reports. |
write | Requests that create, change or delete data. |
send | Requests that can message a customer or publish to Google. |
These requests need send:
POST /v1/contacts, because new contacts can be enrolled in a campaign automatically. The Zapier integration's contact upsert needssendfor the same reason.POST /v1/enrollmentsandPOST /v1/instant_messages.POST /v1/reviews/:review_id/replyandPATCH /v1/reviews/:review_id/reply, which publish the reply to Google.POST /v1/campaignsandPATCH /v1/campaigns/:idwhen the body setsactive: true.
The API reference lists the scope for every endpoint. A token without the required scope gets 403:
403 insufficient_scope
{
"error": "This API token doesn't have the 'send' permission required for this request. Create a token with the 'send' scope in Settings > API Tokens.",
"code": "insufficient_scope",
"required_scope": "send"
}
Accounts
A token belongs to the account it was created in, and every request acts on that account. If you pass an account_id for a different account, the request fails with 403 and code: "account_mismatch".
Tokens created before scopes existed ("legacy" tokens) keep all three scopes. If the user belongs to several accounts, a legacy token isn't tied to one, and you choose the account with the account_id parameter.
When a token stops working
A request returns 401 when the token:
- is missing or malformed;
- was deleted, or has passed its expiry date;
- belongs to a user who is no longer a member of the account, or whose account was deleted.
Some of these 401 responses have an empty body.
Signing in with a password
POST /v1/auth exchanges an email and password for a token. It exists for Review Rover's own apps and scripts. Each sign-in issues a new secret and invalidates the token from the previous sign-in, so don't use it for integrations. Create an API token instead.
