EndpointsSearch

Search

Function-calling namespace: search

  • 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.

global

Source: backend/endpoints/search/global

Input Fields

FieldTypeRequiredConstraints
querystringYes-
latitudenumberNonullable
longitudenumberNonullable
limitintegerNo-

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": "search",
  "apiName": "global",
  "data": {
    "query": "value"
  }
}'

Example Response

{ "status": "ok", "data": {} }

service

Source: backend/endpoints/search/service

Input Fields

FieldTypeRequiredConstraints
querystringYes-
servicestringNo-
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": "search",
  "apiName": "service",
  "data": {
    "query": "value"
  }
}'

Example Response

{ "status": "ok", "data": {} }