ret4youIntegration reference
PRODUCT CONTRACT

Integrate what is ready.
Never guess what is not.

ret4you keeps customer-facing integration contracts separate from its private delivery infrastructure. This page is the source of truth for the live service.

01
ACQUISITION

Telegram source-link contract

A source code chooses attribution and may preconfigure its own welcome journey.

SHAREABLE FORMAThttps://t.me/<bot_username>?start=<source_code>

Example: https://t.me/your_bot?start=partner_nl

SOURCE CODE RULES
  • 2–64 characters
  • lowercase letters, numbers, _ and -
  • unique within one bot
  • first-touch attribution is preserved
02
LINK SAFETY

Exact Telegram button links

ret4you sends the exact HTTPS destination entered by the operator, without redirect wrappers or automatic marketing parameters.

DIRECT-LINK CONTRACTentered HTTPS URL → Telegram button

No first-party click redirect and no automatic UTM parameters are created. Existing parameters typed into the destination itself remain untouched.

SUPPORTED BUTTON ACTIONS
  • HTTPS URL
  • tenant-scoped CRM tag action
  • localized button labels
  • explicit Telegram row and position
03
DELIVERY

Managed Telegram webhook boundary

Customers connect a BotFather token once; ret4you manages the delivery secret and update lifecycle server-side.

Authenticated

Telegram updates require the configured secret-token header before processing.

Idempotent

Repeated Telegram update IDs and repeated delivery operations do not create duplicate work.

Tenant-isolated

Each connected bot receives independent credentials, queue state, limits and CRM scope.

Fail-closed

Uncertain delivery outcomes remain visible for reconciliation instead of being reported as sent.

Do not configure a second webhook for the same bot.It can replace the managed ret4you webhook. Use Settings → Support before changing BotFather or webhook configuration.
04
API AVAILABILITY

What clients can call today

Internal application routes are intentionally not presented as public APIs.

CapabilityStatusContract
Telegram source linksAvailable

Create and manage them in Sources; links are safe to share publicly.

Tracked URL buttonsAvailable

Links stay exact by default; ret4you adds UTM parameters only after tracking is explicitly enabled for a button.

CRM import and exportWorkspace UI

Owner/admin controlled CSV workflows; no browser token is exposed.

Public service statusAvailable

Read-only JSON is available at GET /api/status.

Customer REST API keysNot enabled

Application APIs remain session-scoped and tenant-aware.

Outbound webhooksPlanned

Conversion and CRM event callbacks will open after the paid-pilot security gate.

PUBLIC READ-ONLY ENDPOINTGET /api/status
{
  "overall": "operational",
  "components": [
    { "name": "SaaS application", "status": "operational" }
  ]
}
05
SECURITY RULES

Integration checklist

These rules remain mandatory when public APIs expand.

✓
Keep BotFather tokens out of chat and spreadsheets

Connect or rotate them only through the encrypted workspace settings.

✓
Use a separate source for each partner or campaign

Do not reuse old source codes when attribution history matters.

✓
Test buttons and media on one Telegram account

Preview → test account → measured audience remains the production launch rule.

✓
Request future integrations through Support

Document the event, payload fields, expected volume and retry behavior.