Skip to main content
POST
/
businesses
/
{id}
/
embeds
Create an embed
curl --request POST \
  --url https://api.pocketflows.com/businesses/{id}/embeds \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "plg": true
}'
{
  "id": "<string>",
  "business": "<string>",
  "expires_at": "<string>",
  "url": "<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
plg
boolean

Whether the embed is a PLG embed. If not provided, the embed will not be a PLG embed.

Response

200 - application/json

The created Embed object

id
string
required

The ID of the embed

business
string
required

The ID of the business

expires_at
string
required

The time when the embed will expire in ISO 8601 format

url
string
required

The URL of the embed

I