# Create a lead segment **POST /lead-segments** Create a lead segment ## Servers - https://api.development.pexipengage.com/enterprises/acme: https://api.development.pexipengage.com/enterprises/acme () ## Authentication methods - O auth2 ## Parameters #### Headers - **Authorization** (string) Bearer token used for authorization - **X-Correlation-Id** (string) Unique identifier to allow referencing a particular transaction or event chain ## Body parameters Content-type: application/json - **description** (string | null) - **code** (string) REPEATVISITOR ## Responses ### 201: Successful operation #### Body Parameters: application/json (object) - **data** (object) ### 422: Business validation failed * `LEAD_SEGMENT_CODE_ALREADY_IN_USE` See [Error codes](#topic-error-codes) #### Body Parameters: application/json (object) - **errors** (array[object]) [Powered by Bump.sh](https://bump.sh)