Search functions
const url = 'https://api-dev.mindflow.io/v1/functions/search?query=base64&category=Custom&includeDeprecated=false&limit=16&cursor=eyJvZmZzZXQiOjEwMH0%3D';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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:
functionIdornameequals the whole query.functionIdornamestarts with the whole query.functionIdornamecontains the whole query.descriptioncontains the whole query.categorycontains the whole query.- 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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Required search text. Hits are ranked by relevance; each search operation names the fields it compares and how it ranks them.
Example
base64Search words matched against functionId, name, description, and category (case-insensitive). Every
word must match. Missing or empty query returns 400.
Exact Studio category label (for example Custom, Text, or Cryptography). Case-sensitive.
Example
CustomExact Studio category label (case-sensitive). Omit it to search every category.
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
falsePage size for catalog search operations. Defaults to 16; values above 50 are reduced to 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
16Opaque 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=Responses
Section titled “Responses”One page of ranked hits, match details, guidance notes, and the cursor for the next page.
One page of ranked search hits with match details and guidance notes.
object
Function summaries for this page (required fields only), best match first.
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
Stable function identifier. Pass the value unchanged to get, batch get, and formulas.
Display name shown in Studio.
Studio category that groups related functions.
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.
Full human-readable explanation, often a first line followed by examples or details. Returned by get and batch get only.
Return type of the function (for example string, number, or boolean).
True when the function is deprecated and should not be used in new flows.
True when the function is hidden from list and search. Returned by get and batch get only, which still return
hidden functions by functionId.
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
Matched fields for the first hits on this page (at most 8), in the same order as functions.
Explains why a top-ranked search hit matched. The hit itself is the entry with the same functionId in
functions.
object
Stable function identifier of the hit in functions.
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.
Guidance when nothing matched or when deprecated functions were left out.
Send pagination.nextCursor as cursor, with the same query and filters, to read lower-ranked hits.
object
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.
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" }}Nothing matched
Query=quantum&category=Custom
{ "functions": [], "matches": [], "notes": [ "No function matched \"quantum\" in category \"Custom\". Try fewer or shorter words, drop the category, or browse with listFunctions." ], "pagination": { "nextCursor": null }}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
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
cursorwithbeforeorafter. - Missing
limitwhen usingbeforeorafter. - Invalid field names in the
fieldsparameter.
See the error response for specific details about what went wrong.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always BAD_REQUEST on this response. Read detail for which value to change, then send a corrected request.
Example
{ "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "The request body or query is invalid.", "code": "BAD_REQUEST"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
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.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always MISSING_OR_INVALID_TOKEN on this response. Branch on this value, not on detail.
Example
{ "type": "about:blank", "title": "Unauthorized", "status": 401, "detail": "The bearer token is missing or invalid.", "code": "MISSING_OR_INVALID_TOKEN"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
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.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always RATE_LIMIT_EXCEEDED on this response. Wait Retry-After seconds before retrying.
Example
{ "type": "about:blank", "title": "Too Many Requests", "status": 429, "detail": "The request rate limit has been exceeded.", "code": "RATE_LIMIT_EXCEEDED"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
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.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always INTERNAL_ERROR on this response. Retry later. Do not retry a create in a tight loop.
Example
{ "type": "about:blank", "title": "Internal Server Error", "status": 500, "detail": "The request could not be completed.", "code": "INTERNAL_ERROR"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.