provider segmenting contactsSegmenting Contacts GET /marketing/segments/{segment_id}
@utdk/sendgrid /marketing/segments/{segment_id}
Get Segment by ID
**This endpoint allows you to retrieve a single segment by ID.**
segment_id path required
string
query_json query
Defaults to `false`. Set to `true` to return the parsed SQL AST as a JSON object in the field `query_json`
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.

getMarketingSegmentsSegmentId
GET/marketing/segments/{segment_id}
**This endpoint allows you to retrieve a single segment by ID.**

Parameters

required

Defaults to `false`. Set to `true` to return the parsed SQL AST as a JSON object in the field `query_json`

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.getMarketingSegmentsSegmentId()