Skip to main content

Authentication

For Custom endpoints, you can choose from three authentication methods so your receiver can verify that the request actually came from Recho.

info

Slack / Teams / Email endpoints already carry authentication in the URL or email address itself, so authentication is Custom-only.

NONE (no authentication)​

Requests are sent without authentication headers or signatures. Use this only when your endpoint URL is closely held and hard to guess.

warning

For production traffic, prefer one of the methods below.

BEARER (Bearer token)​

A token issued in the dashboard is attached to every request in the Authorization header.

Request headers​

Authorization: Bearer <your-token>
Content-Type: application/json

Receiver-side verification​

  • Compare the value against the token you registered for this endpoint.
  • Reject with 401 on mismatch.

Managing the token​

  • Create: From the credentials dialog on the Webhook settings page.
  • View: Once created the token can be revealed and copied at any time.
  • Update / delete: Through the same dialog.

SIGNATURE_RSA_SHA256 (RSA signature verification)​

Recho signs each request with a private key; you verify the signature with the matching public key. Because the secret never leaves Recho, this method has the lowest leak risk and is the recommended choice.

Request headers​

X-Signature: <base64-encoded-signature>
Content-Type: application/json

Signature specification​

ItemValue
Header nameX-Signature
Signed dataThe raw request body bytes as sent (no prefix, no concatenation)
AlgorithmRSA-SHA256 (RSASSA-PKCS1-v1_5 padding)
EncodingBase64 (standard alphabet, with padding)

No timestamp header is sent. Only the body is signed.

Receiver-side verification steps​

  1. Read the request body as raw bytes before parsing (re-serialising the JSON will break the signature).
  2. Base64-decode the X-Signature header to obtain the signature bytes.
  3. Verify the RSA-SHA256 (PKCS1 v1.5) signature over the raw body with the public key you registered.
  4. Reject with 401 if verification fails.
note

The signature currently covers the body only and does not include a timestamp. Because the same request may legitimately be redelivered on retry, we recommend idempotent handling keyed on fields such as data.callId. See Retry policy for details.

Managing the public key​

  • Obtain: Copy the public key from the credentials dialog.
  • Visibility: Public keys are not secret and remain visible at all times.
  • Rotation: Issuing a new key replaces the active public key.

Recommendations​

  • For production traffic, SIGNATURE_RSA_SHA256 is recommended.
  • Use BEARER when a lightweight check is sufficient — keep the token secure and rotate it periodically.
  • Use NONE only in narrow scenarios such as private internal networks.