EndpointsDental Consultations

Dental Consultations

Function-calling namespace: dentalConsultations

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

create

Source: backend/endpoints/dental-consultations/create

Input Fields

FieldTypeRequiredConstraints
consultationIdstringYes-
organizationIdstringYes-
findingsarray<object>No-
attachmentsarray<object>No-

Nested Field Structures

findings item

FieldTypeRequiredConstraints
toothNumberstringNo-
archstringNo-
surfacesarray<string>No-
statusstringNo-
diagnosisstringNo-
icdCodestringNo-
clinicalFindingsarray<string>No-
notesstringNo-

attachments item

FieldTypeRequiredConstraints
urlstringNo-
typestringNo-
namestringNo-

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

FieldTypeRequiredConstraints
consultationIdstringYes-
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": "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

FieldTypeRequiredConstraints
consultationIdstringNo-
appointmentIdstringNo-
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": "dentalConsultations",
  "apiName": "getByConsultation",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

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

update

Source: backend/endpoints/dental-consultations/update

Input Fields

FieldTypeRequiredConstraints
consultationIdstringNo-
appointmentIdstringNo-
organizationIdstringYes-
findingsarray<object>Nonullable
attachmentsarray<object>Nonullable

Nested Field Structures

findings item

FieldTypeRequiredConstraints
toothNumberstringNo-
archstringNo-
surfacesarray<string>No-
statusstringNo-
diagnosisstringNo-
icdCodestringNo-
clinicalFindingsarray<string>No-
notesstringNo-

attachments item

FieldTypeRequiredConstraints
urlstringNo-
typestringNo-
namestringNo-

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": {} }