provider Segmenting Contacts V2 - Beta GET /marketing/segments/2.0/{segment_id}
@utdk/sendgrid /marketing/segments/2.0/{segment_id}
Get Segment by ID
**The Segmentation V2 API is currently in private beta. If you'd like to be added to the beta, please fill out this [form]({https://docs.google.com/forms/d/e/1FAIpQLSd5zwC9dRk8lAp1oTWjdGc-aSY69flW_7wnutvKBhpUluSnfQ/viewform)**
segment_id path required
string
contacts_sample query
Defaults to `true`. Set to `false` to exclude the contacts_sample in the response.
boolean

Try it

Authentication
Configure credentials for Email Activity (beta)
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getSegmentsSegmentId
GET/marketing/segments/2.0/{segment_id}
**The Segmentation V2 API is currently in private beta. If you'd like to be added to the beta, please fill out this [form]({https://docs.google.com/forms/d/e/1FAIpQLSd5zwC9dRk8lAp1oTWjdGc-aSY69flW_7wnutvKBhpUluSnfQ/viewform)**

Parameters

required

Defaults to `true`. Set to `false` to exclude the contacts_sample in the response.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sendgrid from '@utdk/sendgrid';

await sendgrid.getSegmentsSegmentId()