x-api-key authenticates everything RWS Connect does.
When to use
- The system holds its data in a database but exposes no API
- You have (or can create) a read-only user or a read replica
- You need the current state of the data — monitoring, audits, real-time checks
- The data you need is the result of a SQL query, possibly across several tables
Supported databases
The engine is detected from thex_jdbc_url prefix:
What you provide
Email connect@rwsintegration.com once to store the credential and enable the key. From then on, every database and every query is configured by you, per integration.
The examples use a fictional data warehouse at
sql.example.com, database erp_dw. Replace the addresses, query and credential names with your system’s.
The Connection
You only do this once. The same Connection serves every Live JDBC integration — which database and which query to run are chosen later, per integration.If you already use RWS Connect Live for SOAP, it’s the same key — only the base path differs.
The Extract configuration
Everything about the query travels as query parameters, so it all lives in one place: your integration’s extract configuration, with MethodGET and Path /.
The
x_jdbc_url is a standard JDBC URL with the usual connection properties (encrypt, sslMode and so on). Two rules: it must never carry credentials — a URL with a user or password in it is refused — and driver properties that could make the driver load code or read files are refused as well.
The x_sql is your SQL, with {slots} where values change per run:
Each
{slot} is sent to the database as a bound parameter — the value is never pasted into the SQL text, so there is no injection surface. A slot stands for exactly one value: it can’t be a column name or an IN list, and it must not be written inside quotes (= {start_date}, never = '{start_date}'). Values travel as text, so add an explicit CAST({slot} AS ...) where your engine doesn’t convert on its own.{{ today.subtract(30.day).format(YYYY-MM-DD) }} work here like anywhere else. Any query param that doesn’t start with x_ fills the slot of the same name; an x_ parameter the service doesn’t know is refused with a clear 400, so a typo never becomes a silent slot value.
Finally, set the Datapoint Path in Response to items.
Pagination
An unpaged call answers up to 5,000 rows; beyond that it fails withresult_too_large and you paginate. Three modes are supported — lastId is not:
For the cursor mode — the most robust for large results — configure:
And add two static query params next to the extract ones:
Unique keys
Every paginated call needsx_unique_keys: 1 to 8 output column names of your query, comma-separated. They become the sort order of the pages, and the cursor resumes strictly after the last row of the previous page.
How paginated queries run
A paginated call wraps your query as a derived table —SELECT * FROM ( your query ) ORDER BY your keys plus the engine’s own limit syntax. Practical consequences:
- The query must be valid as a derived table on your engine. On SQL Server that means no
ORDER BYof its own and no leadingWITH; every column must have a unique name (alias computed columns). - A trailing
;is removed automatically. - Each page re-runs the query. Every call has a query timeout of 20 seconds — a query too slow for one page is too slow for every page, so pagination doesn’t rescue a slow query. Time your query first; if it can’t answer a page in time, RWS Connect tables are the right tool.
- If a page is too large to answer (
page_too_large), lowerx_page_sizeor select fewer columns.
The response
- Column labels arrive in
snake_case(OrderDate→order_date). Prefer the labels exactly as your database returns them? Addx_raw_column_names=true. - Two different labels that would land on the same key fail with
response_key_collision— alias one of them in the SQL. - Every value is a string or
null: numbers in plain decimal, booleans astrue/false, dates asyyyy-MM-dd, times asHH:mm:ss, timestamps asyyyy-MM-ddTHH:mm:ss(your database’s wall-clock value), binary as base64. next_cursorcomes backnullon the last page.
Try it on a real public database
Three worked tutorials run this whole flow against officially public databases with published credentials — the same calls RWS QA runs against the live service, so every row count is reproducible:PostgreSQL
RNAcentral (EMBL-EBI): 12,000 rows cursor-paged
MySQL
Rfam and Ensembl: counts, paging, timestamps
MariaDB
UCSC Genome Browser — and the
sslMode=disable gotchaORDER BY, no leading WITH, uniquely named columns) and has no public playground — use your own instance. A MariaDB-driver server without TLS needs sslMode=disable in the URL, as the MariaDB tutorial shows.
Calling it directly
The same endpoint serves scripts and tests outside the platform. A one-line smoke test:GET request line holds about 10 KB, and x_sql travels URL-encoded inside it. A query too long for the URL can travel as a JSON body of the same GET instead — { "x_sql": "..." }, with every other parameter staying in the query string. Platform extracts always send x_sql in the query string, so this is for direct callers only.
When something goes wrong
Live JDBC fails loudly and tells you why. Theerror.type in the body says what to fix:
Next steps
Guide: RWS Connect Live
The Live model, step by step
SOAP APIs (Live)
The same model for legacy SOAP systems
Dynamic Parameters
Date windows like “the last 30 days”
VPN connectivity
Reach databases that aren’t on the public internet