Skip to main content
v2 has no chat_id. Context is carried by the IDs and codes you already have, so a follow-up is a new request that reuses them.

Ask a new question for the same audience

Call POST /v2/spark-api/insights/generate again with new prompts and the same enforced_audiences, location_codes and wave_codes. You do not need to create the audience again.
Request
The response has the same shape as in Step 3.

Change the location or timeframe

Send the names from the previous response in current_filters and say in prompt whether to add to them or replace them:
Pass the new location_codes and wave_codes on the next audience and insights requests.

Get insight details

Pass an insight ID from results[].insights[].id to get the sources and the statistics for each answer.
Request
Response
In metadata.attributes[]: