Integration
OpenAPI
Connect to any API with an OpenAPI/Swagger specification
- Category
- APIs
- Runs in
- The Phloem cloud — nothing to install
Connects any HTTP API with an OpenAPI specification, so Hamming can query its endpoints as tables with SQL.
What Phloem reads
- The specification — from a URL or pasted in, JSON or YAML (OpenAPI 3.x)
- List endpoints as tables — every
GETendpoint without path parameters, with the fields its response schema describes - Live responses — each query calls the endpoints it names and follows the API's pagination
Phloem only sends GET requests.
What you need
- The API's OpenAPI spec URL, or the spec itself.
- The base URL for requests, reachable from Phloem's cloud.
- A credential, if the API needs one: an API key, a bearer token, or a username and password.
Connect
- In the console, open Connectors, choose Add connector, then OpenAPI.
- Enter OpenAPI Spec URL, or paste the spec into Or Paste Spec Content.
- Enter Base URL and choose an Authentication Method:
- API Key — API Key / Token, plus API Key Header Name (default
Authorization) and API Key Prefix (defaultBearer; empty for none) - Bearer Token — API Key / Token
- Basic Auth — Username and Password
- No Authentication
- API Key — API Key / Token, plus API Key Header Name (default
- Optional: a Test Endpoint (e.g.
/health) for the connection test. Without one, the test calls the spec's first list endpoint. - Test the connection, then save.
What Hamming can do
- Query — SQL over the endpoints, one table each: join, filter and aggregate across them
- Sample — a few records from an endpoint
Notes
- A query reads at most 1,000 records from each endpoint.
- Nested objects in a response become columns.
- Endpoints that need a path parameter (
/users/{id}) or use a method other thanGETare not offered as tables.
#Connection fields
What the Add connector form asks for.
| Field | Type | Required |
|---|---|---|
| OpenAPI Spec URL URL to OpenAPI 3.x JSON/YAML spec https://api.example.com/openapi.json | Text | — |
| Or Paste Spec Content Alternative to URL - paste spec directly Paste OpenAPI JSON or YAML here... | Text | — |
| Base URL Base URL for API requests https://api.example.com | Text | Yes |
| Authentication Method How to authenticate with the API | One of API Key · Bearer Token · Basic Auth · No Authentication | Yes |
| API Key / Token API key or bearer token for authentication | Secret | — |
| Username Username for basic authentication Username | Text | — |
| Password Password for basic authentication | Secret | — |
| API Key Header Name Header name for API key (default: Authorization) | Text | — |
| API Key Prefix Prefix before key (e.g., 'Bearer', 'Api-Key', leave empty for none) | Text | — |
| Test Endpoint Endpoint to test connection (optional) /health or /api/status | Text | — |
Updated