File, HTTP API, Webhook & Public Catalog
Connect Supero to flat files on S3/SFTP/a URL, poll any REST API, receive verified inbound webhooks, or one-click add a curated public API — the connector plugins that move data over plain HTTP or object storage instead of a database driver.
Overview
| Connector | Moves data | Modes | Good for |
|---|---|---|---|
| File (csv_file) | Pulls from S3, SFTP, or a URL on a manual or cron trigger | sync | Periodic exports, data-lake dumps, nightly reports |
| HTTP API (http_api) | Polls a REST endpoint on a trigger, or reads it live per request | sync; live_read (no live_readwrite) | Any REST API whose schema you do not control |
| Webhook (webhook) | Receives inbound pushes — the external system POSTs to you | sync (event-driven) | Real-time integrations: payments, CI, commerce platforms |
| Public Catalog | Polls a pre-configured public REST API on a trigger | sync by default; live_read available like any http_api connector | Zero-setup prototyping and demo data |
curl https://api.supero.dev/api/v1/connectors/catalog \
-H "Authorization: Bearer $ACCESS_TOKEN"See Connectors Overview for the shared model
File Import Connector (csv_file)
| source_type | Required config | Notes |
|---|---|---|
| s3 | s3_bucket, plus aws_access_key_id and aws_secret_access_key (or an attached role); s3_region defaults to us-east-1 | file_path is a key or glob, e.g. exports/orders/*.csv |
| sftp | sftp_host, sftp_username, and either sftp_password or sftp_private_key; sftp_port defaults to 22; optional sftp_known_hosts | file_path may include a directory, e.g. /uploads/*.xlsx |
| url | url; optional auth via url_bearer_token, or url_api_key plus url_api_key_header, or a raw url_headers map | A direct HTTPS download — no bucket or host config needed |
| file_format | Format-specific config |
|---|---|
| csv / tsv | csv_delimiter (default "," or tab for tsv), csv_has_header, csv_encoding (default utf-8), csv_skip_rows, csv_quote_char |
| json | json_records_path — a JSONPath to the array of records inside the file, for exports that nest results under a key |
| jsonl | Each line is parsed as one record; no extra config needed |
| parquet | Column names and types are read from the file itself; no extra config needed |
| excel | excel_sheet — the sheet name to read; defaults to the first sheet |
Google Cloud Storage is not supported
Do not paste an s3:// URI into file_path
Some file options are worker-side only
{
"name": "nightly-orders-export",
"source": {
"plugin": "csv_file",
"config": {
"source_type": "s3",
"s3_bucket": "acme-exports",
"s3_region": "us-east-1",
"aws_access_key_id": "AKIA...",
"aws_secret_access_key": "REDACTED",
"file_path": "orders/*.csv",
"file_format": "csv",
"csv_delimiter": ",",
"csv_has_header": true
}
},
"target": {
"tables": [
{ "source": "_default", "schema": "order", "operation": "upsert", "batch_size": 200, "on_error": "skip", "enabled": true }
]
},
"trigger": { "type": "schedule", "cron": "0 3 * * *", "timezone": "UTC", "allow_manual": true }
}HTTP API Connector (http_api)
Authentication
| auth.type | Config | Sent as |
|---|---|---|
| none | { "type": "none" } — or omit auth entirely | (no credential) |
| api_key | { "type": "api_key", "api_key": "...", "header_name": "X-API-Key", "api_key_location": "header" } | A header named by header_name, or a query parameter named by api_key_param when api_key_location is "query" |
| bearer | { "type": "bearer", "token": "..." } | Authorization: Bearer <token> |
| basic | { "type": "basic", "username": "...", "password": "..." } | Authorization: Basic <base64> |
| oauth2 | { "type": "oauth2", "token_url": "...", "client_id": "...", "client_secret": "...", "scope": "..." } | A client-credentials token fetch, cached and refreshed automatically before it expires |
| oauth2_authorization_code | { "type": "oauth2_authorization_code", "auth_url": "...", "token_url": "...", "client_id": "...", "client_secret": "...", "scope": "...", "provider": "..." } | A full three-legged authorization-code flow with a signed-state CSRF guard. You authorize once after creating the connector — see the OAuth section below |
The api_key fields are flat, not nested
Send url, not base_url and endpoint
Three-legged OAuth (oauth2_authorization_code)
| Action | Method and path |
|---|---|
| Start the flow (redirects to the provider) | GET /api/v1/connectors/{connector_id}/oauth/authorize |
| The redirect target the provider sends the user back to | GET /api/v1/connectors/oauth/callback |
| Refresh the stored token | POST /api/v1/connectors/{connector_id}/oauth/refresh |
| Check the current authorization state | GET /api/v1/connectors/{connector_id}/oauth/status |
Pagination
| pagination.pagination_type | Key fields | Use for |
|---|---|---|
| none | (default) | A single response containing all records |
| offset | limit, limit_param, offset_param, offset_start, max_pages | ?limit=100&offset=200-style APIs |
| page | limit, limit_param, page_param, page_start, max_pages | ?page=2&per_page=100-style APIs |
| cursor | cursor_param, cursor_initial, plus response.next_cursor_path | Opaque cursor- or token-based APIs |
| link_header | max_pages | APIs that return a standard HTTP Link: <url>; rel="next" header |
Response mapping
| response field | Purpose |
|---|---|
| data_path | JSONPath to the records array in the response body (e.g. "data.users"); leave unset for a root-level array |
| total_path | JSONPath to a total-count field, if the API reports one |
| next_cursor_path | Where to read the next cursor value, for cursor pagination |
| next_url_path | Where to read a full next-page URL |
| has_more_path | A boolean field telling the connector whether more pages remain |
Rate limiting & retries
| Setting | Default | Purpose |
|---|---|---|
| rate_limit.requests_per_second | 10 | Client-side throttle applied before each outbound request |
| rate_limit.retry_after_header | Retry-After | Response header honored when the source returns a 429 |
| retry.max_attempts | 3 | Attempts before a single request gives up |
| retry.initial_delay_seconds / max_delay_seconds | 1.0 / 60.0 | Exponential-backoff bounds between retries |
| retry.retry_on_status | 429, 500, 502, 503, 504 | Status codes that trigger a retry instead of an immediate failure |
{
"name": "billing-invoices-sync",
"source": {
"plugin": "http_api",
"config": {
"url": "https://billing.example.com/v1/invoices",
"method": "GET",
"auth": { "type": "bearer", "token": "YOUR_TOKEN" },
"pagination": { "pagination_type": "offset", "limit": 100, "offset_param": "offset" },
"response": { "data_path": "data", "total_path": "meta.total" },
"rate_limit": { "requests_per_second": 5 }
}
},
"target": {
"tables": [
{ "source": "_default", "schema": "invoice", "operation": "upsert", "batch_size": 100, "on_error": "skip", "enabled": true }
]
},
"trigger": { "type": "schedule", "cron": "*/15 * * * *", "allow_manual": true }
}Live Reads Over REST
{
"target": {
"tables": [
{
"source": "_default",
"schema": "invoice",
"mode": "live_read",
"live": {
"field_map": { "id": "id", "amount": "amount", "status": "status" },
"primary_key": ["id"],
"tenant_binding": { "mode": "fixed", "tenant": "northwind" }
}
}
]
}
}| What applies | Detail |
|---|---|
| Modes | live_read only. live_readwrite is rejected at save time for http_api, because there is no generic write-back for an arbitrary REST endpoint. |
| Writes | Every create, update, and delete against a live_read table returns 403. |
| Tenant scoping | The same tenant_binding rules apply as for a SQL live table — fixed, or column with a tenant_value_map, and on_unmapped_tenant defaulting to deny. |
| Field guarding | Every field named in a filter, sort, or projection is checked against the discovered field list, and hidden_fields are blocked as query inputs, not just stripped from responses. |
| Outbound target vetting | Each live REST read is re-checked against the same host guard as a connection test: a URL that resolves to a private, loopback, link-local, or cloud-metadata address is refused. |
| Response stamp | Reads come back with access_mode "live-ro". Use that stamp, not the row count, to confirm the read reached your endpoint. |
A live REST table still needs a binding
Webhook Connector (webhook)
POST https://api.supero.dev/api/v1/webhooks/{domain_id}/{connector_id}Get the webhook URL from support before wiring a provider to it
| auth_type | Credential field | Behavior |
|---|---|---|
| signature_hmac | hmac_secret (plus hmac_header, hmac_algorithm, hmac_prefix) | The default. Recomputes an HMAC over the raw request body and compares it to the value in the signature header |
| secret_header | secret_header_value (plus secret_header_name, default X-Webhook-Secret) | Rejects any request missing a matching shared-secret header |
| basic_auth | basic_username + basic_password | Standard HTTP Basic on the inbound request |
| none | (no credential) | Any request reaching the URL is accepted — only use this behind your own network access control |
| Provider | hmac_header | Signature format |
|---|---|---|
| Stripe | Stripe-Signature | t=<timestamp>,v1=<hex hmac> |
| GitHub | X-Hub-Signature-256 | sha256=<hex hmac> |
| Shopify | X-Shopify-Hmac-SHA256 | base64-encoded hmac |
| Slack | X-Slack-Signature | v0=<hex hmac> |
| Generic | X-Webhook-Signature, or any header you name | Plain HMAC-SHA256 over the raw body |
| Field | Purpose |
|---|---|
| payload_type | How the inbound body is parsed: "json" (default), "form", or "raw" |
| wrap_single_record | Wrap a single-object payload as a one-record batch — true is the common case |
| include_metadata | Attach delivery metadata (headers, received time) alongside the parsed payload |
| data_path | JSONPath into the payload for the actual record — e.g. "data.object" for Stripe events |
| event_type_header | Header or payload field to read the event type from, used to filter with trigger.webhook_events |
| allowed_event_types | An allow-list applied at the source config, alongside the trigger-level trigger.webhook_events list |
| allowed_ips | An optional inbound IP allow-list. This is the right mitigation when you cannot rely on a signature. |
| response_mode | "async" (acknowledge immediately, process in the background) or "sync" (process before responding) |
{
"name": "stripe-payment-events",
"source": {
"plugin": "webhook",
"config": {
"auth_type": "signature_hmac",
"hmac_secret": "REDACTED",
"hmac_header": "Stripe-Signature",
"hmac_algorithm": "sha256",
"payload_type": "json",
"data_path": "data.object",
"event_type_header": "type",
"response_mode": "async"
}
},
"target": {
"tables": [
{ "source": "_default", "schema": "payment_event", "operation": "insert", "batch_size": 50, "on_error": "skip", "enabled": true }
]
},
"trigger": {
"type": "webhook",
"webhook_secret": "REDACTED",
"webhook_events": ["payment_intent.succeeded", "charge.refunded"]
}
}Keep the signing secret out of the payload
Public Catalog: One-Click Public APIs
curl "https://api.supero.dev/api/v1/connectors/catalog?category=Government%20%26%20Open%20Data" \
-H "Authorization: Bearer $ACCESS_TOKEN"| Auth mode | What it means |
|---|---|
| none | No key required — the connector works immediately |
| byo | "Bring your own" — you supply a key in a setup field the catalog entry tells you about |
| Catalog entry | Category | Auth | What you get |
|---|---|---|---|
| CoinGecko — Crypto Markets | Crypto | none | Live prices, market cap, and volume for top cryptocurrencies |
| CoinCap — Assets | Crypto | none | Real-time crypto asset prices, supply, and market data |
| Alpha Vantage — Stocks & FX | Finance & Markets | byo | Stock, forex, and crypto time series and quotes |
| Precious Metals — Gold & Silver | Finance & Markets | byo | Spot prices for gold, silver, platinum, and other metals |
| Hacker News | News | none | Front-page stories and full-text search |
| NewsAPI — Headlines | News | byo | Breaking headlines and articles from thousands of sources |
| Remotive — Remote Jobs | Jobs | none | Open remote-job listings across software, design, and marketing |
| Arbeitnow — Job Board | Jobs | none | European and remote job postings |
| USGS — Earthquakes | Government & Open Data | none | Recent earthquakes worldwide |
| Public Holidays | Government & Open Data | none | Official public holidays for any country and year |
| OpenFDA — Drug Events | Government & Open Data | none | Adverse-event and drug label data from the FDA |
| Global Health Stats | Health & Science | none | Per-country health and disease statistics |
| OpenStreetMap — Place Search | Maps & Places | none | Geocode place names to coordinates and addresses |
| Open-Meteo — Geocoding | Maps & Places | none | Search cities and get coordinates, country, and population |
| Countries of the World | Reference | none | Country names, capitals, regions, population, currencies, and flags |
| Wikipedia Search | Reference | none | Full-text search across Wikipedia articles |
| TMDB — Popular Movies | Entertainment | byo | Popular and trending movies with ratings and metadata |
| Demo Products | Commerce & Demo | none | A realistic sample product catalog for prototyping |
Entity-Like vs. Event-Like Data
| operation | Behavior | Best for |
|---|---|---|
| upsert (default) | Matches an incoming record against an existing one by the schema’s derived name field and updates it in place, or creates it if none exists | Entity-like sources with a stable business key that repeats between syncs — customers, products, accounts |
| insert | Always creates a new record, even if one with the same derived name already exists | Event-like, append-only sources with no meaningful "current state" per key — webhook deliveries, page views, sensor readings, log lines |
| update | Updates an existing record and skips (does not create) any incoming record that does not already exist | Reconciling denormalized state you know was seeded elsewhere |
| target.tables[] field | Default | Purpose |
|---|---|---|
| schema | (required) | The Supero schema/type the records are written to |
| source | "_default" | Which upstream stream this entry maps — always "_default" for the single-stream file/HTTP/webhook plugins |
| operation | "upsert" | "upsert", "insert", or "update" — see above |
| batch_size | 100 | Records written per batch |
| on_error | "skip" | "skip" a bad record and continue, or "fail" the whole run |
| enabled | true | Set false to pause syncing this table without deleting the mapping |
Triggering, Scheduling & Discovery
| trigger.type | Fires when | Key fields |
|---|---|---|
| manual | You call the run endpoint | allow_manual (default true) |
| schedule | A cron expression fires | cron (5-part cron string), timezone (default UTC), reconcile_cron (optional) |
| webhook | An external system posts to the connector’s webhook URL | webhook_secret, webhook_events (optional allow-list) |
Confirm a scheduled run actually happened
curl -X POST https://api.supero.dev/api/v1/connectors/{connector_id}/run \
-H "Authorization: Bearer $ACCESS_TOKEN"
curl https://api.supero.dev/api/v1/connectors/{connector_id}/status \
-H "Authorization: Bearer $ACCESS_TOKEN"curl -X POST https://api.supero.dev/api/v1/connectors/test-config \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "source": { "plugin": "http_api", "config": { "url": "https://api.example.com/data" } } }'| Action | Endpoint |
|---|---|
| Trigger a manual run | POST /api/v1/connectors/{connector_id}/run |
| Cancel a running execution | POST /api/v1/connectors/{connector_id}/runs/{execution_id}/cancel — best-effort; a cancel can report that a running execution is not cancellable, in which case let it finish or time out |
| Get connector status and recent executions | GET /api/v1/connectors/{connector_id}/status |
| Re-test a saved connector | POST /api/v1/connectors/{connector_id}/test |
| Start schema discovery | POST /api/v1/connectors/{connector_id}/discover |
| Get discovery status | GET /api/v1/connectors/{connector_id}/discover/{execution_id} |
| Get discovery results (inferred schemas) | GET /api/v1/connectors/{connector_id}/discover/{execution_id}/results |
| Update a connector | PUT /api/v1/connectors/{connector_id} — the only update verb; PATCH returns 405 |
| List source plugins | GET /api/v1/connector-plugins — note that it currently returns only http_api, csv_file, and webhook |
import supero
org = supero.connect(domain_name="acme-corp", api_key="ak_...")
invoices = org.crud.list("invoice", limit=20)
recent = org.crud.query("payment_event").filter(type="charge.refunded").order_by("-created_at").all()Next Steps
- Connectors Overview — the supported-sources matrix, the console walkthrough, and the full control-plane API
- Database Connectors — PostgreSQL, Supabase, MySQL, SQL Server, Oracle, and MongoDB sources
- Warehouse Connectors — Snowflake, Databricks, ClickHouse, BigQuery, Redshift, and Microsoft Fabric, live-read only
- Live Data, Read-Only & Security — the security model behind live reads, including live reads over REST
- Webhooks & Event Streaming — inbound callbacks from managed integrations, and which of them verify a signature
On this page