Before you start
You need Node.js 20 or later andcloudflared, which gives your local app a public HTTPS address the dashboard can load:
1
Create your app
Sign in at app.maxcare.ai and open the Developer Console. Click Create New App and fill in:
- App Info: App Name and Category.
- Version: a Version such as
0.1.0, andhttp://localhost:3000as the App URL. You’ll replace it with your tunnel address in step 3. - Permissions: under Intramail, turn on read access (
read:intramail).
2
Run the app template
http://localhost:3000. Leave this terminal open.The
cp puts the App Bridge script in public/, which lets your app talk to the dashboard.3
Give it an HTTPS address
In a second terminal:Copy the
https://….trycloudflare.com address it prints. In the Developer Console, open your app, click Edit Draft, paste the address into App URL, and click Save Draft.4
Open it in the developer sandbox
On your app’s page, click Test in developer sandbox. The dashboard switches to the sandbox and opens your app inside it. The sandbox also gives you your own mailbox of generated intramail.Click Back to Dev Portal to return to your own organization.
5
Create an API key
On your app’s page, open the API Keys tab:
- Click Create API Key, name it, select
read:intramail, and click Create Key. - Copy the key right away. It is only shown once.
- Copy the sandbox organization ID shown under the API Keys heading. Every request to the sandbox sends it.
.env.local in your project folder:.env.local
6
Make your first request
Load Every request needs both headers:
.env.local into your terminal, then check your mailbox’s status and read your messages:Authorization with your API key, and X-Organization-Id with the organization whose data you’re reading. Both calls should return "code": "success".Troubleshooting
Next steps
When your app is ready, open your draft in the Developer Console and click Submit for Review. Once the Max AI team approves it, clinics can install it from the marketplace.App Development
Use App Bridge and the UI components inside the dashboard.
Scopes
Which scopes grant access to which endpoints.
CLI Reference
Create, run and deploy apps from the command line.
Authentication
API keys, organization IDs and app tokens.
