curl --request POST \
--url https://public-api.sessionboard.com/v1/event/{eventId}/insights/ai/generate \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"prompt": "<string>"
}
'{
"query": "<string>",
"explanation": "<string>"
}Use AI to translate natural language into a SbQL query scoped to a specific event. Requires the read:insights scope.
curl --request POST \
--url https://public-api.sessionboard.com/v1/event/{eventId}/insights/ai/generate \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"prompt": "<string>"
}
'{
"query": "<string>",
"explanation": "<string>"
}