OpenRCS API reference · v1 ← Back to console Swagger UI
Meta

Your endpoint that receives RCS events

POST /user-webhook public

Documentation-only view of **your** webhook. This is the endpoint **you** host and configure yourself via the console (Account → API) or `PATCH /account` with the `webhook` group. When Google delivers an inbound RBM event, the relay POSTs a Pub/Sub envelope with `Content-Type: application/json`. Decode `message.data` from base64 to get the original Google `UserMessage` or `UserEvent` JSON. When `webhook_api_key` is configured, an `x-api-key` header is sent as a shared secret. If the key is unset or blank, no auth header is sent. Your endpoint must use `https` only and resolve to a public IP (SSRF guard); return any status below `400` — including `3xx` redirects — within 5 s to acknowledge. `5xx`, timeout, and network errors are retried up to 3 attempts total (backoff 0.1 s then 0.5 s); a `4xx` is final and not retried. Webhook delivery is best-effort and fire-and-forget; the relay does not surface delivery results on any other channel. The request is not HMAC-signed and carries no cryptographic signature header.

Request body

FieldTypeRequiredDescription
message object yes

Inbound text message

{
  "message": {
    "data": "eyJzZW5kZXJQaG9uZU51bWJlciI6IiszMzYxMjM0NTY3OCIsIm1lc3NhZ2VJZCI6InVzZXItbXNnLTAwMSIsInNlbmRUaW1lIjoiMjAyNi0wNS0wMVQxMjowMDowMFoiLCJhZ2VudElkIjoiYWdlbnRfYSIsImNhcnJpZXIiOiJPcmFuZ2UiLCJ0ZXh0IjoiSGVsbG8ifQ=="
  }
}

Suggested reply tap

{
  "message": {
    "data": "eyJzZW5kZXJQaG9uZU51bWJlciI6IiszMzYxMjM0NTY3OCIsIm1lc3NhZ2VJZCI6InVzZXItbXNnLTAwMiIsInNlbmRUaW1lIjoiMjAyNi0wNS0wMVQxMjowMDowM1oiLCJhZ2VudElkIjoiYWdlbnRfYSIsInN1Z2dlc3Rpb25SZXNwb25zZSI6eyJwb3N0YmFja0RhdGEiOiJjb25maXJtIiwidGV4dCI6IkNvbmZpcm0iLCJ0eXBlIjoiUkVQTFkifX0="
  }
}

Delivery receipt

{
  "message": {
    "data": "eyJzZW5kZXJQaG9uZU51bWJlciI6IiszMzYxMjM0NTY3OCIsImV2ZW50VHlwZSI6IkRFTElWRVJFRCIsImV2ZW50SWQiOiJldnQtMDAxIiwibWVzc2FnZUlkIjoiY2xpZW50LXNlbmQtMDAxIiwic2VuZFRpbWUiOiIyMDI2LTA1LTAxVDEyOjAwOjA1WiIsImFnZW50SWQiOiJhZ2VudF9hIn0="
  }
}

Responses

StatusDescription
2XX Acknowledged — the relay treats any status below 400 (including 3xx redirects) as success.
4XX Permanent failure — the relay does not retry 4xx responses.
5XX Transient failure — retried up to 3 attempts total.

Forwarded event format

When Google delivers an inbound RBM event, the relay POSTs a Pub/Sub envelope to your configured `webhook_url`. Decode `message.data` from base64 to get the original Google `UserMessage` or `UserEvent` JSON.

Inbound text message

{
  "message": {
    "data": "eyJzZW5kZXJQaG9uZU51bWJlciI6IiszMzYxMjM0NTY3OCIsIm1lc3NhZ2VJZCI6InVzZXItbXNnLTAwMSIsInNlbmRUaW1lIjoiMjAyNi0wNS0wMVQxMjowMDowMFoiLCJhZ2VudElkIjoiYWdlbnRfYSIsImNhcnJpZXIiOiJPcmFuZ2UiLCJ0ZXh0IjoiSGVsbG8ifQ=="
  }
}

Suggested reply tap

{
  "message": {
    "data": "eyJzZW5kZXJQaG9uZU51bWJlciI6IiszMzYxMjM0NTY3OCIsIm1lc3NhZ2VJZCI6InVzZXItbXNnLTAwMiIsInNlbmRUaW1lIjoiMjAyNi0wNS0wMVQxMjowMDowM1oiLCJhZ2VudElkIjoiYWdlbnRfYSIsInN1Z2dlc3Rpb25SZXNwb25zZSI6eyJwb3N0YmFja0RhdGEiOiJjb25maXJtIiwidGV4dCI6IkNvbmZpcm0iLCJ0eXBlIjoiUkVQTFkifX0="
  }
}

Delivery receipt

{
  "message": {
    "data": "eyJzZW5kZXJQaG9uZU51bWJlciI6IiszMzYxMjM0NTY3OCIsImV2ZW50VHlwZSI6IkRFTElWRVJFRCIsImV2ZW50SWQiOiJldnQtMDAxIiwibWVzc2FnZUlkIjoiY2xpZW50LXNlbmQtMDAxIiwic2VuZFRpbWUiOiIyMDI2LTA1LTAxVDEyOjAwOjA1WiIsImFnZW50SWQiOiJhZ2VudF9hIn0="
  }
}