POST to one endpoint, with a bearer token:
A first call
Metadata
Every mutation takes ametadata argument that says who is calling. Photon uses it for audit logs and support.
source is one of DIRECT_API, WEB_APP, EMBEDDABLE_COMPONENT, MCP_CONNECTOR or LLM_AGENT.
The result
Each mutation returns a union, so always select__typename and branch on it:
Queries
Besides the three mutations, two queries read without changing anything.me
Who the token authenticated as, and what it can do. Use it to check a token before you start.
MachineCaller, and a prescriber’s user token is a ProviderCaller. permissions lists its scopes.
orders
Your organization’s orders, newest first, drafts included. It needs read:order, and returns no orders without it.
orders is also the only place an order’s availablePharmacies are filled in.
ping is deprecated and will be removed after January 31, 2027. Use me instead.