type: IN_PRODUCT_SURVEY and is presented by a Sprig SDK when a visitor
matches its targeting configuration.
1. Create the draft
ChooseWEB or MOBILE at creation time. The platform cannot change later.
id, version, and ETag. studyUrl opens the Study in the Sprig dashboard
for authors.
Completion and sampling
Completion can be:FIXEDwith a totalresponseLimit.UNTIL_DATEwith an ISO 8601closeAt.ONGOING.
Recontact
retakeSurvey controls whether the same respondent may respond again.
resurveyWindowSeconds overrides the product-level recontact period; send null to use the product
default.
2. Add supported Questions
Create Questions with the Study’s current ETag. The API validates Question kinds and settings against the in-product platform.displayAsPage: true), uploaded assets, and invitations are not supported for
in-product surveys through the Study API.
3. Prepare trigger Events
Your SDK must send the code Event or observe the page URL Event that should trigger the Study.- Instrument the Event in the appropriate SDK.
- For a new code Event, approve it in Events > Manage Requests.
- Call
GET /v2/eventsand save the Event’s public UUID.
4. Configure targeting
The firstPUT creates the targeting sub-resource. Every later PUT replaces it completely.
PAGE_VIEW_COUNT and DEVICE_TYPE are Web-only conditions. For all platforms, multiple triggers
use OR semantics and nested audience groups use their explicit AND or OR operator.
See In-product targeting for supported conditions and limits.
5. Validate the complete Study
6. Launch
Read the Study again to obtain its latest ETag, then send a lifecycle-only update:STUDY_NOT_READY. Resolve the
returned issues, read the latest ETag, and retry.
7. Update a running program
Pause the Study before changing authored settings or content:- Update only
statustoPAUSED. - Read and save the returned ETag.
- Change Questions, settings, or targeting.
- Validate again.
- Update only
statustoIN_PROGRESS.
PATCH.