Skip to content

Search functions

GET
/functions/search
curl --request GET \
--url 'https://api-dev.mindflow.io/v1/functions/search?query=base64&category=Custom&includeDeprecated=false&limit=16&cursor=eyJvZmZzZXQiOjEwMH0%3D' \
--header 'Authorization: Bearer <token>'

Ranked free-text search over visible formula functions. Returns the required summary fields for each hit (descriptionFirstLine, no full description or args), the matched fields for the first hits, and guidance notes.

Matching and ranking

query is split into words. A function matches when every word appears (case-insensitive) in its functionId, name, full description, or category. Hits are ranked:

  1. functionId or name equals the whole query.
  2. functionId or name starts with the whole query.
  3. functionId or name contains the whole query.
  4. description contains the whole query.
  5. category contains the whole query.
  6. The words match across different fields.

Ties sort by functionId ascending. category and includeDeprecated filter the same way as listFunctions. Hidden functions never appear.

matches explains the first 8 hits on the page. notes suggests how to narrow or widen the search when nothing matched or when deprecated functions were left out. Call getFunction or batchGetFunctions for argument metadata. Use listFunctions to browse without a query.

Pagination

Default page size is 16, maximum 50. Follow pagination.nextCursor with the same query and filters to read lower-ranked hits. A cursor sent with a different query or filters returns 400.

Auth

Authorization: Bearer <token> with viewOrganization for the caller’s organization.

Errors

400 when query is missing, a parameter exceeds its length limit, or cursor is invalid for this query. 401, 429, and 500 use the platform Problem Details responses.

query
required
Search query

Required search text. Hits are ranked by relevance; each search operation names the fields it compares and how it ranks them.

string
>= 1 characters <= 256 characters
Example
base64

Search words matched against functionId, name, description, and category (case-insensitive). Every word must match. Missing or empty query returns 400.

category
Function category

Exact Studio category label (for example Custom, Text, or Cryptography). Case-sensitive.

string
>= 1 characters <= 128 characters
Example
Custom

Exact Studio category label (case-sensitive). Omit it to search every category.

includeDeprecated
boolean

When true, deprecated entries are returned and flagged with deprecated: true. Omit it, or send false, to leave deprecated entries out. Get-by-id still returns a deprecated entry.

Example
false
limit
Catalog search page size

Page size for catalog search operations. Defaults to 16; values above 50 are reduced to 50.

integer format: int32
default: 16 >= 1 <= 50

Maximum number of ranked hits in this page. Omit it to use 16. Values above 50 are reduced to 50. Follow pagination.nextCursor to read lower-ranked hits.

Example
16
cursor
string
<= 1024 characters

Opaque token from the previous response pagination.nextCursor. Omit it to read the first page. Send the token unchanged. Do not combine it with before or after on audit logs. An unknown or altered token is 400 BAD_REQUEST.

Example
eyJvZmZzZXQiOjEwMH0=

One page of ranked hits, match details, guidance notes, and the cursor for the next page.

Media typeapplication/json
Search functions response

One page of ranked search hits with match details and guidance notes.

object
functions
required

Function summaries for this page (required fields only), best match first.

Array<object>
<= 50 items
Function summary

Formula function catalog entry as list and search return it: the required fields only. Get and batch get return the full Function, which adds description, hidden, and args.

object
functionId
required

Stable function identifier. Pass the value unchanged to get, batch get, and formulas.

string
>= 1 characters <= 256 characters
name
required

Display name shown in Studio.

string
>= 1 characters <= 256 characters
category
required

Studio category that groups related functions.

string
>= 1 characters <= 128 characters
descriptionFirstLine
required

Derived from description, not stored: the text before the first line break, with whitespace collapsed. Text longer than 160 characters is truncated with an ellipsis. Empty when description is empty.

string
<= 160 characters
description

Full human-readable explanation, often a first line followed by examples or details. Returned by get and batch get only.

string
<= 2048 characters
outputType
required

Return type of the function (for example string, number, or boolean).

string
>= 1 characters <= 64 characters
deprecated
required

True when the function is deprecated and should not be used in new flows.

boolean
hidden

True when the function is hidden from list and search. Returned by get and batch get only, which still return hidden functions by functionId.

boolean
args

Argument metadata keyed by argument name. Each value describes the argument type, whether it is required, and how to set it in a formula. Returned by get and batch get only.

object
key
additional properties
any
matches
required

Matched fields for the first hits on this page (at most 8), in the same order as functions.

Array<object>
<= 8 items
Function match

Explains why a top-ranked search hit matched. The hit itself is the entry with the same functionId in functions.

object
functionId
required

Stable function identifier of the hit in functions.

string
>= 1 characters <= 256 characters
matchFields
required

Function fields that contained at least one query word: functionId, name, description, and/or category. description refers to the full text, which get and batch get return.

Array<string>
<= 16 items
notes
required

Guidance when nothing matched or when deprecated functions were left out.

Array<string>
<= 16 items
pagination
required

Send pagination.nextCursor as cursor, with the same query and filters, to read lower-ranked hits.

object
nextCursor

Opaque token for the next page. Send it unchanged as cursor. Null when there are no further items. The token can be longer than this example and is not a stable document format.

string
nullable <= 1024 characters
Examples

Ranked text search

Query=base64&limit=2

{
"functions": [
{
"functionId": "From Base64 V2",
"name": "From Base64",
"category": "Data format",
"descriptionFirstLine": "Decodes a Base64 string to raw binary data. Supports the same alphabet presets as toBase64, optional stripping of non-alphabet characters, and strict validat...",
"outputType": "binary",
"deprecated": false
},
{
"functionId": "Show Base64 offsets",
"name": "Show Base64 offsets",
"category": "Data format",
"descriptionFirstLine": "When a string is within a block of data and the whole block is Base64'd, the string itself could be represented in Base64 in three distinct ways depending on...",
"outputType": "string",
"deprecated": false
}
],
"matches": [
{
"functionId": "From Base64 V2",
"matchFields": [
"functionId",
"name",
"description"
]
},
{
"functionId": "Show Base64 offsets",
"matchFields": [
"functionId",
"name",
"description"
]
}
],
"notes": [
"2 deprecated functions also match. Send includeDeprecated=true to include them."
],
"pagination": {
"nextCursor": "eyJ2IjoxLCJwIjpbMl0sImYiOiIzcnB0WUVTVUZCZXhKNjJRIn0"
}
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

The request was invalid. Common causes include:

  • Invalid timestamp format.
  • Using cursor with before or after.
  • Missing limit when using before or after.
  • Invalid field names in the fields parameter.

See the error response for specific details about what went wrong.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always BAD_REQUEST on this response. Read detail for which value to change, then send a corrected request.

string
Allowed values: BAD_REQUEST
Example
{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "The request body or query is invalid.",
"code": "BAD_REQUEST"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

Authentication failed. The request lacks valid credentials or the provided credentials are invalid.

Ensure you have:

  • A valid API key or token.
  • Proper authentication headers.
  • Required permissions.
Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always MISSING_OR_INVALID_TOKEN on this response. Branch on this value, not on detail.

string
Allowed values: MISSING_OR_INVALID_TOKEN
Example
{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "The bearer token is missing or invalid.",
"code": "MISSING_OR_INVALID_TOKEN"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

Too many requests. The request rate limit has been exceeded.

Please wait until the rate limit window resets before making additional requests.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always RATE_LIMIT_EXCEEDED on this response. Wait Retry-After seconds before retrying.

string
Allowed values: RATE_LIMIT_EXCEEDED
Example
{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "The request rate limit has been exceeded.",
"code": "RATE_LIMIT_EXCEEDED"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

Internal server error. The server encountered an unexpected condition that prevented it from fulfilling the request.

Please try again later or contact support if the problem persists.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always INTERNAL_ERROR on this response. Retry later. Do not retry a create in a tight loop.

string
Allowed values: INTERNAL_ERROR
Example
{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "The request could not be completed.",
"code": "INTERNAL_ERROR"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.