Saltar al contenido principal
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
}

Autorizaciones

Authorization
string
header
requerido

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.

Parámetros de ruta

segment-id
string
requerido

The external ID of the segment.

Respuesta

Successful Response

name
string
requerido

Name of the segment.

Maximum string length: 64
description
string | null
requerido

Description of the segment.

Maximum string length: 400
id
string
requerido

ID of the segment.

total
integer
requerido

User count of the segment.