Evergreen

Connected Apps

Apps you've linked to EvergreenAI can read your credit balance and open OMNI with the photos they send. Disconnecting cuts them off straight away.

Available credits

0

Linked apps

No apps connected yet

When another app asks to connect, you'll approve it on EvergreenAI and it will appear here.

Connecting another app

Send the user to the approval screen from your app, then call the functions below from your backend.

https://evergreenrs.base44.app/ConnectOmni?app_id=photo-delivery&app_name=Photo%20Delivery&user=<user-id>&redirect=<return-url>

Functions are called at /functions/<name> on the EvergreenAI domain, from your app's backend. Never expose the token in the browser.

POSTomniIntegrationRedeem

Trade the one-time link code for a token. Call once, store the token server-side.

{
  "code": "<code from the link screen>",
  "external_app_id": "photo-delivery",
  "external_user_id": "<your user id>"
}

Returns

{ "token": "…", "user_email": "…", "credits_balance": 4820, "expires_at": "…" }
POSTomniIntegrationStatus

Read the linked account and its current credit balance.

{ "token": "<token>" }

Returns

{ "linked": true, "user_email": "…", "credits_balance": 4820 }
POSTomniIntegrationLaunch

Get a one-time OMNI URL preloaded with the selected photos.

{
  "token": "<token>",
  "photos": ["https://…/photo-1.jpg", "https://…/photo-2.jpg"]
}

Returns

{ "launch_url": "https://evergreenrs.base44.app/Omni?handoff=…", "photo_count": 2 }
POSTomniIntegrationDisconnect

Revoke the token. Balance reads and launches stop working immediately.

{ "token": "<token>" }

Returns

{ "success": true }

Open the launch URL in a new tab rather than an iframe. OMNI runs on the user's EvergreenAI session, which browsers withhold inside a third-party iframe, so an embedded editor can't sign the user in.