Sign in

Create Prediction

documented

Creates a prediction.

POST /helix/predictionsPredictionsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.twitch.tv/helix/predictions" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Client-Id: {{TWITCH_CLIENT_ID}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"broadcaster_id": "{{$broadcaster_id}}", "title": "{{$title}}", "outcomes": [{"title": "{{$outcome1}}"}, {"title": "{{$outcome2}}"}], "prediction_window": {{$prediction_window}} }'
Create Prediction · Twitch · OpenIntegrations