1https://usescrubs.com



1curl --location --request POST 'https://usescrubs.com/api/v1/usage-analytics' \
2--header 'X-Scrubs-Clinic-Api-Key: your_root_api_key_here' \
3--header 'X-Scrubs-Clinic-Provider: your_provider_id' \
4--header 'Content-Type: application/json' \
5--data '{
6 "start_date": "2024-01-01",
7 "end_date": "2024-01-31"
8}'
9
10# To query specific API key:
11curl --location --request POST 'https://usescrubs.com/api/v1/usage-analytics' \
12--header 'X-Scrubs-Clinic-Api-Key: your_root_api_key_here' \
13--header 'X-Scrubs-Clinic-Provider: your_provider_id' \
14--header 'Content-Type: application/json' \
15--data '{
16 "api_key_id": "key_uuid_here",
17 "start_date": "2024-01-01",
18 "end_date": "2024-01-31"
19}'1{
2 "api_key": null,
3 "total": {
4 "stt_duration": 120,
5 "tokens": 5000000,
6 "usage": 150
7 },
8 "deltas": {
9 "2024-01-15": {
10 "tokens": 1000000,
11 "usage": 25,
12 "stt_duration": 30
13 },
14 "2024-01-16": {
15 "tokens": 800000,
16 "usage": 20,
17 "stt_duration": 25
18 }
19 }
20}