GET
/
businesses
/
{id}
/
segments
curl --request GET \
  --url https://api.pocketflows.com/businesses/{id}/segments \
  --header 'Authorization: Basic <encoded-value>'
{
  "segments": [
    {
      "id": "<string>",
      "name": "<string>",
      "filter": "<string>",
      "static_customers": [
        "<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

Response

200 - application/json

A dictionary with a segments property which is an array of Segment objects

The response is of type object.