Skip to content

POST /v1/link-token

Create a one-time link token for your app user and receive Telegram deep-link metadata.

Bearer API key (Authorization: Bearer <key>).

{
"user_id": "string"
}

201 Created

{
"token": "string",
"expires_at": "ISO-8601",
"deep_link": "https://t.me/<bot>?start=<token>"
}
  • 401 unauthorized: invalid/inactive API key.
  • 400 invalid_request: malformed JSON or invalid user_id.
Terminal window
curl -X POST "$GATEWAY_BASE_URL/v1/link-token" \
-H "Authorization: Bearer $ETN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id":"user_123"}'
  • Token TTL is 15 minutes.
  • Token is single-use.
  • Token records snapshot the branding label (API key label first, developer name fallback).