Connect your app to GatewayAPI
Connect GatewayAPI to send text and rich media messages directly from your app. It lets you send automated notifications, appointment reminders, and follow delivery status updates.
Anyone who needs their app to send SMS or RCS alerts and notifications to mobile phone numbers.
Do this, in order
- 1
Log in to your GatewayAPI account, locate the API token settings, and create or copy an API token while noting whether it belongs to the Global or EU domain.
Lovable requires this token and the matching domain to authenticate with GatewayAPI on your behalf.
- 2
In your Lovable dashboard, open Connectors, select GatewayAPI, and click Connect.
This opens the configuration screen to set up your integration.
- 3
Enter a display name, select the matching API domain (Global or EU), paste your API token, and choose your sharing settings.
Lovable needs these details to target the correct GatewayAPI server and verify access permissions across your workspace.
- 4
Click Connect to verify and save the connection.
Lovable tests the token against the GatewayAPI service before making it available to use.
- 5
Ask Lovable in your project chat to link to GatewayAPI and build your messaging feature.
Linking allows your specific project to use the saved credentials to send messages.
Paste this into your project
Use GatewayAPI to build an appointment reminder feature that sends an SMS reminder to customers before their booking, stores message references, and tracks delivery status.
Words decoded
- RCS
- An advanced text messaging standard that replaces standard SMS with features like images, action buttons, and verified sender profiles.
- Webhook
- A web address in your app that receives automated notifications from an external service whenever something happens.
- JWT
- A digitally signed text code included in a request to prove it was sent by a trusted service and has not been altered.
Where people get stuck
- Choosing the wrong API domain (Global vs EU) prevents the token from validating, as each token only works on its specific domain.
- Webhook callbacks for delivery status and inbound replies do not flow through Lovable's connector automatically; you must build a public endpoint and configure it manually in your GatewayAPI dashboard.
- Your webhook endpoint must respond with a success status code within 5 seconds, or GatewayAPI will mark the delivery event as failed.
- All message delivery fees, quotas, and short codes are billed and managed directly through GatewayAPI, not Lovable.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.