Punchh Custom Segments API

The Custom Segments API from Punchh — 5 operation(s) for custom segments.

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api2/dashboard/custom_segments List all custom segments · List All Custom Segments #
Ask an LLM
“What custom segments has my business created?”
“Can I see every custom guest list we've built?”
Tell an agent
List all of our custom segments.
Show the custom segments, including segment {ID}.
POST /api2/dashboard/custom_segments Create an empty custom segment · Create a Custom Segment #
Ask an LLM
“How do I create a new custom segment to hold a hand-picked list of guests?”
“Are users added at the time a custom segment is created?”
Tell an agent
Create a custom segment named {name}.
Make a new custom segment {name} described as {description}.
PATCH /api2/dashboard/custom_segments Rename or redescribe a custom segment · Update a Custom Segment #
Ask an LLM
“Can I change the name or description of an existing custom segment?”
“What fields of a custom segment can be edited?”
Tell an agent
Rename custom segment {custom_segment_id} to {name}.
Update the description of custom segment {custom_segment_id} to {description}.
DELETE /api2/dashboard/custom_segments Delete a custom segment · Delete a Custom Segment #
Ask an LLM
“How do I permanently remove a custom segment we no longer use?”
“Can a deleted custom segment be recovered?”
Tell an agent destructive · confirm first
Delete custom segment {custom_segment_id}.
Remove the custom segment {custom_segment_id} from the database.
GET /api2/dashboard/custom_segments/members Check whether a guest is in a custom segment · Search If User Exists in a Custom Segment #
Ask an LLM
“Is a particular guest already a member of this custom segment?”
“Can I check segment membership by email instead of user ID?”
Tell an agent
Check if {email} belongs to custom segment {custom_segment_id}.
Is user {user_id} in custom segment {custom_segment_id}? Look it up.
POST /api2/dashboard/custom_segments/members Add one guest to a custom segment · Add User to a Custom Segment #
Ask an LLM
“How do I add a single guest to a custom segment?”
“If I pass both an email and a user ID when adding a guest, which one wins?”
Tell an agent
Add {email} to custom segment {custom_segment_id}.
Put user {user_id} into custom segment {custom_segment_id}.
DELETE /api2/dashboard/custom_segments/members Remove one guest from a custom segment · Remove User From a Custom Segment #
Ask an LLM
“How do I take a single guest out of a custom segment?”
“Can I remove someone from a segment using just their email?”
Tell an agent destructive · confirm first
Remove {email} from custom segment {custom_segment_id}.
Take user {user_id} out of custom segment {custom_segment_id}.
POST /api2/dashboard/custom_segments/members/bulk_add Bulk add guests to a segment from a CSV · Bulk Add Users to a Custom Segment #
Ask an LLM
“Can I upload a CSV of user IDs and emails to fill a custom segment?”
“What columns does the bulk add CSV file need?”
Tell an agent
Upload CSV {bulk_guest_activity_file} to add users to custom segment {custom_segment_id} as job {name}.
Run a bulk CSV add named {name} into segment {custom_segment_id} from {bulk_guest_activity_file}.
DELETE /api2/dashboard/custom_segments/members/bulk_remove Bulk remove guests from a segment via CSV · Bulk Remove Users From a Custom Segment #
Ask an LLM
“How do I remove many guests from a custom segment at once with a file?”
“Does the bulk removal CSV use the same user_id and email columns?”
Tell an agent destructive · confirm first
Remove the users in CSV {bulk_guest_activity_file} from custom segment {custom_segment_id} as job {name}.
Bulk-remove guests from segment {custom_segment_id} using file {bulk_guest_activity_file}, job name {name}.
POST /api2/dashboard/custom_segments/members/add_users Bulk add guests to a list segment by ID or email · Bulk Add Users to a Custom List Segment #
Ask an LLM
“Can I add a list of emails and user IDs to a custom list segment without uploading a file?”
“Which identifiers come back as invalid when adding users in bulk, and can it run asynchronously?”
Tell an agent
Add these users {user_identifiers} to custom list segment {custom_segment_id}.
Asynchronously add {user_identifiers} to list segment {custom_segment_id} using method {bulk_method}.

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/mobile-access-token-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/mobile-create-user-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/mobile-login-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/mobile-mark-offers-read-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/mobile-transaction-details-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/mobile-transaction-details-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/mobile-update-user-profile-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/mobile-user-session-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/mobile-access-token-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/mobile-create-user-request-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/mobile-login-request-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/mobile-mark-offers-read-request-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/mobile-transaction-details-request-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/mobile-transaction-details-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/mobile-update-user-profile-request-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/mobile-user-session-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/online-ordering-online-order-checkin-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/online-ordering-online-order-checkin-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/online-ordering-online-order-redemption-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/online-ordering-online-order-redemption-response-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/online-ordering-online-order-checkin-request-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/online-ordering-online-order-checkin-response-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/online-ordering-online-order-redemption-request-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/online-ordering-online-order-redemption-response-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-schema/platform-functions-redeemable-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-structure/platform-functions-redeemable-structure.json

Other Resources

🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/mobile-access-token-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/mobile-create-user-request-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/mobile-login-request-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/mobile-mark-offers-read-request-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/mobile-transaction-details-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/mobile-transaction-details-request-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/mobile-update-user-profile-request-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/mobile-user-session-example.json
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-ld/punchh-mobile-context.jsonld
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/collections/punchh-mobile.postman_collection.json
🔗
OpenCollection
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/collections/punchh-mobile.opencollection.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/online-ordering-online-order-checkin-request-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/online-ordering-online-order-checkin-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/online-ordering-online-order-redemption-request-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/online-ordering-online-order-redemption-response-example.json
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-ld/punchh-online-ordering-context.jsonld
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/collections/punchh-online-ordering.postman_collection.json
🔗
OpenCollection
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/collections/punchh-online-ordering.opencollection.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/examples/platform-functions-redeemable-example.json
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/json-ld/punchh-platform-functions-context.jsonld
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/collections/punchh-platform-functions.postman_collection.json
🔗
OpenCollection
https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/collections/punchh-platform-functions.opencollection.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/punchh:punchh-custom-segments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

punchh-custom-segments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Platform Functions Custom Segments API
  version: '1.0'
  description: This API documentation is intended to provide comprehensive information for admin users of the Punchh platform. Many of the settings and available actions depend on an appropriate level of access to Platform Functions APIs.
  contact:
    name: Punchh DevSupport
    url: https://developers.punchh.com
servers:
- url: https://SERVER_NAME_GOES_HERE.punchh.com
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/punchh/refs/heads/main/openapi/punchh-custom-segments-api-openapi.yml