Configure a POST request

This page outlines how to configure a POST request to populate an external database with user-submitted information from your waitlist app:
Note: Before continuing, ensure you have an existing database that can be accessed via REST. This example uses a pre-configured Supabase with a table named Waitlist containing three columns: Name, Email, and Role.
  1. 1.
    Open the Connect tab.
  2. 2.
    Click Add a new data connection.
  3. 3.
    Select the REST API connection card.
  4. 4.
    Name the connection and then click Create.
  5. 5.
    In the Configuration section, enter the base URL.
  6. 6.
    Ensure the default action: request is selected under Existing Actions.
  7. 7.
    Rename the action, set the method to POST.
  8. 8.
    Set the Path to the endpoint of your database's table.
  9. 9.
    (Optional) Populate the Query Params if required by your database. For this example, the Path is /Waitlist.
  10. 10.
    Set the Content Type (e.g. application/json).
  11. 11.
    Populate the body field with the data to send to your database and enable Expose so that it can be populated by a parent component later on. For example:
    "Name":"Jon Smith",
    "Email":"[email protected]",
  12. 12.
    Populate the Headers field with the authorization headers required by your database (e.g. Supabase requires API and authorization key headers). Enter these in JSON format:
    "apikey": "abc1234...",
    "Authorization": "def5678..."
  13. 13.
    (Optional) Click Send to test the data connection and verify that data was stored in your database.
    Note: Uiflow won't display any results for a successful call, so you must check your database to verify the result.
  14. 14.
    Click Publish to Logic to make your connection appear as a component in the Libraries panel.
After you configure your POST request, continue to Build waitlist Logic to complete your application.