MagicReply API

Read your reviews and the reply MagicReply drafted for each one from your own tools, Zapier, or a script. The API reads reviews. It cannot post a reply, so nothing goes to Google through it.

API keys

In the dashboard, open Settings and find API keys. Create a key named for the tool. It is shown once, so copy it then. A business can have 5 keys. A key reads only the business it was made for, and you can revoke it in Settings at any time; a revoked key stops working at once.

Send the key in one of two headers:

  • Authorization: Bearer mr_live_YOUR_KEY
  • X-API-Key: mr_live_YOUR_KEY

All requests go to https://api.magicreply.ai/api/v1. Keep the key out of web pages and public code.

List reviews

GET /api/v1/reviews, newest first. Add any of these to the query string:

location
Only reviews of one of your Google locations (the location id). An id that is not yours returns an empty list.
rating
A whole number from 1 to 5.
unreplied
true returns only reviews with no published reply. false, or leaving it out, returns all.
since
Only reviews written on or after this date or time, such as 2026-12-01 or 2026-12-01T09:30:00Z.
page
The page, from 1. Default 1.
pageSize
Reviews per page, 1 to 100. Default 20.
curl "https://api.magicreply.ai/api/v1/reviews?unreplied=true&rating=1&since=2026-12-01" \
  -H "Authorization: Bearer mr_live_YOUR_KEY"

The answer:

{
  "success": true,
  "data": {
    "reviews": [
      {
        "id": "ChZDSUhNMG9nS0VJQ0FnSUN...",
        "locationId": "1234567890",
        "rating": 1,
        "comment": "Waited forty minutes and nobody told us why.",
        "reviewerName": "Sam R.",
        "date": "2026-12-03T14:12:00.000Z",
        "source": "google",
        "reply": null,
        "draft": {
          "text": "Hi Sam, we are sorry about the wait. ...",
          "source": "generation",
          "updatedAt": "2026-12-03T14:20:41.000Z"
        }
      }
    ]
  },
  "meta": { "page": 1, "limit": 20, "total": 1, "totalPages": 1 }
}

reply is the reply published on Google, or null. draft is the latest reply draft MagicReply or your team saved for that review, or null if there is none. A draft is not published.

Read one review

GET /api/v1/reviews/:id returns { "success": true, "data": { "review": { ... } } } with the same fields as one entry of the list, including the latest draft.

curl "https://api.magicreply.ai/api/v1/reviews/REVIEW_ID" \
  -H "X-API-Key: mr_live_YOUR_KEY"

Test the key, and add customers

GET /api/v1/ping answers 200 with your business name when the key works; Zapier's "test connection" uses it. POST /api/v1/customers adds a customer from your booking tool. Its steps are in the Zapier guide.

In Zapier

Add the action Webhooks by Zapier with the event GET, and fill it in like this. A later step can post the unreplied reviews to Slack, a sheet, or a task list.

URL
https://api.magicreply.ai/api/v1/reviews
Query string params
unreplied = true, since = (the Zap's last run time)
Headers
Authorization = Bearer mr_live_YOUR_KEY

Limits and errors

Each key may make 60 requests a minute; another key on the same business has its own count. Errors come back as JSON:

{
  "success": false,
  "error": { "code": "UNAUTHORIZED", "message": "Invalid or revoked API key" }
}
400
A parameter could not be read. The message names it.
401
No key, a wrong key, or a revoked key.
404
No such review in your business. A review that belongs to another business answers the same way.
429
More than 60 requests in a minute on this key. Wait the seconds in the Retry-After header.

Questions? Email support@magicreply.ai or read the FAQ.