EndpointsOrganization Verifications

Organization Verifications

Function-calling namespace: organizationVerifications

  • 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/organization-verifications/create

Input Fields

FieldTypeRequiredConstraints
organizationIdstringYes-
doctorRangestringYes-
verificationMethodstringYes-
documentUrlstringYes-

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": "organizationVerifications",
  "apiName": "create",
  "data": {
    "organizationId": "org_123",
    "doctorRange": "value",
    "verificationMethod": "value",
    "documentUrl": "value"
  }
}'

Example Response

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

getByOrganization

Source: backend/endpoints/organization-verifications/get-by-organization

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

Example Response

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

update

Source: backend/endpoints/organization-verifications/update

Input Fields

FieldTypeRequiredConstraints
idstringYes-
doctorRangestringNonullable
verificationMethodstringNonullable
documentUrlstringNonullable

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

Example Response

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

updateStatus

Source: backend/endpoints/organization-verifications/update-status

Input Fields

FieldTypeRequiredConstraints
idstringYes-
statusstringYes-
remarksstringNo-

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": "organizationVerifications",
  "apiName": "updateStatus",
  "data": {
    "id": "id_123",
    "status": "scheduled"
  }
}'

Example Response

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