Skip to content
ReppREST reference · v2

Security

Repp's frames show only on the origins you registered, talk only to your page over a private channel, need no third-party cookies, and are limited per key and per address.

Origins

  • Register every origin that shows Repp (https://app.example.com): https, exact, no paths and no wildcards. Repp's frames send Content-Security-Policy: frame-ancestors with exactly those origins, so no other site can frame them.
  • A test key also allows http://localhost on any port.
  • Each frame says hello to one allowed origin - your page's - and never to *.

Your Content Security Policy

If your page sends a Content Security Policy, let Repp's script and frames in. Nothing else: the frames talk to Repp themselves.

Content-Security-Policy
script-src 'self' https://embed.dev.repp.co.il;
frame-src https://embed.dev.repp.co.il;

The handshake

  • The SDK accepts a hello only from Repp's origin, from its own frame's window, carrying that frame's id; then it hands the frame one end of a MessageChannel.
  • Everything after - the client_secret, sizes, events, open and close - goes over that private channel, never through window.postMessage to anyone listening.
  • The secret is never in an address, and the token never leaves the frame.

Signed webhooks

Every webhook to your server is signed with your endpoint's own secret, which Repp shows once. Your endpoint is https only. Verify Repp-Signature on the raw body, in constant time, and refuse a signature more than 5 minutes old (see Webhooks).

No third-party cookies

Repp's frame keeps its token in memory and sends it as a bearer token. It sets no cookie, so Safari's tracking prevention and blocked third-party cookies change nothing.

Limits

Limits
WhoLimit
Sessions, per secret key600 a minute
Messenger sessions, per person of a business60 a minute
Other sessions, per connected business60 a minute
Calls without a good key, per address60 a minute
A frame's calls, per session120 a minute
Frames claiming sessions, per address30 a minute
All of a frame's calls, per address600 a minute

Over a limit the answer is 429 too_many with Retry-After: 60.