Segment GET
GEThttps://sandbox.absmartly.com/v1/segments/:segmentId
Required Permissions: Segment Get
or Segment Admin
Request
Path Parameters
segmentId integerrequired
The id of the Segment that you wish to get data from.
Responses
- 200
A JSON Object containing a segment's data.
- application/json
- Schema
- Example (from schema)
Schema
segment object
{
"segment": {
"id": 0,
"name": "Language",
"description": "The user's language",
"value_source_attribute": "language",
"created_at": "2025-03-20T14:55:20.179Z",
"created_by_user_id": 0,
"updated_at": "2025-03-20T14:55:20.179Z",
"updated_by_user_id": 0,
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2025-03-20T14:55:20.179Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "[email protected]"
}
}
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: A User API Key for API authorization. **Must be in the format "Api-Key your_user_api_key"**scheme: ^Api-Key\s\S+
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://sandbox.absmartly.com/v1/segments/:segmentId' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear