---
title: "Customer segments"
description: "8 endpoints."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/customer-segments"
---
# Customer segments

> 8 endpoints.

## Endpoints

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      Endpoint
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/customer-segments/list-customer-segments">
        <code>
          /v1/businesses/{biz}/customer_segments
        </code>
      </a>
    </td>
    
    <td>
      List customer segments
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/customer-segments/save-a-customer-segment">
        <code>
          /v1/businesses/{biz}/customer_segments
        </code>
      </a>
    </td>
    
    <td>
      Save a customer segment
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/customer-segments/get-a-customer-segment">
        <code>
          /v1/businesses/{biz}/customer_segments/{seg}
        </code>
      </a>
    </td>
    
    <td>
      Get a customer segment
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PATCH
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/customer-segments/edit-a-customer-segment">
        <code>
          /v1/businesses/{biz}/customer_segments/{seg}
        </code>
      </a>
    </td>
    
    <td>
      Edit a customer segment
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        DELETE
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/customer-segments/delete-a-customer-segment">
        <code>
          /v1/businesses/{biz}/customer_segments/{seg}
        </code>
      </a>
    </td>
    
    <td>
      Delete a customer segment
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/customer-segments/the-customers-a-segment-matches">
        <code>
          /v1/businesses/{biz}/customer_segments/{seg}/customers
        </code>
      </a>
    </td>
    
    <td>
      The customers a segment matches
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/customer-segments/the-attributes-a-segment-may-filter-on">
        <code>
          /v1/businesses/{biz}/customer_segments/attributes
        </code>
      </a>
    </td>
    
    <td>
      The attributes a segment may filter on
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/customer-segments/the-population-an-unsaved-filter-set-names">
        <code>
          /v1/businesses/{biz}/customer_segments/preview
        </code>
      </a>
    </td>
    
    <td>
      The population an unsaved filter set names
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
