Wishlist
Function-calling namespace: wishlist
- 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.
add
Source: backend/endpoints/services/wishlist/add
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
userId | string | Yes | - |
serviceId | string | No | - |
labPackageId | string | No | - |
productId | string | No | - |
providerCode | string | No | - |
providerItemId | string | No | - |
itemType | 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": "wishlist",
"apiName": "add",
"data": {
"userId": "user_123"
}
}'Example Response
{ "status": "ok", "data": {} }list
Source: backend/endpoints/services/wishlist/list
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
userId | string | Yes | - |
page | integer | No | - |
pageSize | integer | 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": "wishlist",
"apiName": "list",
"data": {
"userId": "user_123"
}
}'Example Response
{ "status": "ok", "data": {} }remove
Source: backend/endpoints/services/wishlist/remove
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
userId | string | Yes | - |
serviceId | string | No | - |
labPackageId | string | No | - |
productId | string | No | - |
providerCode | string | No | - |
providerItemId | 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": "wishlist",
"apiName": "remove",
"data": {
"userId": "user_123"
}
}'Example Response
{ "status": "ok", "data": {} }