Development sample data

Sample conversation data

This protected setup tool inserts clearly labeled sample message_events rows so the conversation inbox UI can be tested before TextGrid is connected. It does not send real texts, add webhooks, or contact TextGrid.

The API is blocked in production unless ENABLE_SAMPLE_CONVERSATION_DATA=true is explicitly configured, and it only runs after you submit the admin setup secret.

Insert or remove UI testing conversations

Inserting first deletes the previous sample rows, then creates inbound and outbound messages for multiple phone numbers, including an unknown number and a needs-review message.