Food Categories
Function-calling namespace: foodCategories
- Base URL:
https://api.aivida.in - Engine endpoint:
POST /api - Auth: Stack token middleware enabled in
optionalmode. - Send token in header:
x-stack-access-token: <access_token>(orAuthorization: Bearer <access_token>). - In
optionalmode: no token is allowed; invalid token is rejected with401.
list
Source: backend/endpoints/food-categories/list
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
items | array<object> | No | - |
total | integer | No | - |
Nested Field Structures
items item
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | No | - |
name | string | No | - |
displaySort | integer | No | - |
isActive | boolean | No | - |
createdAt | string | No | - |
updatedAt | string | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "foodCategories",
"apiName": "list",
"data": {
"items": [
{
"id": "id_123",
"name": "value",
"displaySort": 1,
"isActive": true,
"createdAt": "value",
"updatedAt": "2026-03-12"
}
]
}
}'Example Response
{ "status": "ok", "data": {} }