curl --request POST \
--url https://api.botpress.cloud/v1/tables/{table}/rows/find \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-bot-id: <x-bot-id>' \
--data '
{
"limit": 100,
"offset": 0,
"filter": {},
"group": {},
"search": "<string>",
"select": [
"<string>"
],
"orderBy": "id",
"orderDirection": "asc"
}
'{
"rows": [
{
"id": 123,
"computed": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"stale": [
"<string>"
],
"similarity": 123
}
],
"hasMore": true,
"offset": 123,
"limit": 123,
"warnings": [
"<string>"
]
}Enables the search and filtering of rows within a table based on specific criteria. This operation supports complex queries for advanced data manipulation and retrieval.
curl --request POST \
--url https://api.botpress.cloud/v1/tables/{table}/rows/find \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-bot-id: <x-bot-id>' \
--data '
{
"limit": 100,
"offset": 0,
"filter": {},
"group": {},
"search": "<string>",
"select": [
"<string>"
],
"orderBy": "id",
"orderDirection": "asc"
}
'{
"rows": [
{
"id": 123,
"computed": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"stale": [
"<string>"
],
"similarity": 123
}
],
"hasMore": true,
"offset": 123,
"limit": 123,
"warnings": [
"<string>"
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bot id
Integration id
Integration alias
Integration name
User Id
User Role
The table's name or unique identifier for targeting specific table operations.
The search criteria and filters to apply when searching for rows. This includes conditions, search terms, and pagination options.
Limit for pagination, specifying the maximum number of rows to return.
1 <= x <= 1000Offset for pagination, specifying where to start returning rows from.
x >= 0Provide a mongodb-like filter to apply to the query. Example: { "name": { "$eq": "John" } }
Group the rows by a specific column and apply aggregations to them. Allowed values: key, avg, max, min, sum, count. Example: { "someId": "key", "orders": ["sum", "avg"] }
Search term to apply to the row search. When using this parameter, some rows which doesn't match the search term will be returned, use the similarity field to know how much the row matches the search term.
1024Specify which columns to return in the response. Supports both top-level columns (e.g., "name") and nested attributes using dot notation (e.g., "attributes.price"). System columns (id, createdAt, updatedAt, etc.) are always included. If omitted, all columns are returned.
Specifies the column by which to order the results. By default it is ordered by id. Build-in columns: id, createdAt, updatedAt
Specifies the direction of sorting, either ascending or descending.
asc, desc A collection of rows that match the search criteria, along with metadata such as total count and pagination details.
Show child attributes
Unique identifier for the row.
Timestamp of row creation.
Timestamp of the last row update.
[Read-only] List of stale values that are waiting to be recomputed.
Optional numeric value indicating similarity, when using findTableRows.
Flag indicating if there are more rows to fetch.
Alerts for minor issues that don't block the operation but suggest possible improvements.
Was this page helpful?