Register a channel connector
Registers a channel you own so O.J. can reach your borrowers through it. Four types are supported.
webhook: O.J. POSTs each borrower-facing message to a URL on your server, signed like any webhook, and your product shows it in its own inbox or chat. This is the simplest type.sms: your Twilio (or compatible) account. O.J. sends texts from your number.apple_business_messages: your Apple Business Messages account. O.J. replies in iMessage as you.email: your sending domain. O.J. emails from an address you choose.
Credentials are stored encrypted and never returned. The policy says what O.J. may send through the
connector and when. A connector with an empty policy sends nothing.
Authorizations
One client per partner per environment. Access tokens expire after 15 minutes. Scopes are granted per client. Sandbox clients use https://sandbox.api.meet-oj.com/oauth/token.
Headers
IETF Idempotency-Key semantics (draft-ietf-httpapi-idempotency-key-header). Send a fresh unique value
(a UUID) with every new request. A retry with the same key and the same payload returns the original
response with the header Idempotent-Replayed: true. The same key with a different payload is rejected with
422 and code idempotency_key_reused. Keys are kept for 24 hours.
255Body
The body for registering a channel you own. Which fields of delivery are read depends on type.
webhook, sms, apple_business_messages, email "Acme Listings in-app inbox"
What O.J. may send through a connector, and when. A connector with an empty allow list sends nothing.
How O.J. delivers. For webhook: url. For sms: provider, account_sid, auth_token, from_number. For apple_business_messages: business_id, csp_token. For email: from_address, plus DNS records O.J. gives you to verify the domain.
Response
Connector registered
A channel you registered. Credentials are never returned. delivery shows only the non-secret fields.
"chn_01K5X7A1B2"
webhook, sms, apple_business_messages, email verifying while a domain or number is being confirmed.
active, verifying, disabled What O.J. may send through a connector, and when. A connector with an empty allow list sends nothing.
"channel_connector"
