Skip to main content
POST
Register a channel connector

Authorizations

Authorization
string
header
required

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

Idempotency-Key
string
required

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.

Maximum string length: 255

Body

application/json

The body for registering a channel you own. Which fields of delivery are read depends on type.

type
enum<string>
required
Available options:
webhook,
sms,
apple_business_messages,
email
name
string
required
Example:

"Acme Listings in-app inbox"

policy
object
required

What O.J. may send through a connector, and when. A connector with an empty allow list sends nothing.

delivery
object

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.

id
string
required
Example:

"chn_01K5X7A1B2"

type
enum<string>
required
Available options:
webhook,
sms,
apple_business_messages,
email
name
string
required
status
enum<string>
required

verifying while a domain or number is being confirmed.

Available options:
active,
verifying,
disabled
policy
object
required

What O.J. may send through a connector, and when. A connector with an empty allow list sends nothing.

created_at
string<date-time>
required
object
string
Allowed value: "channel_connector"
delivery
object