KBAISE/ for lovable
Library
Docs

Connect your app to GatewayAPI

about 10 minBuildingchecked 2d agoOfficial page
The short version

You can connect your Lovable app to GatewayAPI to send SMS and RCS messages, track their delivery, and handle replies. This allows your app to send mobile notifications, alerts, and campaigns directly to phone numbers.

Anyone building an app that needs to send or receive mobile messages (SMS/RCS) for things like alerts, notifications, or customer communication.

Do this, in order

  1. 1

    Sign in to your GatewayAPI account dashboard.

    You need to access your GatewayAPI account to get the necessary authentication details.

  2. 2

    Find the section where API tokens are managed in your GatewayAPI account.

    This is where you will create or find the secret key that allows Lovable to connect to your GatewayAPI account.

  3. 3

    Create a new API token for Lovable or copy an existing one, giving it a descriptive name like 'Lovable integration'.

    This token acts as a password for Lovable to securely send messages through your GatewayAPI account.

  4. 4

    Note whether your API token is for the global GatewayAPI domain (gatewayapi.com) or the EU domain (gatewayapi.eu).

    You'll need to select the correct domain in Lovable for the connection to work properly.

  5. 5

    Go to the 'Connectors' section in your Lovable dashboard and select 'GatewayAPI'.

    This is where you initiate the connection process within Lovable.

  6. 6

    Click 'Add connection' and then configure it by giving it a display name, selecting the correct API domain, and pasting your GatewayAPI API token.

    This step tells Lovable how to identify and authenticate with your GatewayAPI account.

  7. 7

    Decide who in your workspace can use this connection, either keeping it private, sharing with specific members, or inviting the entire workspace.

    This controls access to the GatewayAPI connection within your Lovable team.

  8. 8

    Click 'Connect' to finalize the setup.

    Lovable will verify your token and save the connection, making GatewayAPI available for your apps.

Paste this into your project

I need to send SMS and RCS messages from my app using GatewayAPI. Can you help me set up the connection so I can send messages, track delivery, and handle replies? I'll need to know how to get my API token and connect it in Lovable. Also, how do I handle incoming messages or delivery updates?

Words decoded

API token
A secret code that acts like a password, allowing one computer program (like Lovable) to securely access services from another program (like GatewayAPI) on your behalf.
SMS
Short Message Service, commonly known as text messages.
RCS
Rich Communication Services, an upgraded messaging protocol that allows for richer features like group chats, read receipts, and higher-quality media, similar to iMessage or WhatsApp.
Webhook
A way for one app to send real-time information to another app automatically when something specific happens. For example, GatewayAPI can use a webhook to tell your Lovable app when a message has been delivered.
Transactional alerts
Automated messages sent to customers about specific actions or events, such as order confirmations, shipping updates, or password resets.
Operational notifications
Automated messages sent to staff or users about system status, incidents, or other important operational events.

Where people get stuck

  • Sharing your API token publicly, as it functions like a password and should be kept secure.
  • Not selecting the correct GatewayAPI domain (Global or EU) when configuring the connection in Lovable, which will prevent the connection from working.
  • Expecting Lovable to manage GatewayAPI webhooks for you; you must configure webhooks for delivery status and inbound replies directly in the GatewayAPI dashboard.
  • Forgetting that all messaging costs and billing are handled by GatewayAPI, not Lovable.
  • Not having the necessary permissions in your Lovable workspace to create connections, which will prevent you from setting up GatewayAPI.

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.