Appearance
Create your first API Endpoint
Build a secure API Endpoint that validates input and updates your data.
Set up the API Endpoint
- Go to
Data & API>Backend Workflows>API Endpoints - Click
Add - Choose whether to
Build from scratchor start from a template - If you use a template, pick the one closest to your use case and rename it if needed
- Give it a
Name - Set the
Path(e.g.,update) - Keep the trigger as
On API request - Configure security in the
Securitypanel — Set the access level (PublicorAuthenticated), 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 oneLink to Userscolumn.Get Row,Update RowandDelete Rowonly match the rows of the user who calls them, andAdd RowandUpdate Rowsave that user in the column.Update RowandDelete Rowuse theBy Filtersmode 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
Parameterspanel, 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 rowsorTables | Insert rowsaction and choose your table - Map inputs to columns or use a
Table Linkinput 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 recordidBy Filters— Build conditions similar to views; you can also bind parameters
Examples:
Tables | Get rows
By ID— Return a single row by its primary keyBy Filters— Return rows that match your conditions (optionally set limit/sort)
Tables | Update rows
By ID— Update a specific rowBy Filters— Update all rows that match the filter (use cautiously)
Tables | Delete rows
By ID— Delete a specific rowBy Filters— Delete all rows that match the filter (use cautiously)
Return a response
- Use the
Send Responseaction to return data (like the updated record) - Use the
Try/Catchaction to handle errors and return error messages with appropriate status codes
Test and publish
- Use the
Testbutton to run with sample inputs - Publish the latest version when you're ready to use it outside the editor
- Use
Revert changesto roll back to the previously published version

