CommunityHire an ExpertSign Up
Actions, styling and codeCall API and Field Mapping
Actions, styling and code

Call API and Field Mapping (Classic apps)

Call API

What can I do with the Call API action?

Buttons can trigger an action to send a POST, PUT, PATCH, or DELETE request to any REST API or webhook endpoint, allowing you to interface directly with external services and tools. It allows you to integrate with services that Softr does not natively provide an integration for. Simply put, you can do just about anything you can imagine - without needing additional automation or workflow tools!

Do things like:

  • Click on an Invoice record in Softr app → Create an invoice in Stripe to the associated client

  • Click on a Lead record in Softr → Update the status in Pipedrive or Salesforce

  • Click on a File record Softr → Attach the record URL of the associated client project in tools like Clickup, Monday, Asana, Notion, or Coda

  • Click on a Customer request record in Softr app → Send a notification to Slack or send an email

  • Click on an Inventory record in Softr app → call API automations or workflows in automation software like Zapier, Make, Triggre, n8n, and more.

  • Click on a Support Ticket record in Softr → Update the ticket in Jira

Where can I use it?

The Call API action is available for use in two locations:

  • List Blocks - Call API is available on buttons added to list items (not topbar buttons)

  • List Details Blocks - Call API is available on buttons added to list details blocks

How do I use it?

The Call API actions can be broken down into 4 main sections:

  1. Webhook or Base URL

  2. Request Method

  3. Parameters

  4. Success Message

Notion image

Let’s look at each in a bit more detail.

1. Webhook URL

In this field you will put the webhook URL or API endpoint URL you would like to send the request to. The URL you use will depend on the service you are using to receive the data. All URLs should begin with https:// and act as one-way “doors” that you need to “knock on” or “call” in order to do or see different things with the service you’re integrating with. Some doors are locked though, as we will see in point number 3.

2. Request Method

In this dropdown you have 4 options to choose from, depending on what the webhook or API requires as a part of its service. Using the door analogy, different doors have different methods for operating them - some have knobs, some have levers, some push or pull to open. In the same way, webhook and API URLs can have different methods for calling them and we can use the POST, PUT, PATCH, and DELETE methods in this dropdown to tell an endpoint what we want to do with it. The differences in how these methods are used can vary, but for simplicity sake here’s a general break down of how they are used for most webhooks and APIs:

  • POST - Typically used to create new data with an endpoint or perform a new action

  • PUT - Typically used to update and replace all data

  • PATCH - Typically used to update and replace only the data specified in the call

  • DELETE - Used to delete the entirety of a record or data

3. Parameters

The parameters section offers three ways to add what are called key/value pairs to the webhook or API call. You can think of these key/value pairs as the information that should be sent in the request. If the URL and Method is the door and the way the door operates, then key/value pairs are what pass through the door. As mentioned in point number 1, some doors are locked and require a key.

In the same way, some webhook or API URLs may require an API Key or password to access them, which you can often send using Query Parameters or the Header. Different webhooks and APIs will require different combinations of these to be toggled on or off, but turning any of them on reveals two fields that you can use to define both the key and the value of the key. You can add as many of these as are required by the tool or service. You can also use any combination of static data or logged-in user and current record data in the “Value” dropdown. This allows you to send any app data as a part of the call.

Notion image

Let’s look at the three types of key/value pairs you can add:

  • URL Parameter - this type of key/value pair is appended to the end of the Webhook URL when the call is performed and is very flexible in how it can be used, whether sending simple information or even API Keys to access an endpoint

  • Header Parameter - this key/value pair is often used to authenticate the request with an API Key or send information about the type of content you’re sending.

  • Body - key/value pairs placed in the body are typically the important content you’re actually wanting to send and use elsewhere such as emails, names, numbers, or lists of other items

The great thing about webhook calls in Softr is that we take care of all the formatting for you, so you never need to worry about JSON structures or missing a comma in the code. To delete a key value pair, just click the trashcan to the right of it.

4. Success Message

Much like forms and editing list items, you can set a success message that is shown to the app user, after the webhook or API call has been completed.

Advanced Capabilities

Webhook/API Event Listeners

You can use custom code in the header or footer of a page along with an event listener to monitor the server’s response to a webhook or API call:

call-api-success event with field values is triggered after getting response with a success status code. call-api-failure event is triggered after getting response with error code.

Example:

javascript

<script>
	window.addEventListener('call-api-success-BLOCKNAME', (e) => {
		console.log('call-api-success', e.detail)
	});
	
	window.addEventListener('call-api-failure-BLOCKNAME', (e) => {
		console.log('call-api-failure', e)
	});
</script>

Mapping Fields for Actions

When you add an Action Button like Add record or Update record to a block, Softr needs to know which columns in your data source the button should write to. That pairing (a form field in Softr linked to a column in your table) is called a field mapping.

Screenshot 2026 04 24 At 3 18 00 PM

When you add an Add record action, Softr auto-maps every eligible column from the connected table. Computed (formula) fields are skipped because they can't be written to.

How to add an action button

Open any block that supports actions (lists, tables, grids, item details), then:

Select the block

Click the block on the canvas to open its settings panel on the right.

Open the Actions tab

In the right-hand settings panel, switch to the Actions tab.

Add a button

Click + Add topbar button (applies to the whole block, like “Add a new project”) or + Add item button (applies per row, like an Edit button on each card).

Choose the action type

Pick from the dropdown. The options are listed below.

Screenshot 2026 04 24 At 3 20 15 PM

Add record

Creates a new row in a connected table. The most common starting point, and field mapping matters a lot here.

Update record

Edits an existing row. Only available as an item button. Same field-mapping UI as Add record.

Run custom workflow

Triggers a Softr workflow. Useful when you need to combine values from multiple sources before writing.

Open page

Navigates to another page in your app.

Open URL

Opens an external URL in a new tab.

Scroll to

Smoothly scrolls to another block on the same page.

Ask AI

Opens an AI chat scoped to the current record or context.

What auto-mapping does (and what you still control)

As soon as you pick Add record or Update record, Softr scans the connected table and creates a field entry for every writable column, with the correct Input type already selected (Text, Long text, Number, Dropdown, Date, Attachment, and so on).

Computed / formula fields are skipped

They’re read-only in the data source, so they can’t be written to from an action.

Lookup and linked-record fields are included

They show up as dropdowns or multi-selects, depending on how the underlying table is configured.

You can remove any field you don't want users to fill in

Hover the field row and click the trash icon. Removed fields won’t appear in the form.

You can re-add a field later

Click + Add field at the bottom of the list. This also lets you add a field that isn’t yet bound to a column, which is useful for hidden inputs (see below).

Screenshot 2026 04 24 At 3 21 23 PM

Configuring an individual field

Click any field in the list to open its configuration popover.

Screenshot 2026 04 24 At 3 22 12 PM

The popover has the following controls, top to bottom:

  • Field header: shows the column currently mapped to this input. Click the dropdown to remap it to a different column in the same table.
  • Hidden input (toggle): when off, the field shows in the form for the end user to fill in. When on, the field is collected silently. See the Hidden inputs section.
  • Input type: usually set correctly by auto-mapping. Override it only if you want a different UI (e.g. render a Text column as an email input with validation).
  • Required: forces the user to fill the field before the form can submit. For Add record, this corresponds to a required column in the data source; for Update record, it guards against accidental blanks.
  • Label: the text shown above the input. Defaults to the column name.
  • Tooltip: a small ”?” next to the label with helper text on hover.
  • Placeholder: ghost text inside an empty input.
  • Hint: helper text shown below the input.
  • Default value: prefills the input. For Add record, this is the value used if the user doesn’t change anything. For Update record, this is overridden by the existing record value.
  • Validation: expands to show input-type–specific rules (min/max length, regex pattern, minimum date, file size, and so on).

Hidden inputs

A hidden input is a form field the end user never sees. It’s submitted automatically with a value you pick. These are great for automatically saving values to a record without requiring input from the user. For example, you may want to automatically assign the Project Lead as the Logged in User, since the Logged in User is the one creating the new Project record.

To make a field hidden:

Open the field

Click the field to open its configuration popover.

Turn on Hidden input

Flip the Hidden input toggle.

Pick a value source

Choose what to submit from the Value dropdown.

Screenshot 2026 04 24 At 3 24 45 PM

The Value dropdown gives you six categories of automatically-collected values. Each is covered below.

Logged-in user

Pulls any field from the signed-in user’s record in your users table.

Screenshot 2026 04 24 At 3 27 00 PM

The list shows every column in your users table, not just a few built-ins. Common picks:

  • Email or Name: to stamp a submission with who created it.
  • Client company or Client contact of (in Client Portal apps): to tie a new record to the logged-in user’s organization.
  • Record ID: to link the new record to the user’s row via a linked-record field.

Details page record

Available on pages that have a parent record (list-detail pages, Users-scoped pages). Works the same as Logged-in user: you get a submenu of every field on the parent record.

Screenshot 2026 04 24 At 3 27 51 PM

URL parameter

Collects a query-string parameter from the page the button is on. Enter the parameter’s name.

Screenshot 2026 04 24 At 3 28 25 PM

Example: a job board where each page URL is yoursite.com/job-details/senior-product-manager?recordId=rec7HcXAgKmlk8inf. Setting the Value to URL parameter → recordId captures rec7HcXAgKmlk8inf and stamps it onto the submission.

Page URL

Captures the full URL of the current page, including query string. Useful when the same action button lives on multiple pages and you want to know which one was used.

Current time

Records a timestamp at the moment of submission. You can pick the format (ISO datetime, date only, Unix timestamp) from the submenu.

Screenshot 2026 04 24 At 3 30 07 PM

Custom value

A free-text box where you can type any literal value: static text, a fixed tag, a number, a default value. Keep in mind that the value type should match the field type it’s being mapped to. For example, don’t send a string (letters and symbols) to a pure number field.

Screenshot 2026 04 24 At 3 30 37 PM

Useful for:

  • Tagging all submissions from a specific page (“Source: marketing-landing”).
  • Filling a default category that the user shouldn’t change.
  • Pulling anything you can express as a literal value.

Update record: what changes

Update record uses the same field-mapping UI as Add record: all the auto-mapping, per-field configuration, and hidden-input behavior work identically. The main differences are operational:

Item buttons only

Update record is only available as an item button (per row), because it needs an existing record to operate on.

Form pre-fills

The form pre-fills with the current row’s values. Default value in the field config is ignored if the record already has a value.

Hidden inputs still overwrite

Stamp a Last edited at column with Current time on every update and that’s exactly what happens.

Wiring is identical

Click the block → Actions tab → + Add item button → Update record → tweak fields as needed.

FAQ

Auto-mapping added a field I don't want my users to fill in. Can I hide it?

Yes, with two options. If the field should be invisible but still written to with a value you control, leave it in the list and turn on Hidden input. If it shouldn’t be touched at all on this action, hover the field row and click the trash icon to remove it.

One of my columns didn't show up in the auto-mapped list. What's going on?

The most common reason is that the column is a computed / formula field. Those are read-only in the source, so Softr skips them. Other possibilities: the column has an unsupported type for the block’s data source connector, or it was added to the table after the block was configured.

Open the Source tab and click the refresh icon next to the Database/Table selector to re-sync the schema.

I'm using the {LOGGED_IN_USER:'Field name'} syntax in an older doc. Does it still work?

Yes, that syntax is still supported for backwards compatibility. You’ll find it under Custom value. But for new work, use the Logged-in user submenu instead. It’s type-safe, it updates if you rename the column, and it handles escaping correctly.

Do hidden inputs run Validation rules?

Yes. Validation applies to all fields, hidden or not. The system treats a hidden input the same as any other submission. If a hidden input’s value can’t satisfy a required rule or a regex pattern, the submission will fail.

That’s worth knowing when you combine hidden inputs with strict validation (e.g. a hidden recordId field with a regex that matches Airtable record-ID format).

Can I compute a hidden value from multiple sources (e.g. "user email + current time")?

Not directly in a single field. Each hidden input collects one value from one source. For combinations, either:

  • Use a custom workflow action, which lets you build a payload from multiple values before writing, or
  • Rely on a formula field in your data source that computes the combination after insertion.

Last updated: April 2026. If something in this doc looks wrong or out of date, please let our support team know.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.