TypeScript
const res = await fetch(origin + "/api/v1/providers?zip=30309&q=knee&plan=" + encodeURIComponent("Peachline PPO"));
const data = await res.json();
await fetch(origin + "/api/v1/consent-grants", {
method: "POST",
headers: { "content-type": "application/json", "x-demo-member": "MBR-EX-1044" },
body: JSON.stringify({ agentId: "agent-nova", agentLabel: "Nova", scopes: ["book"], ttlMinutes: 15, purpose: "One visit" })
});Python
import requests
requests.get(origin + "/api/v1/providers", params={"zip": "30318", "specialty": "Family medicine", "language": "Spanish"})
requests.post(origin + "/api/v1/bookings", headers={"Authorization": "Bearer bmdp_test_nova"}, json={
"providerId": "boateng", "slotId": slot, "memberId": "MBR-EX-1044",
"plan": "Peachline PPO", "reason": "New patient visit", "consent": True, "grantId": grant
})