Segment usage
Project defined events
Employees
Businesses
Variables
Customers
- GETList all customers for a business
- POSTCreate a customer
- POSTCreate multiple customers
- POSTUpdate multiple customers
- GETRetrieve a customer
- POSTUpdate a customer
- DELDelete a customer
- POSTUnsubscribe a customer from campaigns and triggers
- GETRetrieve unsubscribe info for a customer
- POSTResubscribe a customer to campaigns and triggers
- GETRetrieve the segments a customer belongs to
Segments
Unsubscribe embeds
Email templates
- GETList all email templates for a business
- POSTCreate an email template
- POSTCreate a new email template using AI
- GETRetrieve an email template
- POSTUpdate an email template
- DELDelete an email template
- GETPreview an email template as an image
- GETPreview an email template
- POSTCreate a copy of an existing email template
- POSTCopy an email template as a one-off
Email template embeds
Project email templates
Emails
Email addresses
Sms templates
Sms template embeds
Sms messages
Campaigns
- GETList all campaigns
- POSTCreate a campaign
- GETRetrieve a campaign
- POSTUpdate a campaign
- DELDelete a campaign
- POSTStart a campaign
- POSTStop a campaign
- POSTSchedule a campaign to begin
- GETPreview a campaign as an image
- GETPreview a campaign
- GETView a campaign interactively
- POSTCreate a campaign draft from a campaign template
- GETGet the executions of a campaign
- GETGet all variables associated with a campaign's steps
Campaign embeds
Triggers
Trigger embeds
Email blasts
Project email addresses
Project phone numbers
Campaign templates
Trigger templates
Filter definitions
Sync
Reviews
Review embeds
Rewards programs
Location members
Locations
Promotions
Rewards profiles
Retrieve the segment usage for a business
GET
/
businesses
/
{id}
/
segment_usage
curl --request GET \
--url https://api.pocketflows.com/businesses/{id}/segment_usage \
--header 'Authorization: Basic <encoded-value>'
{
"sms": 123,
"mms": 123,
"email": 123,
"start_time": "<string>",
"end_time": "<string>"
}
Defaults to the last 30 days. Can specify start_time
and end_time
for a specific time range
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
The ID of the business
Query Parameters
The start time of the usage period. Provided as a string in ISO 8601 format.
The end time of the usage period. Provided as a string in ISO 8601 format.
Response
200 - application/json
The segment usage for the business within the time window
The response is of type object
.
curl --request GET \
--url https://api.pocketflows.com/businesses/{id}/segment_usage \
--header 'Authorization: Basic <encoded-value>'
{
"sms": 123,
"mms": 123,
"email": 123,
"start_time": "<string>",
"end_time": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.