Consultation Reviews
Function-calling namespace: consultation-reviews
- 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.
getByConsultationId
Source: backend/endpoints/consultation-reviews/get-by-consultation-id
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
consultationId | string | Yes | - |
actorStackUserId | 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": "consultation-reviews",
"apiName": "getByConsultationId",
"data": {
"organizationId": "org_123",
"consultationId": "consultation_123"
}
}'Example Response
{ "status": "ok", "data": {} }listByDoctor
Source: backend/endpoints/consultation-reviews/list-by-doctor
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
doctorId | string | Yes | - |
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": "consultation-reviews",
"apiName": "listByDoctor",
"data": {
"organizationId": "org_123",
"doctorId": "doctor_123"
}
}'Example Response
{ "status": "ok", "data": {} }listPendingForPatient
Source: backend/endpoints/consultation-reviews/list-pending-for-patient
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
actorStackUserId | 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": "consultation-reviews",
"apiName": "listPendingForPatient",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }submit
Source: backend/endpoints/consultation-reviews/submit
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
consultationId | string | Yes | - |
rating | integer | Yes | min: 1; max: 5 |
feedback | string | No | - |
actorStackUserId | 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": "consultation-reviews",
"apiName": "submit",
"data": {
"organizationId": "org_123",
"consultationId": "consultation_123",
"rating": 1
}
}'Example Response
{ "status": "ok", "data": {} }