HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


Queries the ID of the sent mailing by means of the waveId in Optimizely Campaign.

The waveId uniquely identifies the mailing sent with this closed loop process.

Type: long


sessionIdStringID of the session
waveIdlongID returned by prepareNewWave

Return values

ID of the sent mailing

Returns 0 if no mailing has yet been sent for the specified waveId.

Code structure

long getMailingIdByWaveId(String sessionId, long waveId)

What’s Next