• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Tumitumie

Tumitumie

wikiapptry

Public
Like
wikiapptry
Home
Code
3
backend
6
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
backend
/
README.md
Code
/
backend
/
README.md
Search
5/19/2025
README.md

WhatsApp Wikipedia Bot - Backend

This directory contains the backend code for the WhatsApp Wikipedia Bot.

API Endpoints

WhatsApp Webhook

  • GET /webhook - Verification endpoint for WhatsApp webhook setup
  • POST /webhook - Receives incoming WhatsApp messages

Admin API

All admin endpoints require an API key to be sent in the X-API-Key header.

Content Management

  • GET /admin/topics - Get all available topics
  • POST /admin/facts - Add a new fact
    • Required fields: topic, content
    • Optional fields: source
  • POST /admin/audio - Add a new audio clip
    • Required fields: title, url, topic
    • Optional fields: description, duration
  • POST /admin/video - Add a new video clip
    • Required fields: title, url, topic
    • Optional fields: description, duration
  • DELETE /admin/facts/:id - Delete a fact
  • DELETE /admin/audio/:id - Delete an audio clip
  • DELETE /admin/video/:id - Delete a video clip

Health Check

  • GET /health - Check if the service is running

Environment Variables

  • WHATSAPP_VERIFY_TOKEN - Token for WhatsApp webhook verification
  • WHATSAPP_TOKEN - WhatsApp Business API token
  • WHATSAPP_PHONE_NUMBER_ID - WhatsApp phone number ID
  • ADMIN_API_KEY - API key for admin endpoints

Database

The application uses SQLite for storage with the following tables:

  • whatsapp_wiki_users_v1 - User information and preferences
  • whatsapp_wiki_facts_v1 - Fun facts
  • whatsapp_wiki_audio_v1 - Audio clips
  • whatsapp_wiki_video_v1 - Video clips
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.