Retrieve a segment
Returns one segment, archived or not. {segment} takes the segment’s seg_ ID or its key. A value starting seg_ is tried as a Paid ID first.
Authentication
AuthorizationBearer
API Key authentication using Bearer token
Path parameters
segment
The segment’s seg_ ID or its key.
Headers
Paid-Beta
This endpoint is in the segments=v1 beta. Send this header to use it.
Allowed values:
Response
200
id
The segment's ID.
object
The type of object. Always segment.
Allowed values:
createdAt
When the object was created.
archivedAt
When the segment was archived, or null. An archived segment stays readable, is removed from every customer, and keeps its key reserved.
description
What the segment is for, up to 500 characters, or null.
key
Your stable name for the segment, 1 to 64 lowercase letters, digits and _. Unique on your account, archived segments included. Immutable. Accepted wherever a segment is named.
livemode
true for an object on a live account, false on a test account.
metadata
String key-value pairs of your own, up to 500 characters per value. Always updatable.
name
Display name, shown in the dashboard. Customers never see it.
updatedAt
When the object was last changed.
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error