Skip to main content
Inputs are the data that is supplied to the primitive outside of Xano that it needs to run. For example, an API used to log in would probably need an email and a password. There are several different types of inputs you can use to handle any data type. You can also make inputs optional, required, lists, or apply filters to transform them or require them to meet certain criteria.

Adding an Input

  • Visually: Canvas View
  • Visually: Function Stack
  • XanoScript
1

Click Add an Input

apis-20251013-103714
2

Select the type of input you want to add.

apis-20251013-103749
Each input will have a different set of options depending on the input type chosen. Keep reading to see more information about all of the available input types and available options.

Input Options

OptionExplanationExample
DescriptionA short, human-readable summary of the input.For an email field: “The user’s email address.”
Data structureSingle value or list of values.Set to list to allow multiple values.
Allow nullable valuesWhether the input can be null.Set to true to allow null.
Default valueValue used if input isn’t provided.Useful for optional fields that still need a stored value.
RequiredWhether the input must be provided.Set to true to make the field mandatory.
Sensitive dataWhether the field contains sensitive info.Set to true to hide it from request history.
Custom rules and filtersFilters and validation applied to the input.e.g. trim to remove whitespace.

Filters and Rules

  • Visually
  • XanoScript
With your input selected, scroll down to the Custom Rules and Filters section, and choose + Add an Input Rule.
inputs-20251013-124949

Input Filters

Transform the data sent to the input on the fly.
FilterExplanationExample
trimTrims whitespace from the input.‎ ‎ hello‎ ‎ becomes hello

core-components-20251010-120859
lowerConverts the input to lowercase.HELLO becomes hello

core-components-20251010-120935
upperConverts the input to uppercase.hello becomes HELLO

core-components-20251010-120954

Input Rules

Validate the data sent to the input. If the data doesn’t meet the criteria, the logic will fail to execute.
RuleExplanationExample
minRequires a minimum length.Hello is not valid, but Hello World is.

core-components-20251010-121029
maxRequires a maximum length.Hello World is not valid, but Hello is.

core-components-20251010-121049
startsWithRequires a prefix.If set to invoice-, invoice-abc123 is valid, but abc123 is not.

core-components-20251010-121215
preventPrevents a phrase.If set to hello, hello world is not valid, but goodbye world is.

core-components-20251010-121300
alphaOkAllows alphabetic characters only.hello is valid, but hello123 is not.

core-components-20251010-121318
digitOkAllows numerical characters only.hello is not valid, but 123 is.

core-components-20251010-121334
okAllows only specific characters.If set to abc123, hello is not valid, but abc123 is. abc is valid, but cde is not.

core-components-20251010-121357

Input Reference

Review all available input types below by selecting the section you’re interested in.

Text

A plain string of text, code, or any other characters.

Integer

A whole number, such as a count, year, or ID.

UUID

A Universally Unique Identifier — a random string used to ensure record uniqueness.

Object

A JSON object with a defined schema (e.g., user settings or product details).\
Example of an object input
{
    "name": "John Doe",
    "age": 30,
    "email": "john.doe@example.com"
}

Table Reference

An integer or UUID referencing a record in another table.

Vector

A fixed-length array of numbers (embedding) for similarity search in AI/ML.

Enum

A predefined list of values to enforce consistency (e.g., “To Do”, “In Progress”, “Done”, “Pending”).

Timestamp

A point in time in milliseconds since the Unix Epoch (Jan 1, 1970).

Date

A calendar date in YYYY-MM-DD format.

Boolean

A true or false value.

Decimal

A number with a decimal point (e.g., 1.5, 100.00, 0.001).

Email

An email address.

Password

A hashed and salted password. Plain text is never stored or retrievable.

JSON

A flexible JSON object or array without a defined schema — ideal for variable data (e.g., from external APIs).
Example of a JSON input
{
    "name": "John Doe",
    "age": 30,
    "email": "john.doe@example.com"
}

Storage

File metadata for images, videos, audio, or other files (e.g., URL, name, size, type). Actual files are not stored in the database.

Geography

Stores geographic data such as a point, path, or polygon.
I