Compare clinics
curl --request GET \
--url https://api.muveya.com/v1/analytics/clinics/comparison \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/analytics/clinics/comparison', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/analytics/clinics/comparison"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"metric": "<string>",
"definition": "<string>",
"unit": "<string>",
"timezone": "<string>",
"asOf": "2023-11-07T05:31:56Z",
"freshness": "live",
"evidenceId": "<string>",
"truncated": true,
"filters": {},
"clinics": [
{
"clinicId": "<string>",
"clinicName": "<string>",
"clinicStatus": "active",
"totalOrders": 123,
"pendingApprovalOrders": 123
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}Analytics
Compare clinics
Compares the workspace clinics by order volume (total and pending approval) with the metric definition shown. Counts only — order value is redacted unless the key holds the value scope (none in v1). Requires analytics:read. Deterministic; computed live over the workspace data.
GET
/
v1
/
analytics
/
clinics
/
comparison
Compare clinics
curl --request GET \
--url https://api.muveya.com/v1/analytics/clinics/comparison \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/analytics/clinics/comparison', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/analytics/clinics/comparison"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"metric": "<string>",
"definition": "<string>",
"unit": "<string>",
"timezone": "<string>",
"asOf": "2023-11-07T05:31:56Z",
"freshness": "live",
"evidenceId": "<string>",
"truncated": true,
"filters": {},
"clinics": [
{
"clinicId": "<string>",
"clinicName": "<string>",
"clinicStatus": "active",
"totalOrders": 123,
"pendingApprovalOrders": 123
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}Authorizations
Opaque mvy_test_ API key sent as a Bearer token. It derives exactly one workspace server-side; the path never carries a workspace selector.
Response
The clinic comparison.
The human-readable definition of the comparison metric (shown, never implicit).
Available options:
live True when the order scan hit its cap: the counts are a lower bound.
Show child attributes
Show child attributes
Show child attributes
Show child attributes