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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sendgrid from '@utdk/sendgrid';
await sendgrid.getMarketingSegmentsSegmentId()