GramCode
All features
Validate

Test endpoints with init data

Run an endpoint with a ctx.initData fixture and confirm both the authorized path and the 401 rejection before users hit it.

Feature preview

Endpoints are not ordinary HTTP handlers: the platform verifies Telegram init data and rejects calls without it. `tgcloud run endpoints/<name> '{}' --ctx '{ initData: { user: { id: 1 } } }'` lets you exercise that exact path locally.

Test the missing or invalid case too. A Mini App that forgets to call through the Telegram client should fail closed, not fall through to an unauthenticated response.

Verified context

Run with the same init-data contract the platform enforces.

401 behavior

Confirm unauthenticated calls are rejected before your logic runs.

No deploy needed

Iterate on endpoint code without pushing first.

Explore more

Describe your next change.

The agent plans, writes, validates, and deploys it to Telegram.