Skip to main content
A connector app sends provider requests through a receiver: a subtree of targets, one per operation, over one external endpoint. You bind it with the app’s binder and place it in your tree; its path names it. The receiver’s contract fixes the protocol, the request shapes and how a task’s result is decided.

Set a credential

A credential is a secret() declared in your tree and passed to the binder. Setting it seals its value: only the performer opens it, and no read returns it. Set it as an operator with bijection secret set and its tree path, with the value on standard input:
bijection/app.ts
Changing a secret changes later requests only. The app’s source functions own status, pause, resume and reset; use them to change acquisition or discard a position.

Authentication kinds

A binder’s auth is one of the receiver auth kinds: none, bearer, header (a name and optional prefix, such as Authorization with Basic ), multiSecret (two to eight header, query or jsonBody bindings, each its own secret()), oauth2, oauth1, awsSigV4 and windowsNtlm; socket and database protocols also take password, sasl and clientCertificate. For HTTP Basic, use header auth with prefix: "Basic " and set the secret to the Base64 encoding of user:password. The host adds each value immediately before dispatch; keep credentials out of profiles and arguments.

Declare a receiver

To call an API from your own functions, declare a receiver from @bijectionhq/bijection and submit its operations:
bijection/crm.ts
A send leaves null fields out of its JSON body; nulls: "keep" on the operation sends them. receiver({ sign: secret }) signs each send as a Standard Webhooks request. An operation with capture: receiver performs an OAuth token exchange whose access token the host keeps as a bearer only that receiver presents. label bounds what a send may carry. The result sits at the join of the sender’s commit label and the receiver’s label. For a request-time URL, use openEndpoint from @bijectionhq/library-sources to declare the HTTPS host and port policy.