Read how a site texts

get_site_messages

Reads whether a site sends texts, the countries it may text, its sender name, prices, limits and this month's usage.

enabled says whether texting is on, which it is unless someone turned it off, isPaid whether the workspace is on a paid plan, canTextUs whether its plan allows texts to US numbers, which need Pro, and registration where the site's business registration for texts to the United States stands, see get_site_message_registration. allowance has the credits for texts the plan includes this calendar month, how many the site used, how many are left and when they start again. paused is true while Modulify paused texting on the site. countries lists the ISO codes of the countries the site may text, and with none it cannot text anyone yet. profile.shortName is the sender name, prices the credits one SMS part costs to each country, and contactCredits the fee for the first text to a number in a calendar month. limits and usage carry the limits and this month's texts, and get_site_message_stats counts them over any period. See Messages.

Inputs

Input Type Required Description
projectId string Yes The site id.