Skip to content

OpenAPI import

Each provisioned dataset exposes its own OpenAPI (Swagger) description. Lookup, extract, and proxy bridges may each use a different URL—import only the spec for the layer you are wiring. The same API key authenticates every import; you choose the service in the Swagger URL and in each Flow call.

IntegrationTypical Swagger URL
Lookup / extract (boundary service)https://apis.threelevers.com/gis/v1/swagger.php?service={YourServiceName}
Proxy (e.g. CensusGeocoder)https://apis.threelevers.com/gis/v1/proxy/swagger.php?service=CensusGeocoder

Replace {YourServiceName} with the exact name from Three Levers onboarding—not example names from demos unless that is your licensed service.

  • Salesforce setup completed through permission set assignment (Named Principal + custom setting API key).
  • Package Named Credential Three_Levers_API available in the import wizard.

Full step-by-step with screenshots: Salesforce setup — Steps 5–6.

Summary:

  1. SetupExternal ServicesNew External ServiceFrom API Specification.

Add External Service: From API Specification

  1. Provide Registration DetailsAbsolute URL, Three Levers API Named Credential, Swagger URL with your service name.

External Service registration: Named Credential and Swagger URL

  1. Select Operations — enable getLookup.

Select Operations: getLookup

  1. Save and wire the generated action in Flow (for example Get Lookup under External Services).

Imported specs declare header ApiKey. At runtime Salesforce sends the key from the External Credential Named Principal—you do not embed the key in the OpenAPI URL or Flow.

Create one External Service registration per service name (one Swagger import each). Reuse the same Named Credential and same API key for all imports—districts, routes, and proxy services can coexist on one key.

Example Flow action names when an org has two boundary layers (illustrative):

  • Acme_Districts.getLookup
  • Acme_Routes.getLookup
  • Generated types reflect that service’s schema—property names differ between layers.
  • Optional fields may appear with companion _set flags in Flow; map only the fields you use.
  • Success bodies may appear directly on the action output or under Code200—confirm responseCode 200 in Flow debug.

Flow debug: successful lookup (example layer)

Use caseConfiguration
Flow / Apex lookupExternal Service from swagger.php?service=...
Hosted map overlayComponent JSON service + serviceUrl; token via MapTokenServiceHosted map