EndpointsBlood Bank Dashboard

Blood Bank Dashboard

Function-calling namespace: bloodBankDashboard

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

getStats

Source: backend/endpoints/blood-bank-dashboard/get-stats

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-
requestOverviewPeriodstringNo-
topDonatedPeriodstringNo-

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": "bloodBankDashboard",
  "apiName": "getStats",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

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