Gluesync Module · REST API integration

Courier

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.

Courier
Courier / Outbound endpoints / Fernhill CRM
Upsert customerFernhill CRM
PUT/customers/{customerId}
Base URL
https://api.fernhill-crm.example/v2
Auth
Bearer ••••••••••••3f9a
BindingTypeInSample values
customerId*stringpathC-20418
notifybooleanqueryfalse
email*stringbodyr.okafor@larchmont.example
loyaltyTierstringbodygold
lifetimeValuenumberbody18420.75
marketingOptInbooleanbodytrue
  1. 01 Design and test any REST call
  2. 02 Stream every change to an HTTP endpoint
  3. 03 Serve REST endpoints and stored procedures

Why Courier

Every API your data touches, in one place

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.

02 / Two tools

Tested in one tool, run in another

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

One definition, every direction

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 once, test, then connect

  1. 01

    Define

    A collection per API

    Create a collection with a base URL and authentication. Add endpoints with a path template, headers and typed bindings that fill {name} placeholders.

  2. 02

    Test

    See the exact request, then send it

    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”.

  3. 03

    Connect

    Stream it or serve it

    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

Outbound, streaming and inbound: one HTTP layer for your data

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

A REST client in the Control Plane

Collections, typed bindings and one-click tests

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.

  • Collections per API: base URL plus None, Basic, Bearer or API-key auth (header or query string)
  • GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS, with JSON or form-urlencoded bodies
  • Typed string, number and boolean bindings in path, query, header or body, with defaults and required flags
  • “Send test request” on saved or unsaved definitions, with status, headers, response body, duration and “Saved test history”
  • Export endpoint definitions as a JSON file and load them back with “Import endpoints file”
  • Outbound calls never follow redirects and refuse loopback, link-local and Core Hub addresses by default, so a credential cannot reach a host nobody configured
Courier
Courier / Outbound endpoints / Fernhill CRM / Upsert customer
Upsert customerFernhill CRMApplied in crm-sync
PUT/customers/{customerId}
Base URL
https://api.fernhill-crm.example/v2
Auth
Bearer ••••••••••••3f9a
BindingTypeInReq.Default
customerIdstringpath—
notifybooleanqueryfalse
emailstringbody—
loyaltyTierstringbodystandard
lifetimeValuenumberbody0
marketingOptInbooleanbodyfalse

Pipeline delivery

Every change becomes an HTTP call

The HTTP Target turns a Courier endpoint into a pipeline target

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.

  • Inserts, updates and deletes from any source agent are each sent to the endpoint you mapped, with the operation in the payload
  • “Map to pipeline”: the collection is the target schema, the endpoint is the target table, and source columns map to bindings
  • Binary values sent as Base64, arrays as JSON arrays, decimals in plain notation
  • A non-2xx response or 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 (transaction id plus row index, identical on replay) so receivers can de-duplicate, and a DELETE answered 404 or 410 counts as delivered
  • Endpoint edits reach running HTTP Targets live, with no restart
Courier
Pipelines / crm-sync / public.customers / Mapping

crm-sync

Entity public.customers · Running
PostgreSQLpg-salesPostgreSQLHTTP Targetyour network
Map to pipelinesource columns to endpoint bindings
Source columnTypeBindingIn
idvarchar(12){customerId}path
emailvarchar(120){email}body
tiervarchar(16){loyaltyTier}body
ltvnumeric(12,2){lifetimeValue}body
opt_inboolean{marketingOptIn}body
Inserts1,284
Updates9,617
Deletes42
Errors0

Calls leave from your network

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

REST endpoints over your tables

Publish, secure and try generated endpoints without writing a service

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.

  • List with filters and paging, read by key, create, update and delete on a table Gluesync already manages
  • Per-column controls: alias, insertable, updatable, filterable
  • Pipeline endpoints: the HTTP Source writes each authenticated request to disk before the 202 answer and delivers it at least once and in order per endpoint to any target, over HTTPS with your keystore
  • Personal API Tokens with the “HTTPS agent” permission, optionally restricted to specific agents, with one-time reveal and expiry
  • A token allowlist and blocklist on every collection: with the allowlist on only listed tokens get in, and a blocked token never does
  • Writes without bindings land in the source database, so CDC picks them up and your pipelines carry them onward
Courier
Courier / Inbound endpoints / Order lookup
Access tokens“HTTPS agent” permission
NamePermissionAgentsExpires
Support portalHTTPS agentpg-sales2027-01-31
Finance reportsHTTPS agentpg-sales2026-12-31
GET/api-inbound/orders-api/orders?status=OPEN&_limit=50&_offset=0
curl -s "https://corehub.northbay.example/api-inbound/orders-api/orders?status=OPEN&_limit=50&_offset=0" \
  -H "Authorization: Bearer gsp_••••••••"
200 OK38 ms3 rows
orderIdcustomerIdstatustotal
100482C-20418OPEN1249.00
100479C-20391OPEN318.60
100471C-20107OPEN87.15

Stored procedures

Call your stored procedures over REST

Publish a stored procedure or a function as an endpoint: your logic stays in the database

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.

  • Stored procedures and functions on PostgreSQL, YugabyteDB, MySQL, MariaDB, SQL Server, Oracle and Db2 LUW, with parameters, modes and types read from the catalog
  • The answer holds every result set, the OUT and INOUT values and a function's return value, or only one output, the rows, or a document the routine builds
  • JSON or XML, whatever the routine returns: a JSON document is answered as XML and the other way round, numbers keep the database's digits, and SQL Server's FOR JSON and FOR XML rows are joined first
  • A call that may write runs in one transaction, committed when the routine succeeds and rolled back when it fails or runs out of time
  • Called with POST; a routine declared read-only also answers GET and runs in a transaction rolled back at the end, so nothing it writes is kept
  • The routine's own errors answer 422 with its message, a constraint violation 409 and a value that does not fit its SQL type 400
  • A timeout per endpoint, honoured by Core Hub and the HTTP Source alike: a call that runs out answers 504 and is rolled back
Courier
Courier / Procedures / Order lookup
public.place_orderstored procedure

Answer in JSON · EverythingOne transactionTimeout 30 s

POST/api-inbound/orders-api/orders/C-20418/place
curl -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}'
200 OK46 mscommitted · one transaction
{
  "outputs": { "o_order_id": 100483, "o_status": "OPEN" },
  "resultSets": [[
    { "sku": "LT-204", "qty": 2, "price": 12.50 }
  ]]
}

FAQ

Frequently asked questions

What is Courier in Gluesync?

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.

How do database changes reach a REST API?

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.

What happens when an endpoint returns an error?

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.

Which authentication methods does Courier support for remote APIs?

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.

How does Courier protect outbound calls?

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.

How are inbound endpoints secured?

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.

Can a pipeline take REST requests as its source?

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.

Can Courier invoke stored procedures?

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.

Which databases can Courier call stored procedures on?

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.

What happens when a stored procedure fails or writes half its work?

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.

Which databases can inbound endpoints serve?

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.

Resources

Guides, roadmap and support

Roadmap

Public Roadmap

What we're building next. Submit feature requests.

View roadmap ↗
Support

Support

Access technical support and operational assistance.

Get support →
Status

Service Status

Real-time platform availability and incident history.

Check status ↗

Call it. Stream it. Serve it.

Request a free trial or talk with the MOLO17 team about connecting your pipelines to the REST APIs around them.