Zum Hauptinhalt springen
GET
/
public
/
v1
/
segment-service
/
segments
/
{segment-id}
Retrieve a segment by ID.
curl --request GET \
  --url https://api.topsort.com/public/v1/segment-service/segments/{segment-id} \
  --header 'Authorization: Bearer <token>'
{
  "name": "<string>",
  "description": "<string>",
  "id": "<string>",
  "total": 123
}

Autorisierungen

Authorization
string
header
erforderlich

A valid API key generated in Topsort's UI. Use the TSE API key if calling auctions or events API, otherwise use the TSC API key.

Pfadparameter

segment-id
string
erforderlich

The external ID of the segment.

Antwort

Successful Response

name
string
erforderlich

Name of the segment.

Maximum string length: 64
description
string | null
erforderlich

Description of the segment.

Maximum string length: 400
id
string
erforderlich

ID of the segment.

total
integer
erforderlich

User count of the segment.