curl -X POST http://localhost:8080/ingest \
-H "Content-Type: application/json" \
-d '{
"timestamp": "2026-05-23T18:00:00Z",
"source_id": "patient-records-api",
"organization": "acme-health",
"context": "production",
"pii_types": {
"credit-card": 25,
"email": 110,
"ssn": 4,
"name": 60
}
}'
Install: pip install requests
import requests
from datetime import datetime, timezone
requests.post(
"http://localhost:8080/ingest",
json={
"timestamp": datetime.now(timezone.utc).isoformat(),
"source_id": "patient-records-api",
"organization": "acme-health",
"context": "production",
"pii_types": {
"credit-card": 25,
"email": 110,
"ssn": 4,
"name": 60,
},
},
)
package main
import (
"bytes"
"encoding/json"
"net/http"
"time"
)
func main() {
payload, _ := json.Marshal(map[string]interface{}{
"timestamp": time.Now().UTC().Format(time.RFC3339),
"source_id": "patient-records-api",
"organization": "acme-health",
"context": "production",
"pii_types": map[string]int{
"credit-card": 25,
"email": 110,
"ssn": 4,
"name": 60,
},
})
http.Post("http://localhost:8080/ingest", "application/json", bytes.NewReader(payload))
}