Oracle99 Function Wiring Kit
// Output will appear here
Function Map (YAML)
functions:
- name: sendMagicLink
type: internal
trigger: ui:click
path: base44.auth.magicLink
method: POST
params:
- email: string
returns: { message: string }
depends_on: []
auth: none
env_keys: []
- name: adgeniusLink
type: external
trigger: ui:click
path: /functions/adgeniusLink
method: POST
params:
- accountId: string
returns: { status: string }
depends_on: []
auth: oauth
env_keys: [ADGENIUS_CLIENT_ID, ADGENIUS_CLIENT_SECRET, ADGENIUS_REDIRECT_URI]
- name: ebookeasyPublish
type: external
trigger: ui:click
path: /functions/ebookeasyPublish
method: POST
params:
- manuscriptUrl: string
- isbn: string
- title: string
returns: { jobId: string, status: string }
depends_on: [entities.Book, entities.Publication]
auth: apiKey
env_keys: [EBOOKEASY_API_KEY]
- name: trafficStart
type: external
trigger: ui:click
path: /functions/trafficStart
method: POST
params:
- campaignId: string
- budget: number
- networks: string[]
returns: { campaignId: string, status: string }
depends_on: [entities.AdCampaign]
auth: apiKey
env_keys: [TRAFFIC_API_KEY]
- name: readerLiveOpen
type: internal
trigger: ui:click
path: /functions/readerLiveOpen
method: POST
params:
- profileId: string
returns: { liveUrl: string }
depends_on: [entities.Reader]
auth: session
env_keys: []Endpoint Inventory
| Area | UI Route | API Route | Method | Auth | Notes |
|---|---|---|---|---|---|
| Account | /dashboard | base44.auth.magicLink | POST | none | sends magic link to email |
| AdGenius | /dashboard/ads/new | /functions/adgeniusLink | POST | oauth | links ads account(s) |
| E‑bookeasy | /dashboard (book editor) | /functions/ebookeasyPublish | POST | apiKey | publish + returns jobId |
| Traffic Converter | /dashboard/ads/new | /functions/trafficStart | POST | apiKey | launches/resumes campaign |
| Reader Live | /reader/live | /functions/readerLiveOpen | POST | session | returns signed room URL (early free) |
Webhook Endpoints
Ebookeasy →
POST /functions/ebookeasyWebhookAdGenius →
POST /functions/adgeniusWebhookTraffic →
POST /functions/trafficWebhookTip: If providers require IP allow-lists, share their ranges and we can advise.
Auth & Secrets Checklist
- Session auth (magic link)
- OAuth (AdGenius): ADGENIUS_CLIENT_ID, ADGENIUS_CLIENT_SECRET, ADGENIUS_REDIRECT_URI
- API Keys: EBOOKEASY_API_KEY, TRAFFIC_API_KEY
- Payments later: STRIPE_PUBLIC_KEY, STRIPE_SECRET_KEY
- Optional: SENTRY_DSN
- Flags: { readerLiveFree: true, earlySupporter: true }
Set in Base44 → Project → Settings → Environment (Server), then redeploy.

