---
title: "Create customer segments"
method: POST
path: "/ad_accounts/{ad_account_id}/customer_segments"
tags: ["customer_segment"]
---

# Create customer segments

`POST /ad_accounts/{ad_account_id}/customer_segments`

## Request

- Base URL: `https://api.pinterest.com/v5`
- URL: `https://api.pinterest.com/v5/ad_accounts/{ad_account_id}/customer_segments`
- Auth: OAuth 2
  - Authorization code: `https://www.pinterest.com/oauth/`
  - Token URL: `https://api.pinterest.com/v5/oauth/token` scopes: `ads:write`
- TypeScript: <https://skmtc.dev/pinterest/apis/pinterest-rest-api/docs/ad_accounts/:ad_account_id/customer_segments/post.ts> (a function with typed inputs; its response is checked against the schema)

Customer segments allow advertisers to define existing customers for Pinterest Performance+ campaigns. Customer segments are made up of audience lists.

## Path parameters

- `ad_account_id` string, required

## Request body

- CustomerSegmentCreate: Resource create operation model.
  - `audience_ids` string[], required: Audience IDs included in the customer segment.
  - `name` string, required: Customer segment name.

## Response `200`

The request has succeeded.

- CustomerSegment
  - `ad_account_id` string: The ID of the ad account that this customer segment belongs to.
  - `audience_ids` string[], required: Audience IDs included in the customer segment.
  - `created_time` integer: Customer segment created time. Unix timestamp in seconds.
  - `id` string: Customer segment ID.
  - `name` string, required: Customer segment name.
  - `status` 'ACTIVE' | 'DELETED': Indicate targeting template is active or Deleted
  - `updated_time` integer: Customer segment updated time. Unix timestamp in seconds.

## Other responses

- `201`: Resource create operation completed successfully.
- `400`: The request could not be understood by the server due to unexpected data.
- `401`: Authentication is required and has either failed or not been provided.
- `403`: The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.
- `404`: The requested resource could not be found on this server.
- `429`: The user has sent too many requests in a given amount of time and is being rate limited.
- `default`: An unexpected error response.

## Changes

- **2026-06-04** (v5) `b698c180678a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pinterest/apis/pinterest-rest-api/changes/ad_accounts/:ad_account_id/customer_segments/post.md)

---

[API](https://skmtc.dev/pinterest/apis/pinterest-rest-api.md) - [All operations](https://skmtc.dev/pinterest/apis/pinterest-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pinterest/apis/pinterest-rest-api/revisions/b698c180678a?raw)
