EndpointsWishlist

Wishlist

Function-calling namespace: wishlist

  • Base URL: https://api.aivida.in
  • Engine endpoint: POST /api
  • Auth: Stack token middleware enabled in optional mode.
  • Send token in header: x-stack-access-token: <access_token> (or Authorization: Bearer <access_token>).
  • In optional mode: no token is allowed; invalid token is rejected with 401.

add

Source: backend/endpoints/services/wishlist/add

Input Fields

FieldTypeRequiredConstraints
userIdstringYes-
serviceIdstringNo-
labPackageIdstringNo-
productIdstringNo-
providerCodestringNo-
providerItemIdstringNo-
itemTypestringNo-

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

FieldTypeRequiredConstraints
userIdstringYes-
pageintegerNo-
pageSizeintegerNo-

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

FieldTypeRequiredConstraints
userIdstringYes-
serviceIdstringNo-
labPackageIdstringNo-
productIdstringNo-
providerCodestringNo-
providerItemIdstringNo-

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": {} }