getSegment resolves an exact segment name or ID and retrieves it.
automations/get-resend-segment.automation.ts
segment is required; optional account selects the binding. Exact name
matching ignores case and whitespace. Missing and ambiguous names fail; IDs are
unambiguous. Returns id, name, object, and createdAt.