01 / Glue code
Every API gets its own script
Each partner or SaaS API ends up with a custom service that polls tables, formats payloads and retries failed calls. Every one of them is code your team owns and credentials it has to protect.
Gluesync Module · REST API integration
The HTTP client built into Gluesync for REST API integration. Call any REST API, stream every captured change to an HTTP endpoint, publish REST endpoints over your tables, take inbound REST requests as a pipeline source, and invoke stored procedures in your databases, all from the Control Plane.
/customers/{customerId}| Binding | Type | In | Sample values |
|---|---|---|---|
customerId* | string | path | C-20418 |
notify | boolean | query | false |
email* | string | body | r.okafor@larchmont.example |
loyaltyTier | string | body | gold |
lifetimeValue | number | body | 18420.75 |
marketingOptIn | boolean | body | true |
Why Courier
01 / Glue code
Each partner or SaaS API ends up with a custom service that polls tables, formats payloads and retries failed calls. Every one of them is code your team owns and credentials it has to protect.
02 / Two tools
Engineers build the request in a desktop API client, then rewrite it by hand for production. The tested request and the running request drift apart, and API secrets end up in personal workspaces.
03 / The platform outcome
Courier keeps endpoint definitions in Core Hub, next to your pipelines. Call an API on demand, let every captured change call it, publish your tables as REST endpoints, turn inbound requests into pipeline rows, or invoke a stored procedure, all governed like the rest of the Control Plane.
How it works
Define
Create a collection with a base URL and authentication. Add endpoints with a path template, headers and typed bindings that fill {name} placeholders.
Test
The request updates as you edit. Click “Send test request” to see the status code, response headers, body and duration. Every run lands in “Saved test history”.
Connect
Use “Map to pipeline” so every captured change calls the endpoint. Or publish inbound endpoints, over a table, a stored procedure or as pipeline rows, and hand the consuming team an access token.
Capabilities
Courier sits in the Conductor menu next to Query Studio, and every collection and endpoint is stored in Core Hub. The HTTP Target delivers pipeline rows to your REST endpoints, Core Hub serves inbound endpoints over your tables and stored procedures, and the HTTP Source serves pipeline endpoints. All of them run in your own network.
Outbound endpoints
Model each external API once. A collection holds the base URL and authentication, and each endpoint adds a path template, headers and bindings. Secrets are encrypted at rest in Core Hub, masked in every API response and redacted in test history, together with errors and cookies.
/customers/{customerId}| Binding | Type | In | Req. | Default |
|---|---|---|---|---|
customerId | string | path | — | |
notify | boolean | query | false | |
email | string | body | — | |
loyaltyTier | string | body | standard | |
lifetimeValue | number | body | 0 | |
marketingOptIn | boolean | body | false |
Pipeline delivery
Map a Courier endpoint to a pipeline and the HTTP Target delivers to it like any other target. Each insert, update and delete captured from the source becomes an HTTP call built from the same definition you tested.
public.customers · Running| Source column | Type | Binding | In | |
|---|---|---|---|---|
id | varchar(12) | {customerId} | path | |
email | varchar(120) | {email} | body | |
tier | varchar(16) | {loyaltyTier} | body | |
ltv | numeric(12,2) | {lifetimeValue} | body | |
opt_in | boolean | {marketingOptIn} | body |
The HTTP Target runs where you deploy it, so outbound calls start inside your own network. Delivery metrics appear in the Control Plane like those of any other target.
Inbound endpoints
Publish REST endpoints at /api-inbound/{basePath}/{path}. Reads, and writes without bindings, map to a table on an agent Gluesync already manages: Core Hub runs parameterized SQL on the same execution path as Query Studio. A write with typed bindings becomes a pipeline endpoint, served by the HTTP Source, which turns each authenticated request into a row of your pipeline. “Copy curl command” and “Try it” sit next to every endpoint.
| Name | Permission | Agents | Expires |
|---|---|---|---|
| Support portal | HTTPS agent | pg-sales | 2027-01-31 |
| Finance reports | HTTPS agent | pg-sales | 2026-12-31 |
/api-inbound/orders-api/orders?status=OPEN&_limit=50&_offset=0curl -s "https://corehub.northbay.example/api-inbound/orders-api/orders?status=OPEN&_limit=50&_offset=0" \ -H "Authorization: Bearer gsp_••••••••"
| orderId | customerId | status | total |
|---|---|---|---|
100482 | C-20418 | OPEN | 1249.00 |
100479 | C-20391 | OPEN | 318.60 |
100471 | C-20107 | OPEN | 87.15 |
Stored procedures
In Courier's Procedures tab, pick an agent and a stored procedure or a function read off its catalog. Each IN and INOUT parameter reads its value from the path, the query string or the body, typed, and the answer carries the routine's result sets and outputs. Core Hub makes the call on the same execution path as Query Studio, the HTTP Source can serve it too, and callers use the same Personal API Tokens as every inbound endpoint.
public.place_orderstored procedureAnswer in JSON · EverythingOne transactionTimeout 30 s
/api-inbound/orders-api/orders/C-20418/placecurl -s -X POST "https://corehub.northbay.example/api-inbound/orders-api/orders/C-20418/place" \
-H "Authorization: Bearer gsp_••••••••" \
-H "Content-Type: application/json" \
-d '{"sku":"LT-204","qty":2}'
{
"outputs": { "o_order_id": 100483, "o_status": "OPEN" },
"resultSets": [[
{ "sku": "LT-204", "qty": 2, "price": 12.50 }
]]
}FAQ
Courier is the HTTP client built into Gluesync. It does five things from the Control Plane: it calls remote REST APIs you define and test, it streams every captured database change to an HTTP endpoint through a pipeline, it publishes REST endpoints over the tables Gluesync already manages, it turns inbound REST requests into pipeline rows through the HTTP Source, and it invokes stored procedures in your databases. Every definition is stored in Core Hub.
Through the HTTP Target, a Gluesync pipeline target. Use “Map to pipeline” to pick a Courier collection as the target schema and an endpoint as the target table, then bind source columns to the endpoint's bindings. Every insert, update and delete captured from the source becomes an HTTP call to that endpoint, with the operation in the payload.
A non-2xx response or a transport failure puts the entity in error, and Core Hub replays from the checkpoint, so no change is lost. Every row request carries an Idempotency-Key built from the transaction id and the row index, identical on replay, so receivers can de-duplicate a replayed change. A DELETE answered 404 or 410 counts as delivered. Delivery metrics and entity status appear in the Control Plane like those of any other target.
Each collection uses None, Basic, Bearer or API-key authentication, with the key sent in a header or the query string. Secrets are encrypted at rest in Core Hub, masked in every API response and redacted in “Saved test history”, where errors and cookies are redacted too.
Outbound calls never follow redirects, so a credential cannot travel to a host nobody configured. By default Courier resolves the host first and refuses loopback, unspecified, link-local (which includes the cloud metadata service) and multicast addresses, plus Core Hub's own listener, so a name that points at one is refused as well. Your private networks stay reachable because Gluesync runs on-premises. Error messages and test results never repeat a credential: URL userinfo, query values, cookies and authorization headers are replaced before anything is shown or stored.
Callers authenticate with a Personal API Token as a Bearer token. The token needs the “HTTPS agent” permission and can be restricted to specific agents. Each collection also has a token allowlist and blocklist: with the allowlist on, only the listed tokens can call it, and a blocked token never can. You create tokens in the “Access tokens” panel, see each one once, and set an expiry. SQL is always parameterized, identifiers are validated, and per-column controls set each column's alias and whether it is insertable, updatable or filterable.
Yes. The HTTP Source agent serves pipeline endpoints: a create, update or delete endpoint with typed bindings. Each authenticated request becomes one row of the pipeline and is on disk before Gluesync answers 202, then it is delivered at least once and in order per endpoint to any target. Callers use the same Personal API Tokens, and the HTTP Source listener serves HTTPS with your keystore.
Yes. In Courier's Procedures tab you publish a stored procedure or a function as an inbound endpoint: pick an agent and a routine read off its catalog, then bind each IN and INOUT parameter to a value from the path, the query string or the body. Core Hub calls the routine on the same execution path as Query Studio, and the HTTP Source can serve the endpoint too. The answer carries every result set, the OUT and INOUT values and a function's return value, as JSON or XML. Business logic that already lives in your database stays there, and callers use the same Personal API Tokens as every inbound endpoint.
PostgreSQL, YugabyteDB, MySQL, MariaDB, SQL Server, Oracle and Db2 LUW, through the agent Gluesync already runs on that database. The editor offers only the agents whose database supports procedure endpoints and reads each routine's parameters, modes and types from its catalog.
A call that may write runs in one transaction: it is committed when the routine succeeds and rolled back when the routine fails or runs out of time, so it never leaves half its work behind. An error the routine raises on purpose answers 422 with the routine's own message, a constraint violation 409 and a value that does not fit its parameter's SQL type 400. A routine declared read-only also answers GET and runs in a transaction rolled back at the end, and a routine that commits by itself can say so and run without one.
Any SQL-capable agent that Query Studio can query. Inbound read endpoints, and writes without bindings, run through Core Hub on the same execution path as Query Studio, and those writes land in the source database, where CDC picks them up for your pipelines. Writes with bindings go through the HTTP Source and reach any target of the pipeline.
Explore the platform
Courier connects Gluesync pipelines to the APIs around them. Explore the rest of the platform.
Real-time CDC replication: the change stream that drives every Courier delivery.
Explore Gluesync →75+ databases, streams and files that can feed an HTTP endpoint through Courier.
Explore Integrations →The SQL workbench whose execution path serves Courier inbound endpoints.
Explore Query Studio →Chronos schedules, webhooks and Core Hub events to automate the rest of the platform.
Explore Schedules and events →Resources
What we're building next. Submit feature requests.
View roadmap ↗Access technical support and operational assistance.
Get support →Real-time platform availability and incident history.
Check status ↗Request a free trial or talk with the MOLO17 team about connecting your pipelines to the REST APIs around them.