Skip to main content
POST
/
businesses
/
{id}
/
reviews
/
embeds
Create a review embed
curl --request POST \
  --url https://api.pocketflows.com/businesses/{id}/reviews/embeds \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "review_embed_config": "<string>",
  "customer": "<string>"
}'
{
  "id": "<string>",
  "url": "<string>",
  "config": {
    "id": "<string>",
    "title": "<string>",
    "review_text_prompt": "<string>",
    "review_text_placeholder": "<string>",
    "min_stars_to_prompt_review": 123,
    "google_request_review_url": "<string>",
    "submit_cta": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the business

Body

application/json
review_embed_config
string
required

The ID of the review embed config

customer
string

The ID of the customer

Response

200 - application/json

The created ReviewEmbed object

id
string
required

The ID of the review embed

url
string
required

The URL to embed the review request

config
object
required

The config for the review embed

I