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

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

Filters and Rules

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.

Input Rules

Validate the data sent to the input. If the data doesn’t meet the criteria, the logic will fail to execute.

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

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

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.