$BASE = " https://tada.living/api/v1"
$KEY = " tada_key_X53I5i3IfbVw5fUw-2CC8lztP2yDN87G"
$Headers = @ { Authorization = " Bearer $KEY " }
Health check (no auth needed)
Invoke-RestMethod " $BASE /health"
Invoke-RestMethod " $BASE /entries?limit=5" - Headers $Headers
Invoke-RestMethod " $BASE /entries/ENTRY_ID" - Headers $Headers
Invoke-RestMethod " $BASE /entries" - Method Post - Headers $Headers `
- ContentType " application/json" `
- Body ' {"type":"timed","name":"Test entry","timestamp":"2026-03-04T12:00:00Z","durationSeconds":600}'
$body = @ {
operations = @ (
@ { operation = " create" ; data = @ { type = " timed" ; name = " Entry 1" ; timestamp = " 2026-03-04T12:00:00Z" ; durationSeconds = 300 } }
@ { operation = " create" ; data = @ { type = " timed" ; name = " Entry 2" ; timestamp = " 2026-03-04T13:00:00Z" ; durationSeconds = 600 } }
)
} | ConvertTo-Json - Depth 4
Invoke-RestMethod " $BASE /entries/bulk" - Method Post - Headers $Headers `
- ContentType " application/json" - Body $body
Invoke-RestMethod " $BASE /entries/ENTRY_ID" - Method Patch - Headers $Headers `
- ContentType " application/json" - Body ' {"name":"Updated name"}'
Invoke-RestMethod " $BASE /entries/ENTRY_ID" - Method Delete - Headers $Headers
Invoke-RestMethod " $BASE /rhythms" - Headers $Headers
Invoke-RestMethod " $BASE /insights/summary" - Headers $Headers
Invoke-RestMethod " $BASE /insights/patterns" - Headers $Headers
Invoke-RestMethod " $BASE /insights/correlations" - Headers $Headers
Invoke-RestMethod " $BASE /export/entries" - Headers $Headers