Organization Verifications
Function-calling namespace: organizationVerifications
- 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/organization-verifications/create
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
doctorRange | string | Yes | - |
verificationMethod | string | Yes | - |
documentUrl | 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": "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
| 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": "organizationVerifications",
"apiName": "getByOrganization",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }update
Source: backend/endpoints/organization-verifications/update
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
doctorRange | string | No | nullable |
verificationMethod | string | No | nullable |
documentUrl | string | No | nullable |
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
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
status | string | Yes | - |
remarks | 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": "organizationVerifications",
"apiName": "updateStatus",
"data": {
"id": "id_123",
"status": "scheduled"
}
}'Example Response
{ "status": "ok", "data": {} }