Service Reviews
Function-calling namespace: serviceReviews
- 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.
create
Source: backend/endpoints/service-reviews/create
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
serviceId | string | Yes | - |
productId | string | No | - |
patientId | string | Yes | - |
rating | integer | Yes | - |
review | string | No | - |
reviewTagIds | array<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": "serviceReviews",
"apiName": "create",
"data": {
"organizationId": "org_123",
"serviceId": "service_123",
"patientId": "patient_123",
"rating": 1
}
}'Example Response
{ "status": "ok", "data": {} }delete
Source: backend/endpoints/service-reviews/delete
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
organizationId | string | Yes | - |
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": "serviceReviews",
"apiName": "delete",
"data": {
"id": "id_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }getById
Source: backend/endpoints/service-reviews/get-by-id
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
organizationId | string | Yes | - |
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": "serviceReviews",
"apiName": "getById",
"data": {
"id": "id_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }list
Source: backend/endpoints/service-reviews/list
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
serviceId | string | No | - |
productId | string | No | - |
patientId | string | No | - |
rating | integer | No | - |
minRating | integer | No | - |
maxRating | integer | No | - |
reviewTagIds | array<string> | No | - |
search | string | No | - |
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": "serviceReviews",
"apiName": "list",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }listByOrganization
Source: backend/endpoints/service-reviews/list-by-organization
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
serviceId | string | No | - |
productId | string | No | - |
patientId | string | No | - |
rating | integer | No | - |
minRating | integer | No | - |
maxRating | integer | No | - |
reviewTagIds | array<string> | No | - |
search | string | No | - |
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": "serviceReviews",
"apiName": "listByOrganization",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }listByService
Source: backend/endpoints/service-reviews/list
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
serviceId | string | No | - |
productId | string | No | - |
patientId | string | No | - |
rating | integer | No | - |
minRating | integer | No | - |
maxRating | integer | No | - |
reviewTagIds | array<string> | No | - |
search | string | No | - |
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": "serviceReviews",
"apiName": "listByService",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }listPatientFeedbacksByOrganization
Source: backend/endpoints/service-reviews/list-patient-feedbacks-by-organization
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
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": "serviceReviews",
"apiName": "listPatientFeedbacksByOrganization",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }update
Source: backend/endpoints/service-reviews/update
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
organizationId | string | Yes | - |
serviceId | string | Yes | - |
productId | string | No | - |
patientId | string | Yes | - |
rating | integer | Yes | - |
review | string | No | - |
reviewTagIds | array<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": "serviceReviews",
"apiName": "update",
"data": {
"id": "id_123",
"organizationId": "org_123",
"serviceId": "service_123",
"patientId": "patient_123",
"rating": 1
}
}'Example Response
{ "status": "ok", "data": {} }