Platform overview and the sessionKey model

What the platform services are

3B runs several single-purpose hosted services that sit outside Salesforce and talk to an org over its REST API. They handle work that cannot be done inside Apex: rendering a page to a PDF, calling AI vendors from a browser, moving files larger than the Apex heap, and brokering OAuth access for the other services.

Service Base URL What it does
Authorization Server https://auth.3b4sf.com Where an admin onboards an org once, so the other services can act on it.
PDF Engine https://pdf.3bapi.com Renders a URL to a PDF and saves it to a Salesforce record.
AI proxy https://ai.3bapi.com Lets front-end apps call AI vendors without exposing the vendor API key.
Large Files Service https://files.3b4sf.com Reads and writes ContentVersion files too large for Apex.

Each service exposes GET /health for a basic availability check.

The sessionKey model

The PDF Engine and the Large Files Service never take Salesforce credentials from the caller. Instead the caller sends a 3B sessionKey, a time-limited key issued by the 3B managed package for the current org.

What a caller needs to know:

Calling a service with a sessionKey

  1. Your front end (or 3B app) calls the PDF Engine or Large Files Service and includes the sessionKey.
  2. The service obtains Salesforce access for that org from the Authorization Server.
  3. The service performs the requested work against the org's REST API and returns its result to you.
Browser / 3B app --sessionKey--> PDF Engine or Large Files Service
                                        |
                                        v
                             Authorization Server (onboarded org)
                                        |
                                        v
                             Salesforce REST API

Actions the services take in the org run with the permissions of the integration user who approved access during onboarding.

Why the services are split out

Constraint in Apex Service that solves it
Apex cannot run a browser to render a page to PDF PDF Engine
Front-end code would have to hold an AI vendor API key AI proxy
Apex heap and string limits cap file bodies at roughly 2 to 3 MB Large Files Service
External callers should not hold a Salesforce OAuth secret Authorization Server