Early bird discounts live! Claim your offer
MemberPass Logo

get_deep_link

Build a sharable Telegram bot deep-link for a project, plan, or access code.

Purpose

Build a sharable Telegram bot deep-link for a project. The start payload depends on which optional input wins, in this precedence order:

InputResulting payloadUse case
access_codethe UUID verbatimHand out one-time redemption links.
plan_idplan_<uuid>Send a subscriber straight to a plan's checkout flow.
customcaller-suppliedTrack ad campaigns or referral codes with your own payload.
(none)project_<uuid>Default — opens the bot on the project home flow.

Required ability

distribution:read

Input schema

{
	"type": "object",
	"required": ["project_id"],
	"properties": {
		"project_id": {
			"type": "string",
			"description": "UUID of the project whose bot URL to embed in the deep-link."
		},
		"plan_id": {
			"type": "string",
			"description": "Optional plan UUID. When set, payload becomes plan_<uuid> so the bot opens the plan checkout."
		},
		"access_code": {
			"type": "string",
			"description": "Optional access-code UUID. When set, payload is the UUID verbatim for one-tap redemption."
		},
		"custom": {
			"type": "string",
			"description": "Optional caller-supplied payload. Useful for campaign / referral tracking."
		}
	}
}

Output shape

{
	"data": {
		"project_id": "prj_01HX...",
		"bot_url": "https://t.me/research_bot",
		"start_payload": "plan_pln_01HX...",
		"deep_link": "https://t.me/research_bot?start=plan_pln_01HX..."
	}
}

Example prompts

"Give me the Telegram link for my $29 Premium plan so I can post it on X."

"Build a deep-link for access code abc123 so I can DM it to a subscriber."

Failure modes

  • RESOURCE_NOT_FOUNDproject_id is not a valid UUID or out of tenant scope; or plan_id doesn't belong to the project.
  • VALIDATION_FAILEDplan_id is malformed, or the project has no Telegram bot attached (reason: no_bot_attached).
  • TOKEN_MISSING_ABILITY — token lacks distribution:read.

How is this guide?

On this page

MemberPass is a product designed by you — for you.

No boardroom full of executives deciding what we ships next. Our roadmap always shaped by you with your feedback.

Share feedback or a request