packages/pieces/community/ringcentral/README.md
@activepieces/piece-ringcentral)SMS, RingOut calls, call logs and Team Messaging.
In the RingCentral Developer Console, create a REST API app using OAuth 2.0 Authorization Code Flow for a server/web app:
platform.devtest.ringcentral.com; graduation to production is a RingCentral-side step.Every connection is an ordinary per-user OAuth login. Nothing here is shared platform-wide, which is also why this piece keeps a Custom API Call action: it can only do what the connection's owner already can.
| Action | Endpoint | Notes |
|---|---|---|
| Send SMS | POST /restapi/v1.0/account/~/extension/~/sms | From is a dropdown of the extension's SMS-enabled numbers |
| Make Call (RingOut) | POST /restapi/v1.0/account/~/extension/~/ring-out | Two-legged: calls "from" first, then connects "to" |
| Send Team Messaging Post | POST /team-messaging/v1/chats/{chatId}/posts | Markdown supported; Chat is a dropdown |
| Get Call Log | GET /restapi/v1.0/account/~/extension/~/call-log | Direction/type/date filters, paging via perPage |
| Get Extension Info | GET /restapi/v1.0/account/~/extension/~ | The authenticated extension's profile |
| Get Message | GET /restapi/v1.0/account/~/extension/~/message-store/{messageId} | Reads a text or voicemail back, including its attachment list |
| Download Message Attachment | GET .../message-store/{messageId}/content/{attachmentId} | Returns a file. Resolves the attachment id and name from the message when not given |
| Custom API Call | any | Bearer token of this connection |
Reads retry on 5xx; writes never do, because a replayed RingOut dials someone twice and a replayed SMS sends twice. Every request carries a 30s timeout.
The From dropdown lists only numbers carrying the SmsSender feature. RingCentral assigns some
numbers to an extension for caller ID only; those come back with features: ['CallerId'] and are
refused at send time with MSG-242 FeatureNotAvailable. Filtering the list is what keeps that from
being a run-time surprise. If the dropdown reports no numbers, none on the extension are SMS-enabled.
The Chat dropdown follows RingCentral's page tokens rather than reading the first page only, so a chat past the first 250 is still selectable.
All three are WebHook subscriptions (/restapi/v1.0/subscription) built by one factory
(src/lib/common/subscription-trigger.ts):
| Trigger | Event filter | Kept deliveries |
|---|---|---|
| New Inbound SMS or MMS | message-store/instant?type=SMS | direction === 'Inbound' |
| New Voicemail | voicemail | all |
| New Team Messaging Post | glip/posts | eventType === 'PostAdded' |
One filter on the text trigger, and type=SMS is right for picture messages too. There is no MMS
message type: RingCentral delivers an inbound MMS through the same filter with type: 'SMS' and an
extra MmsAttachment part. Do not add type=MMS, an unrecognised type can fail the whole
createSubscription call. Pair the trigger with Download Message Attachment to pull the media,
since the delivery carries only attachment metadata, never the bytes.
Voicemail uses its own event filter (.../extension/~/voicemail), not message-store/instant, which
is documented for inbound SMS only.
Behaviour worth knowing:
Validation-Token header
echoed back; the trigger answers via onHandshake + WebhookHandshakeStrategy.HEADER_PRESENT.run() compares subscriptionId against the stored one and drops
everything else. A fabricated POST to the webhook URL therefore does nothing.onDisable tolerates an already-dead id.| File | Covers |
|---|---|
src/index.test.ts | piece surface: auth wiring, action/trigger names |
src/lib/common/client.test.ts | server selection, timeout/retry policy, error translation |
src/lib/common/subscription-trigger.test.ts | handshake, lifecycle, subscriptionId filtering, dedupe |
src/lib/actions/actions.test.ts | prop-to-request mapping per action, attachment resolution and download |
src/lib/common/props.test.ts | dropdown option building: SMS capability filter, chat paging |
src/lib/triggers/triggers.test.ts | the event filters each trigger subscribes to, inbound filtering |
Run with bun run test from this directory.