RU Open Web

Type to search client APIs, Bot API methods, and guides.

Build Your Own Client — Client REST API Reference
Build Your Own Client Client REST API Reference

Client REST API Reference

Complete REST endpoint map across auth, developer apps, updates, chats, messages, communities, files, calls, privacy, and releases.

All authenticated client routes require Authorization: Bearer <jwt> issued for a user device session (developer portal JWTs carry scope: "developer_portal" and are rejected here). Include X-Api-Id (1..6 or custom >= 100000 paired with X-Api-Hash). Download the full machine-readable spec at /openapi.json.

Authentication & verification (/api/auth/*)

GET /api/auth/providers
Public
GET /api/auth/challenge?purpose=register
Public
POST /api/auth/register/start
Public
POST /api/auth/register/verify
Public
POST /api/auth/register
Public
POST /api/auth/login
Public
POST /api/auth/qr/create
Public
GET /api/auth/qr/status/:token
X-QR-Secret
POST /api/auth/sessions/qr/confirm
JWT
POST /api/auth/qr/verify-2fa
X-QR-Secret
GET /api/auth/sessions
JWT
POST /api/auth/refresh
Public
POST /api/auth/logout
JWT

Additional auth & security routes: GET /api/auth/check-username, GET /api/auth/phone-verify/:id/status, POST /api/auth/sessions/qr/grant, POST /api/auth/qr/claim, OAuth (/api/auth/oauth/:provider/start, /callback, /session/:id/status, /session/:id/verify-2fa, /confirm-link), recovery (/api/auth/recover, /password/send-code, /password/reset, /2fa/reset/send-code, /2fa/reset/confirm), PATCH /api/auth/sessions/:deviceId/rename, POST /api/auth/logout-device, POST /api/auth/terminate-others, GET/PUT /api/auth/sessions/ttl, and account deletion (/api/auth/account/delete/{send-code,confirm} & /api/security/account/delete/{send-code,confirm}).

Developer console (/api/developers/*)

POST /api/developers/auth/send-code
Public
POST /api/developers/auth/verify
Public
GET /api/developers/me
Developer JWT
GET /api/developers/apps
Developer JWT
POST /api/developers/apps
Developer JWT
PATCH /api/developers/apps/:apiId
Developer JWT
POST /api/developers/apps/:apiId/rotate-hash
Developer JWT
DELETE /api/developers/apps/:apiId
Developer JWT

Delta sync, chats & messages

GET /api/updates?since_usn=0&limit=200
JWT
GET /api/search?q=query&type=all
JWT
GET /api/chats
JWT
POST /api/chats
JWT
GET /api/chats/:id
JWT
GET /api/chats/:id/messages?limit=50&until_message_id=...
JWT
POST /api/chats/:id/messages
JWT
POST /api/chats/:id/messages/album
JWT
PUT /api/chats/:id/messages/:messageId
JWT
DELETE /api/chats/:id/messages/:messageId
JWT
POST /api/chats/:id/messages/read-up-to
JWT
PUT /api/chats/:id/draft
JWT

Full chat suite includes /api/chats/saved*, /api/chats/invite/:code, /api/chats/join/:code, /api/chats/:id/pinned-messages, /api/chats/:id/scheduled*, /api/chats/:id/polls*, /api/chats/:id/members*, /api/chats/:id/invite-links, /api/chats/:id/join-requests*, /api/folders/*, and /api/communities/*.

Files, stickers, calls & public endpoints

POST /api/files/upload
JWT
POST /api/files/upload/chunked/init
JWT
PUT /api/files/upload/chunked/part?upload_id=...&part_number=1
JWT
POST /api/files/upload/chunked/complete
JWT
GET /api/files/download/*objectName
JWT
GET /api/files/avatar/*objectName?mt=...
JWT / Media Ticket
GET /api/calls/ice-servers
JWT
POST /api/calls/start
JWT
GET /api/app/check-update
Public
GET /api/public/releases
Public
GET /api/public/preview/:kind/:target
Public
GET /api/public/avatar/:kind/:target
Public