Skip to content
AchaduDevelopers
Operational APIGo to website
Dashboard
Developers/API/segment_create
Segments

Create segment

Create a niche with your storefront setup.

POST/segmentssegments:write

Request

namestring · bodySegment name.mandatory
slugstring · bodyPublic slug.optional
descriptionstring · bodyDescription.optional
store_namestring · bodyStorefront name.optional
store_taglinestring · bodyPhrase from the window.optional
store_colorstring · bodyMain color.optional
auto_expandboolean · bodyEnables automatic expansion.optional
distributionstring · bodyDistribution strategy.optional
waitlistboolean · bodyActivates queue.optional

Example

curl
curl -X POST 'https://achadu.com/api/v1/segments' \
+  -H 'Authorization: Bearer ach_live_...' \
+  -H 'Accept: application/json' \
+  -H 'Content-Type: application/json' \
+  --data '{
  "name": "My integration",
  "slug": "string",
  "description": "string",
  "store_name": "string"
}'

Answer

201Resource created
4xxError with code, message and request_id