Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Create your first API Endpoint ​

Build a secure API Endpoint that validates input and updates your data.

Set up the API Endpoint ​

  1. Go to Data & API > Backend Workflows > API Endpoints
  2. Click Add
  3. Choose whether to Build from scratch or start from a template
  4. If you use a template, pick the one closest to your use case and rename it if needed
  5. Give it a Name
  6. Set the Path (e.g., update)
  7. Keep the trigger as On API request
  8. Configure security in the Security panel — Set the access level (Public or Authenticated), optionally limit by roles, and optionally add middleware workflows for more control

Start from a table template ​

In the Tables group of templates, each WeWeb table offers Get Row, Add Row, Update Row and Delete Row. A line above a table's templates tells you who will be able to call them:

  • Public: anyone can call them, including to delete rows. Your project has no authentication, so nobody can sign in.
  • Signed-in users only, and any of them can reach every row. Your project has authentication, or it's an internal app.
  • Signed-in users only, each one reaching only their own rows. Your project uses WeWeb Auth (or it's an internal app) and the table has exactly one Link to Users column. Get Row, Update Row and Delete Row only match the rows of the user who calls them, and Add Row and Update Row save that user in the column. Update Row and Delete Row use the By Filters mode to keep this condition.

TESTING OWNER-ONLY TEMPLATES

The last case needs a signed-in user: a Test run without one fails with No signed-in user id. Pick a user under Connect as in the editor preview before testing. See how to preview as a user →

Define inputs ​

  • In the Parameters panel, add inputs for fields you expect (e.g., id, client_name, email)
  • Database‑linked inputs appear automatically when you select table actions
  • Mark required inputs and set defaults where relevant

If you started from a template, review the inputs before testing.

Add actions ​

  • Add a Tables | Update rows or Tables | Insert rows action and choose your table
  • Map inputs to columns or use a Table Link input to auto‑map
  • Optionally chain more actions (e.g., call a third‑party API, log activity)

CRUD modes and filters ​

Table actions support two selection modes:

  • By ID — Provide the record id
  • By Filters — Build conditions similar to views; you can also bind parameters

Examples:

Tables | Get rows ​

  • By ID — Return a single row by its primary key
  • By Filters — Return rows that match your conditions (optionally set limit/sort)

Tables | Update rows ​

  • By ID — Update a specific row
  • By Filters — Update all rows that match the filter (use cautiously)

Tables | Delete rows ​

  • By ID — Delete a specific row
  • By Filters — Delete all rows that match the filter (use cautiously)

Return a response ​

  • Use the Send Response action to return data (like the updated record)
  • Use the Try/Catch action to handle errors and return error messages with appropriate status codes

Test and publish ​

  • Use the Test button to run with sample inputs
  • Publish the latest version when you're ready to use it outside the editor
  • Use Revert changes to roll back to the previously published version

CONTINUE LEARNING

Call your API Endpoint safely from your app.

Call from interface workflows →