Dental Consultations
Function-calling namespace: dentalConsultations
- 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/dental-consultations/create
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
consultationId | string | Yes | - |
organizationId | string | Yes | - |
findings | array<object> | No | - |
attachments | array<object> | No | - |
Nested Field Structures
findings item
| Field | Type | Required | Constraints |
|---|---|---|---|
toothNumber | string | No | - |
arch | string | No | - |
surfaces | array<string> | No | - |
status | string | No | - |
diagnosis | string | No | - |
icdCode | string | No | - |
clinicalFindings | array<string> | No | - |
notes | string | No | - |
attachments item
| Field | Type | Required | Constraints |
|---|---|---|---|
url | string | No | - |
type | string | No | - |
name | 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": "dentalConsultations",
"apiName": "create",
"data": {
"consultationId": "consultation_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }delete
Source: backend/endpoints/dental-consultations/delete
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
consultationId | 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": "dentalConsultations",
"apiName": "delete",
"data": {
"consultationId": "consultation_123",
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }getByConsultation
Source: backend/endpoints/dental-consultations/get-by-consultation
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
consultationId | string | No | - |
appointmentId | string | No | - |
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": "dentalConsultations",
"apiName": "getByConsultation",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }update
Source: backend/endpoints/dental-consultations/update
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
consultationId | string | No | - |
appointmentId | string | No | - |
organizationId | string | Yes | - |
findings | array<object> | No | nullable |
attachments | array<object> | No | nullable |
Nested Field Structures
findings item
| Field | Type | Required | Constraints |
|---|---|---|---|
toothNumber | string | No | - |
arch | string | No | - |
surfaces | array<string> | No | - |
status | string | No | - |
diagnosis | string | No | - |
icdCode | string | No | - |
clinicalFindings | array<string> | No | - |
notes | string | No | - |
attachments item
| Field | Type | Required | Constraints |
|---|---|---|---|
url | string | No | - |
type | string | No | - |
name | 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": "dentalConsultations",
"apiName": "update",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }