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

AreaUI RouteAPI RouteMethodAuthNotes
Account/dashboardbase44.auth.magicLinkPOSTnonesends magic link to email
AdGenius/dashboard/ads/new/functions/adgeniusLinkPOSToauthlinks ads account(s)
E‑bookeasy/dashboard (book editor)/functions/ebookeasyPublishPOSTapiKeypublish + returns jobId
Traffic Converter/dashboard/ads/new/functions/trafficStartPOSTapiKeylaunches/resumes campaign
Reader Live/reader/live/functions/readerLiveOpenPOSTsessionreturns signed room URL (early free)

Webhook Endpoints

Ebookeasy → POST /functions/ebookeasyWebhook
AdGenius → POST /functions/adgeniusWebhook
Traffic → POST /functions/trafficWebhook

Tip: 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.

Share This Page

Get in Touch

Thanks! We'll be in touch soon.
base44
Edit with Base44