Sign in

Create a widget

documented

Create a new widget.

POST /api/widgetWidgetsno 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://oauth.reddit.com/r/{{$subreddit}}/api/widget" \
  -X POST \
  -H \"Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}\" \
  -H \"Content-Type: application/json\" \
  -H \"Accept: application/json\" \
  -H \"User-Agent: keychains-reddit-widget/1.0\" \
  -d '{\"kind\": \"textarea\", \"shortName\": \"{{$widget_short_name}}\", \"styles\": {\"backgroundColor\": \"{{$bg_color}}\", \"headerColor\": \"{{$header_color}}\"}, \"text\": \"{{$textarea_text}}\"}'