EndpointsServices

Services

Function-calling namespace: services

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

checkServiceDependencies

Source: backend/endpoints/services/check-service-dependencies

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-
serviceIdstringYes-

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": "services",
  "apiName": "checkServiceDependencies",
  "data": {
    "organizationId": "org_123",
    "serviceId": "service_123"
  }
}'

Example Response

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

create

Source: backend/endpoints/services/create

Input Fields

FieldTypeRequiredConstraints
usageobjectNonullable
_idstringNo-
organizationIdstringNo-
organizationobjectNonullable
categoryIdstringNo-
categoryIdsarray<string>No-
categoryobjectNonullable
platformCategoryIdstringNo-
platformCategoryIdsarray<string>No-
platformCategoryobjectNonullable
departmentIdstringNo-
platformDepartmentIdstringNo-
departmentobjectNonullable
platformDepartmentobjectNonullable
namestringNo-
codestringNo-
descriptionstringNo-
imageIdstringNo-
imageUrlarray<string>No-
typestringNo-
serviceCategorystringNo-
chargeTypestringNo-
unitstringNo-
basePricenumberNo-
mrpnumberNonullable
minAgeintegerNonullable
maxAgeintegerNonullable
consumeTypeIdstringNo-
hsnCodestringNo-
batchNumberstringNo-
expiryDatestringNoformat: YYYY-MM-DD
dosagestringNo-
prescriptionTypestringNo-
sideEffectsarray<object>No-
safetyAdvicearray<object>No-
discountnumberNo-
currencystringNo-
genderarray<string>No-
doctorIdstringNo-
doctorProfileobjectNonullable
userobjectNonullable
isAvailableTodaybooleanNo-
consultationTypesarray<string>No-
consultationTypestringNo-
isHomeCollectionAvailablebooleanNo-
sampleTypestringNo-
videoUrlarray<string>No-
faqarray<object>No-
metadataobjectNonullable
totalReviewsintegerNo-
averageRatingsnumberNo-
isBestSellerbooleanNo-
feedbacksarray<object>No-
isActivebooleanNo-
isPublicbooleanNo-
isDeletedbooleanNonullable
deletedAtintegerNounix-ms timestamp; nullable
createdAtintegerNounix-ms timestamp
updatedAtintegerNounix-ms timestamp
statusstringNo-

Nested Field Structures

organization

FieldTypeRequiredConstraints
_idstringNo-
stackTeamIdstringNo-
namestringNo-
slugstringNo-
verificationStatusstringNo-
typestringNo-
organizationTypeIdstringNo-
organizationTypeNamestringNo-
facilitiesobjectNo-
logoIdstringNo-
logoUrlstringNo-
settingsobjectNo-
addressobjectNo-
coordinatesobjectNo-
addressStreetstringNo-
addressCitystringNo-
addressStatestringNo-
addressPostalCodestringNo-
addressCountrystringNo-
contactEmailstringNo-
contactPhonestringNo-
contactCustomerCarePhonestringNo-
contactCustomerCareEmailstringNo-
bankDetailsobjectNo-
openingHoursobjectNo-
serviceAudiencesarray<string>No-
serviceOccasionsarray<string>No-
commissionPercentnumberNo-
totalReviewsintegerNo-
averageRatingsnumberNo-
isActivebooleanNo-
isDeletedbooleanNo-
deletedAtintegerNounix-ms timestamp; nullable
createdAtintegerNounix-ms timestamp
updatedAtintegerNounix-ms timestamp

category

FieldTypeRequiredConstraints
_idstringNo-
organizationIdstringNo-
platformCategoryIdstringNo-
namestringNo-
codestringNo-
typestringNo-
descriptionstringNo-
iconstringNo-
sortOrderintegerNo-
isActivebooleanNo-
createdAtintegerNounix-ms timestamp
updatedAtintegerNounix-ms timestamp

platformCategory

FieldTypeRequiredConstraints
_idstringNo-
namestringNo-
codestringNo-
slugstringNo-
typestringNo-
descriptionstringNo-
imageUrlstringNo-
videoUrlstringNo-
isActivebooleanNo-
sortOrderintegerNo-
parentIdsarray<string>No-
organizationTypeIdsarray<string>No-
organizationTypeNamesarray<string>No-
dependentServicesCountintegerNo-
createdAtintegerNounix-ms timestamp
updatedAtintegerNounix-ms timestamp

department

FieldTypeRequiredConstraints
_idstringNo-
organizationIdstringNo-
platformDepartmentIdstringNo-
namestringNo-
codestringNo-
descriptionstringNo-
hodUserIdstringNo-
operatingHoursobjectNonullable
isActivebooleanNo-
createdAtintegerNounix-ms timestamp
updatedAtintegerNounix-ms timestamp

platformDepartment

FieldTypeRequiredConstraints
_idstringNo-
namestringNo-
codestringNo-
descriptionstringNo-
categorystringNo-
imageUrlstringNo-
rolestringNo-
rolesarray<string>No-
serviceCountintegerNo-
isActivebooleanNo-
createdAtintegerNounix-ms timestamp
updatedAtintegerNounix-ms timestamp

sideEffects item

FieldTypeRequiredConstraints
titlestringNo-
descriptionstringNo-

safetyAdvice item

FieldTypeRequiredConstraints
typestringNo-
statusstringNo-
messagestringNo-

doctorProfile

FieldTypeRequiredConstraints
_idstringNo-
userIdstringNo-
displayNamestringNo-
userobjectNonullable
organizationIdstringNo-
departmentIdstringNo-
departmentobjectNonullable
platformDepartmentobjectNonullable
experienceintegerNonullable
experiencesarray<object>No-
biostringNo-
languagesarray<string>No-
conditionsarray<string>No-
genderstringNo-
registrationNumberstringNo-
doctorSignaturestringNo-
isAvailableForOnlinebooleanNo-
weeklySchedulearray<object>No-
slotDurationintegerNonullable
profileImageIdstringNo-
profileImageUrlstringNo-
educationarray<object>No-
awardsarray<string>No-
phonestringNo-
addressstringNo-
isVerifiedbooleanNonullable
verifiedAtintegerNounix-ms timestamp; nullable
documentsarray<object>No-
totalReviewsintegerNo-
averageRatingnumberNo-
createdAtintegerNounix-ms timestamp
updatedAtintegerNounix-ms timestamp

user

FieldTypeRequiredConstraints
_idstringNo-
stackUserIdstringNo-
organizationIdstringNo-
organizationBranchIdsarray<string>No-
organizationBranchesarray<object>No-
emailstringNo-
titlestringNonullable
displayNamestringNo-
avatarUrlstringNo-
rolestringNo-
rolesarray<string>No-
isActivebooleanNonullable
isBlockedbooleanNonullable
blockedAtintegerNounix-ms timestamp; nullable
blockedBystringNo-
lastLoginAtintegerNounix-ms timestamp; nullable
isVerifiedbooleanNonullable
verifiedAtintegerNounix-ms timestamp; nullable
verifiedBystringNo-
genderstringNonullable
yoeintegerNonullable
totalReviewsintegerNo-
averageRatingsnumberNo-
createdAtintegerNounix-ms timestamp
updatedAtintegerNounix-ms timestamp

metadata

FieldTypeRequiredConstraints
sampleTypestringNo-
turnaroundTimestringNoformat: HH:mm
manufacturerstringNo-
dosageFormstringNo-
strengthstringNo-
compositionstringNo-
packSizestringNo-
modalitystringNo-
bodyPartstringNo-
locationIdstringNo-
categorystringNo-
durationMinutesintegerNonullable
modelNumberstringNo-
specificationsstringNo-
stockQuantitynumberNonullable
reorderLevelnumberNonullable
lastStockUpdatenumberNonullable

feedbacks item

FieldTypeRequiredConstraints
idstringNo-
providerOrderIdstringNo-
serviceIdstringNo-
patientIdstringNo-
ratingintegerNo-
reviewstringNo-
imagesarray<string>No-
createdAtintegerNounix-ms timestamp
updatedAtintegerNounix-ms timestamp
patientDetailsobjectNonullable

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": "services",
  "apiName": "create",
  "data": {
    "organizationId": "org_123",
    "doctorId": "doctor_123",
    "name": "value",
    "status": "scheduled",
    "organization": {
      "_id": "__123",
      "stackTeamId": "org_123",
      "name": "value",
      "slug": "value",
      "verificationStatus": "scheduled",
      "type": "general",
      "organizationTypeId": "organizationtype_123",
      "organizationTypeName": "value",
      "facilities": {},
      "logoId": "logo_123",
      "logoUrl": "value",
      "settings": {},
      "address": "221B Baker Street",
      "coordinates": {},
      "addressStreet": "221B Baker Street",
      "addressCity": "221B Baker Street",
      "addressState": "221B Baker Street",
      "addressPostalCode": "221B Baker Street",
      "addressCountry": "221B Baker Street",
      "contactEmail": "user@example.com",
      "contactPhone": "+911234567890",
      "contactCustomerCarePhone": "+911234567890",
      "contactCustomerCareEmail": "user@example.com",
      "bankDetails": {},
      "openingHours": {},
      "serviceAudiences": [
        "value"
      ],
      "serviceOccasions": [
        "value"
      ],
      "commissionPercent": 1,
      "totalReviews": 1,
      "averageRatings": 1,
      "isActive": true,
      "isDeleted": false,
      "deletedAt": 1710201600000,
      "createdAt": 1710201600000,
      "updatedAt": 1710201600000
    },
    "category": {
      "_id": "__123",
      "organizationId": "org_123",
      "platformCategoryId": "platformcategory_123",
      "name": "value",
      "code": "value",
      "type": "general",
      "description": "value",
      "icon": "value",
      "sortOrder": 1,
      "isActive": true,
      "createdAt": 1710201600000,
      "updatedAt": 1710201600000
    },
    "platformCategory": {
      "_id": "__123",
      "name": "value",
      "code": "value",
      "slug": "value",
      "type": "general",
      "description": "value",
      "imageUrl": "value",
      "videoUrl": "value",
      "isActive": true,
      "sortOrder": 1,
      "parentIds": [
        "value"
      ],
      "organizationTypeIds": [
        "value"
      ],
      "organizationTypeNames": [
        "value"
      ],
      "dependentServicesCount": 1,
      "createdAt": 1710201600000,
      "updatedAt": 1710201600000
    },
    "department": {
      "_id": "__123",
      "organizationId": "org_123",
      "platformDepartmentId": "org_123",
      "name": "value",
      "code": "value",
      "description": "value",
      "hodUserId": "hoduser_123",
      "operatingHours": {
        "openTime": "10:30",
        "closeTime": "10:30",
        "daysOpen": [
          "value"
        ]
      },
      "isActive": true,
      "createdAt": 1710201600000,
      "updatedAt": 1710201600000
    },
    "platformDepartment": {
      "_id": "__123",
      "name": "value",
      "code": "value",
      "description": "value",
      "category": "value",
      "imageUrl": "value",
      "role": "value",
      "roles": [
        "value"
      ],
      "serviceCount": 1,
      "isActive": true,
      "createdAt": 1710201600000,
      "updatedAt": 1710201600000
    },
    "sideEffects": [
      {
        "title": "value",
        "description": "value"
      }
    ],
    "safetyAdvice": [
      {
        "type": "general",
        "status": "scheduled",
        "message": "value"
      }
    ],
    "doctorProfile": {
      "_id": "__123",
      "userId": "user_123",
      "displayName": "value",
      "user": {
        "_id": "__123",
        "stackUserId": "stackuser_123",
        "organizationId": "org_123",
        "organizationBranchIds": [
          "value"
        ],
        "organizationBranches": [
          {
            "_id": "__123",
            "organizationId": "org_123",
            "branchName": "value",
            "branchCode": "value",
            "branchType": "general",
            "description": "value",
            "managerName": "value",
            "managerContact": "value",
            "streetAddress": "221B Baker Street",
            "area": "value",
            "city": "Bengaluru",
            "state": "Karnataka",
            "postalCode": "value",
            "country": "India",
            "coordinates": {},
            "contactPhone": "+911234567890",
            "telephoneNumber": "+911234567890",
            "contactEmail": "user@example.com",
            "website": "value",
            "emergencyContact": "value",
            "openingHours": {},
            "coverImageUrl": "value",
            "status": "scheduled",
            "isActive": true,
            "isDeleted": false,
            "deletedAt": 1710201600000,
            "createdAt": 1710201600000,
            "updatedAt": 1710201600000
          }
        ],
        "email": "user@example.com",
        "title": "value",
        "displayName": "value",
        "avatarUrl": "value",
        "role": "value",
        "roles": [
          "value"
        ],
        "isActive": true,
        "isBlocked": true,
        "blockedAt": 1710201600000,
        "blockedBy": "value",
        "lastLoginAt": 1710201600000,
        "isVerified": true,
        "verifiedAt": 1710201600000,
        "verifiedBy": "value",
        "gender": "value",
        "yoe": 1,
        "totalReviews": 1,
        "averageRatings": 1,
        "createdAt": 1710201600000,
        "updatedAt": 1710201600000
      },
      "organizationId": "org_123",
      "departmentId": "department_123",
      "department": {
        "_id": "__123",
        "organizationId": "org_123",
        "platformDepartmentId": "org_123",
        "name": "value",
        "code": "value",
        "description": "value",
        "hodUserId": "hoduser_123",
        "operatingHours": {
          "openTime": "10:30",
          "closeTime": "10:30",
          "daysOpen": [
            "value"
          ]
        },
        "isActive": true,
        "createdAt": 1710201600000,
        "updatedAt": 1710201600000
      },
      "platformDepartment": {
        "_id": "__123",
        "name": "value",
        "code": "value",
        "description": "value",
        "category": "value",
        "imageUrl": "value",
        "role": "value",
        "roles": [
          "value"
        ],
        "serviceCount": 1,
        "isActive": true,
        "createdAt": 1710201600000,
        "updatedAt": 1710201600000
      },
      "experience": 1,
      "experiences": [
        {
          "id": "id_123",
          "designation": "value",
          "hospitalName": "value",
          "startYear": "value",
          "endYear": "value",
          "isCurrent": true,
          "experienceLabel": "value",
          "createdAt": 1710201600000,
          "updatedAt": 1710201600000
        }
      ],
      "bio": "value",
      "languages": [
        "value"
      ],
      "conditions": [
        "diabetes",
        "fever"
      ],
      "gender": "value",
      "registrationNumber": "value",
      "doctorSignature": "value",
      "isAvailableForOnline": true,
      "weeklySchedule": [
        {
          "day": "value",
          "startTime": "10:30",
          "endTime": "10:30",
          "isActive": true,
          "slotDuration": 1,
          "breakEnabled": true,
          "breakInterval": 1,
          "breakDuration": 1
        }
      ],
      "slotDuration": 1,
      "profileImageId": "profileimage_123",
      "profileImageUrl": "value",
      "education": [
        {
          "id": "id_123",
          "degree": "value",
          "institute": "value",
          "startYear": "value",
          "endYear": "value",
          "year": "value",
          "educationStatus": "scheduled",
          "educationLabel": "value",
          "createdAt": 1710201600000,
          "updatedAt": 1710201600000
        }
      ],
      "awards": [
        "value"
      ],
      "phone": "+911234567890",
      "address": "221B Baker Street",
      "isVerified": true,
      "verifiedAt": 1710201600000,
      "documents": [
        {
          "type": "general",
          "name": "value",
          "url": "value",
          "uploadedAt": 1710201600000
        }
      ],
      "totalReviews": 1,
      "averageRating": 1,
      "createdAt": 1710201600000,
      "updatedAt": 1710201600000
    }
  }
}'

Example Response

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

delete

Source: backend/endpoints/services/delete

Input Fields

FieldTypeRequiredConstraints
idstringYes-
organizationIdstringYes-

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": "services",
  "apiName": "delete",
  "data": {
    "id": "id_123",
    "organizationId": "org_123"
  }
}'

Example Response

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

getById

Source: backend/endpoints/services/get-by-id

Input Fields

FieldTypeRequiredConstraints
idstringYes-
organizationIdstringNo-

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": "services",
  "apiName": "getById",
  "data": {
    "id": "id_123"
  }
}'

Example Response

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

getPharmacyCatalogPublic

Source: backend/endpoints/services/get-pharmacy-catalog-public

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-
limitItemsPerCategoryintegerNo-

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

Example Response

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

getStats

Source: backend/endpoints/services/get-stats

Input Fields

FieldTypeRequiredConstraints
organizationIdstringNo-

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

Example Response

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

getSystemServiceById

Source: backend/endpoints/services/get-system-service-by-id

Input Fields

FieldTypeRequiredConstraints
idstringYes-
organizationIdstringYes-

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": "services",
  "apiName": "getSystemServiceById",
  "data": {
    "id": "id_123",
    "organizationId": "org_123"
  }
}'

Example Response

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

list

Source: backend/endpoints/services/list

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-
typearray<string>No-
searchstringNo-
pageintegerNo-
pageSizeintegerNo-
includeDeletedbooleanNo-

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

Example Response

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

listActiveLabServices

Source: backend/endpoints/services/list-active-lab-services

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-
typearray<string>No-
searchstringNo-
sortBystringNo-
sortOrderstringNo-
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": "services",
  "apiName": "listActiveLabServices",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

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

listAllActiveServices

Source: backend/endpoints/services/list-all-active-services

Input Fields

FieldTypeRequiredConstraints
typearray<string>No-
searchstringNo-
organizationIdarray<string>No-
consultationTypesarray<string>No-
specializationarray<string>No-
conditionsarray<string>No-
languagesarray<string>No-
genderarray<string>No-
ratingnumberNonullable
departmentIdarray<string>No-
categoryIdarray<string>No-
minPricenumberNonullable
maxPricenumberNonullable
medicineNamesarray<string>No-
labTestNamesarray<string>No-
nearByobjectNonullable
sortBystringNo-
cursorstringNo-
pageintegerNo-
pageSizeintegerNo-

Nested Field Structures

nearBy

FieldTypeRequiredConstraints
latnumberNounix-ms timestamp; nullable
lotnumberNonullable
latitudenumberNonullable
longitudenumberNonullable
radiusKmnumberNonullable
addressStreetstringNo-
addressCitystringNo-
addressStatestringNo-
addressPostalCodestringNo-
addressCountrystringNo-

Filter Notes

  • conditions accepts condition names or condition IDs, for example ["diabetes", "fever"].
  • When conditions is sent without type, the backend filters consultation services because conditions belong to doctor profiles.
  • The filter checks the normalized doctor-profile-condition mapping table and falls back to the legacy doctor_profiles.conditions JSON data during migration.
  • type, organizationId, specialization, conditions, languages, gender, departmentId, categoryId, and medicineNames accept either a string, comma-separated string, or array of strings.

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": "services",
  "apiName": "listAllActiveServices",
  "data": {
    "conditions": [
      "diabetes",
      "fever"
    ],
    "page": 1,
    "pageSize": 20
  }
}'

Example Response

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

listByCategory

Source: backend/endpoints/services/list-by-category

Input Fields

FieldTypeRequiredConstraints
categoryIdstringYes-
pageintegerNo-
pageSizeintegerNo-
organizationTypeIdsarray<string>No-
organizationTypeIdstringNonullable

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": "services",
  "apiName": "listByCategory",
  "data": {
    "categoryId": "category_123"
  }
}'

Example Response

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

listByOrganization

Source: backend/endpoints/services/list-by-organization

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-
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": "services",
  "apiName": "listByOrganization",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

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

listDiagnosticTests

Source: backend/endpoints/services/list-diagnostic-tests

Input Fields

FieldTypeRequiredConstraints
organizationIdstringNo-
organizationIdsarray<string>No-
categoryIdstringNo-
categoryIdsarray<string>No-
searchstringNo-
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": "services",
  "apiName": "listDiagnosticTests",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

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

listPharmacyCatalogPublic

Source: backend/endpoints/services/list-pharmacy-catalog-public

Input Fields

FieldTypeRequiredConstraints
searchQuerystringNo-
limitProvidersintegerNo-
limitItemsPerCategoryintegerNo-

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": "services",
  "apiName": "listPharmacyCatalogPublic",
  "data": {
    "searchQuery": "value",
    "limitProviders": 1,
    "limitItemsPerCategory": 1
  }
}'

Example Response

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

listPlatformCategories

Source: backend/endpoints/services/list-platform-categories

Input Fields

FieldTypeRequiredConstraints
typesarray<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": "services",
  "apiName": "listPlatformCategories",
  "data": {
    "types": [
      "value"
    ]
  }
}'

Example Response

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

listSystemServices

Source: backend/endpoints/services/list-system-services

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-

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

Example Response

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

softDelete

Source: backend/endpoints/services/soft-delete

Input Fields

FieldTypeRequiredConstraints
idstringYes-
organizationIdstringYes-

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": "services",
  "apiName": "softDelete",
  "data": {
    "id": "id_123",
    "organizationId": "org_123"
  }
}'

Example Response

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

update

Source: backend/endpoints/services/update

Input Fields

FieldTypeRequiredConstraints
idstringYes-
organizationIdstringYes-
usageobjectNonullable
categoryIdstringNonullable
categoryIdsarray<string>Nonullable
platformCategoryIdstringNonullable
platformCategoryIdsarray<string>Nonullable
departmentIdstringNonullable
platformDepartmentIdstringNonullable
namestringNonullable
codestringNonullable
descriptionstringNonullable
imageIdstringNonullable
imageUrlarray<string>Nonullable
typestringNonullable
serviceCategorystringNonullable
chargeTypestringNonullable
unitstringNonullable
basePricenumberNonullable
mrpnumberNonullable
minAgeintegerNonullable
maxAgeintegerNonullable
consumeTypeIdstringNonullable
hsnCodestringNonullable
batchNumberstringNonullable
expiryDatestringNoformat: YYYY-MM-DD; nullable
dosagestringNonullable
prescriptionTypestringNonullable
sideEffectsarray<object>Nonullable
safetyAdvicearray<object>Nonullable
currencystringNonullable
genderarray<string>Nonullable
doctorIdstringNonullable
consultationTypesarray<string>Nonullable
consultationTypestringNonullable
isHomeCollectionAvailablebooleanNonullable
sampleTypestringNonullable
videoUrlarray<string>Nonullable
faqarray<object>No-
metadataobjectNonullable
totalReviewsintegerNonullable
averageRatingsnumberNonullable
isActivebooleanNonullable
isPublicbooleanNonullable
isDeletedbooleanNonullable
deletedAtintegerNounix-ms timestamp; nullable
createdAtintegerNounix-ms timestamp; nullable
updatedAtintegerNounix-ms timestamp; nullable

Nested Field Structures

sideEffects item

FieldTypeRequiredConstraints
titlestringNo-
descriptionstringNo-

safetyAdvice item

FieldTypeRequiredConstraints
typestringNo-
statusstringNo-
messagestringNo-

metadata

FieldTypeRequiredConstraints
sampleTypestringNo-
turnaroundTimestringNoformat: HH:mm
manufacturerstringNo-
dosageFormstringNo-
strengthstringNo-
compositionstringNo-
packSizestringNo-
modalitystringNo-
bodyPartstringNo-
locationIdstringNo-
categorystringNo-
durationMinutesintegerNonullable
modelNumberstringNo-
specificationsstringNo-
stockQuantitynumberNonullable
reorderLevelnumberNonullable
lastStockUpdatenumberNonullable

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": "services",
  "apiName": "update",
  "data": {
    "id": "id_123",
    "organizationId": "org_123"
  }
}'

Example Response

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

v1Create

Source: backend/endpoints/services/v1/create

Input Fields

FieldTypeRequiredConstraints
idstringNo-
namestringNo-
codestringNo-
descriptionstringNo-
typestringNo-
chargeTypestringNo-
unitstringNo-
categoryIdstringNo-
categoryIdsarray<string>No-
platformCategoryIdsarray<string>No-
imageUrlarray<string>No-
imageUrlsarray<string>No-
basePricenumberNo-
mrpnumberNonullable
minAgeintegerNonullable
maxAgeintegerNonullable
min_ageintegerNonullable
max_ageintegerNonullable
consumeTypeIdstringNo-
hsnCodestringNo-
batchNumberstringNo-
expiryDatestringNoformat: YYYY-MM-DD
dosagestringNo-
prescriptionTypestringNo-
sideEffectsarray<object>No-
safetyAdvicearray<object>No-
currencystringNo-
organizationIdstringNo-
departmentIdstringNo-
doctorIdstringNo-
genderarray<string>No-
consultationTypesarray<string>No-
isHomeCollectionAvailablebooleanNonullable
sampleTypestringNo-
videoUrlarray<string>No-
faqarray<object>No-
metadataobjectNonullable
isActivebooleanNonullable
isPublicbooleanNonullable

Nested Field Structures

sideEffects item

FieldTypeRequiredConstraints
titlestringNo-
descriptionstringNo-

safetyAdvice item

FieldTypeRequiredConstraints
typestringNo-
statusstringNo-
messagestringNo-

metadata

FieldTypeRequiredConstraints
sampleTypestringNo-
turnaroundTimestringNoformat: HH:mm
manufacturerstringNo-
dosageFormstringNo-
strengthstringNo-
compositionstringNo-
packSizestringNo-
modalitystringNo-
bodyPartstringNo-
locationIdstringNo-
categorystringNo-
durationMinutesintegerNonullable
modelNumberstringNo-
specificationsstringNo-
stockQuantitynumberNonullable
reorderLevelnumberNonullable
lastStockUpdatenumberNonullable

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": "services",
  "apiName": "v1Create",
  "data": {
    "organizationId": "org_123",
    "id": "id_123",
    "doctorId": "doctor_123",
    "name": "value",
    "sideEffects": [
      {
        "title": "value",
        "description": "value"
      }
    ],
    "safetyAdvice": [
      {
        "type": "general",
        "status": "scheduled",
        "message": "value"
      }
    ],
    "metadata": {
      "sampleType": "general",
      "turnaroundTime": "10:30",
      "manufacturer": "value",
      "dosageForm": "value",
      "strength": "value",
      "composition": "value",
      "packSize": "value",
      "modality": "value",
      "bodyPart": "value",
      "locationId": "location_123",
      "category": "value",
      "durationMinutes": 1,
      "modelNumber": "value",
      "specifications": "value",
      "stockQuantity": 1,
      "reorderLevel": 1,
      "lastStockUpdate": "2026-03-12"
    }
  }
}'

Example Response

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

v1ListByOrganization

Source: backend/endpoints/services/v1/list-by-organization

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-
typestringNo-
searchstringNo-
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": "services",
  "apiName": "v1ListByOrganization",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

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

v1ListConsultationServices

Source: backend/endpoints/services/v1/list-consultation-services

Input Fields

FieldTypeRequiredConstraints
searchstringNo-
typestringNo-
isActivebooleanNonullable
pageintegerNo-
pageSizeintegerNo-
page_sizeintegerNo-

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": "services",
  "apiName": "v1ListConsultationServices",
  "data": {
    "search": "value",
    "type": "general",
    "isActive": true,
    "page": 1,
    "pageSize": 1,
    "page_size": 1
  }
}'

Example Response

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

v1ListDiagnosticCatalog

Source: backend/endpoints/services/v1/list-diagnostic-catalog

Input Fields

FieldTypeRequiredConstraints
searchstringNo-
pageintegerNo-
pageSizeintegerNo-
page_sizeintegerNo-
categoryIdstringNo-
categoryIdsarray<string>No-
category_idstringNo-
category_idsarray<string>No-
categoryNamestringNo-
categoryNamesarray<string>No-
category_namestringNo-
category_namesarray<string>No-
organizationIdstringNo-
organizationIdsarray<string>No-
organization_idstringNo-
organization_idsarray<string>No-
minPricenumberNonullable
maxPricenumberNonullable
min_pricenumberNonullable
max_pricenumberNonullable
minAgeintegerNonullable
maxAgeintegerNonullable
min_ageintegerNonullable
max_ageintegerNonullable
averageRatingsnumberNonullable
average_ratingsnumberNonullable
sortBystringNo-
sort_bystringNo-
labTestNamesarray<string>No-
lab_test_namesarray<string>No-
itemTypesarray<string>No-
item_typesarray<string>No-
typesarray<string>No-
typestringNo-
genderarray<string>No-
gendersarray<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": "services",
  "apiName": "v1ListDiagnosticCatalog",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

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

v1Update

Source: backend/endpoints/services/v1/update

Input Fields

FieldTypeRequiredConstraints
idstringYes-
organizationIdstringNo-
namestringNo-
codestringNo-
descriptionstringNo-
typestringNo-
categoryIdstringNo-
categoryIdsarray<string>No-
platformCategoryIdsarray<string>No-
imageUrlarray<string>No-
imageUrlsarray<string>No-
basePricenumberNonullable
mrpnumberNonullable
minAgeintegerNonullable
maxAgeintegerNonullable
consumeTypeIdstringNo-
hsnCodestringNo-
batchNumberstringNo-
expiryDatestringNoformat: YYYY-MM-DD
dosagestringNo-
prescriptionTypestringNo-
sideEffectsarray<object>No-
safetyAdvicearray<object>No-
currencystringNo-
departmentIdstringNo-
genderarray<string>No-
isHomeCollectionAvailablebooleanNonullable
sampleTypestringNo-
videoUrlarray<string>No-
faqarray<object>No-
metadataobjectNonullable
isActivebooleanNonullable
isPublicbooleanNonullable

Nested Field Structures

sideEffects item

FieldTypeRequiredConstraints
titlestringNo-
descriptionstringNo-

safetyAdvice item

FieldTypeRequiredConstraints
typestringNo-
statusstringNo-
messagestringNo-

metadata

FieldTypeRequiredConstraints
sampleTypestringNo-
turnaroundTimestringNoformat: HH:mm
manufacturerstringNo-
dosageFormstringNo-
strengthstringNo-
compositionstringNo-
packSizestringNo-
modalitystringNo-
bodyPartstringNo-
locationIdstringNo-
categorystringNo-
durationMinutesintegerNonullable
modelNumberstringNo-
specificationsstringNo-
stockQuantitynumberNonullable
reorderLevelnumberNonullable
lastStockUpdatenumberNonullable

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": "services",
  "apiName": "v1Update",
  "data": {
    "id": "id_123"
  }
}'

Example Response

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