9 operations. Call each with POST https://app.chirply.io/api/v1/actions/<name> and a bearer token; the response is { "data": { "action", "summary", "result" } }. A read badge means the operation changes nothing; write requires the credential’s write scope.
Create Smart Segment
segments.createwrite
Save a reusable dynamic audience definition. Exact previews are timestamped background snapshots, while an outbound campaign resolves its own guarded audience from the then-current definition. Saving sends nothing and does not copy contacts.
Parameters
Field
Type
Required
Description
name
string
required
Unique human-readable segment name in this account.
description
string (or null)
optional
Optional explanation of what this audience represents.
match_type
"all" | "any"
optional
Whether every top-level condition or at least one top-level condition must match. Default: "all"
rules
object[]
required
One to twenty validated scalar or correlated-relationship conditions. Call segments.fields first for field, operator, filter, and option metadata.
rules[].id
string
required
Stable client-generated id unique within this rule list.
rules[].field
string
required
Scalar field key, custom.<key>, or relationship key advertised by segments.fields.
Over MCP the same operation is the tool segments_create at https://app.chirply.io/api/mcp, same bearer token, same input.
Delete Smart Segment
segments.deletewriteconfirm
Permanently delete a saved Smart Segment. Contacts are never deleted. The database refuses deletion while any campaign still includes or excludes the segment so a draft audience cannot silently expand.
Marked confirm: this operation is irreversible, reaches real people, or spends money. Holding a credential is itself the confirmation for API and MCP callers — call it only when you mean it. The in-app assistant refuses to run it without a human approving first.
Over MCP the same operation is the tool segments_delete at https://app.chirply.io/api/mcp, same bearer token, same input.
List Smart Segment fields
segments.fieldsread
List every Smart Segment scalar field and correlated relationship, its supported operators and filters, the account's custom contact fields, and current tenant-scoped choices such as tags, lists, pipelines, team members, forms, Stripe accounts, and Stripe products. Read-only and performs no provider calls.
Over MCP the same operation is the tool segments_get at https://app.chirply.io/api/mcp, same bearer token, same input.
Check audience preview
segments.get_evaluationread
Read the durable progress or exact final result of a Smart Segment evaluation started by segments.preview or segments.refresh. Preparing results never expose a partial count as final; ready results return the exact count and at most five deterministic sample contact ids. Reads only and sends nothing.
Parameters
Field
Type
Required
Description
evaluation_id
string (uuid)
required
Evaluation id returned by segments.preview or segments.refresh.
Over MCP the same operation is the tool segments_get_evaluation at https://app.chirply.io/api/mcp, same bearer token, same input.
List Smart Segments
segments.listread
List the organization's saved Smart Segments, including their complete validated rule definitions and last successful display-only count metadata. This does not evaluate membership.
Over MCP the same operation is the tool segments_list at https://app.chirply.io/api/mcp, same bearer token, same input.
Preview audience
segments.previewread
Validate unsaved Smart Segment conditions and start a tenant-scoped, exact background evaluation. Large accounts return a preparing status and durable evaluation id for segments.get_evaluation; a final count and up to five sample contact ids appear only after concurrent CRM changes are reconciled. Reads only and sends nothing.
Parameters
Field
Type
Required
Description
match_type
"all" | "any"
optional
Whether every top-level condition or at least one top-level condition must match. Default: "all"
rules
object[]
required
One to twenty validated scalar or correlated-relationship conditions. Call segments.fields first for field, operator, filter, and option metadata.
rules[].id
string
required
Stable client-generated id unique within this rule list.
rules[].field
string
required
Scalar field key, custom.<key>, or relationship key advertised by segments.fields.
Over MCP the same operation is the tool segments_preview at https://app.chirply.io/api/mcp, same bearer token, same input.
Refresh Smart Segment count
segments.refreshread
Start or deduplicate an exact background evaluation of one saved Smart Segment's current definition. The saved display count is published only if the definition and tenant configuration remain unchanged through final reconciliation. Sends nothing and does not alter contacts.
Over MCP the same operation is the tool segments_refresh at https://app.chirply.io/api/mcp, same bearer token, same input.
Save changes
segments.updatewrite
Replace a Smart Segment's name, description, matching mode, and complete validated rule set. Prior preview counts become historical, future evaluations use the new definition, and already-enrolled campaign recipients do not change.
Parameters
Field
Type
Required
Description
id
string (uuid)
required
Smart Segment id to update.
name
string
required
Unique human-readable segment name in this account.
description
string (or null)
optional
Optional explanation of what this audience represents.
match_type
"all" | "any"
required
Whether every top-level condition or at least one top-level condition must match.
rules
object[]
required
One to twenty validated scalar or correlated-relationship conditions. Call segments.fields first for field, operator, filter, and option metadata.
rules[].id
string
required
Stable client-generated id unique within this rule list.
rules[].field
string
required
Scalar field key, custom.<key>, or relationship key advertised by segments.fields.