Agent API v1

Search, book, and manage consent on the example directory. Humans send x-demo-member: MBR-EX-1044. Nova sends Authorization: Bearer bmdp_test_nova plus a grant. The spec is at /api/openapi.json. The agent card is at /.well-known/agent.json.

MethodPathSummaryScope
get/api/v1/providersSearch providerspublic
get/api/v1/providers/{id}Get one provider and scheduling pathspublic
get/api/v1/providers/{id}/availabilityList open slotspublic
post/api/v1/bookingsCreate a bookingbook
get/api/v1/bookingsList bookings for the memberread_profile
post/api/v1/bookings/{id}/cancelCancel a bookingreschedule
post/api/v1/bookings/{id}/rescheduleMove a booking to another open slotreschedule
post/api/v1/waitlistJoin a waitlist for an earlier slotbook
get/api/v1/consent-grantsList consent grantsread_profile
post/api/v1/consent-grantsCreate a scoped, expiring consent granthuman
delete/api/v1/consent-grants/{id}Revoke a consent granthuman

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
})

A2A skills

  • Search providers

    Search the example Atlanta directory by ZIP, specialty, hospital, language, plan, and availability.

    Find a Spanish-speaking family physician near 30318 who takes Peachline PPO.

  • Book a visit

    Hold an open slot after the member approves a short-lived consent grant.

    Book the earliest telehealth slot with Dr. Boateng. The member consented for 15 minutes.

  • Reschedule or cancel

    Move or cancel an existing example booking and refresh reminders.

    Cancel booking bk-101 and join the waitlist if something earlier opens.

EXAMPLE DATA