Get Cohorts
GET {{BASE_HABITAT_URL}}/api/v3/cohorts
Required scope: cohorts:read
Gets all cohorts. You can pass these id fields as the cohort_id in a merchant create post.
Examples
Section titled “Examples”curl --request GET '${BASE_HABITAT_URL}/api/v3/cohorts'const response = await fetch("${BASE_HABITAT_URL}/api/v3/cohorts", { "method": "GET", "headers": {}})const data = await response.json()import requests
response = requests.request( "GET", "${BASE_HABITAT_URL}/api/v3/cohorts", headers={},)response.raise_for_status()Saved responses
Section titled “Saved responses”
