You can find your Account SID and Auth Token under the "API Keys" in your Twilio account dashboard.
Dashboard > Developers > API Keys
Create a new resource in Retool, and select "Twilio" as the type. Enter your Account SID and Auth Token.
Resources > Add > Twilio
You can now select your newly-created Twilio resource from the Resource dropdown when creating queries in your Retool apps.