Saltar para o conteúdo 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
}

Autorizações

Authorization
string
header
obrigatório

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 caminho

segment-id
string
obrigatório

The external ID of the segment.

Resposta

Successful Response

name
string
obrigatório

Name of the segment.

Maximum string length: 64
description
string | null
obrigatório

Description of the segment.

Maximum string length: 400
id
string
obrigatório

ID of the segment.

total
integer
obrigatório

User count of the segment.