---
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`

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.

---

[API](https://skmtc.net/pinterest/apis/pinterest-rest-api.md) · [All operations](https://skmtc.net/pinterest/apis/pinterest-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pinterest/pinterest-rest-api/revisions/b698c180678a/schema)
