Reference

Server API reference

Authentication, environments and conventions for the Lanying server-side HTTP API used by your backend.

Before calling the API, read api_endpoint, app_id and access-token from the console. app_id and access-token travel in request headers. Unless documented otherwise, the request Content-Type is application/json.

Environments

EnvironmentbaseUrl
Default (hosted)http://s-1-3-api.maximtop.cn
Dedicated / private cloudThe api_endpoint printed by your deployment

Request headers

http
POST /app/user/register HTTP/1.1
Host: s-1-3-api.maximtop.cn
app-id: YOUR_APP_ID
access-token: YOUR_ACCESS_TOKEN
Content-Type: application/json

Capability areas

AreaWhat it covers
UsersRegister, query, update, freeze and delete application users
TokensIssue per-user tokens for client sign-in
MessagesSend system, one-to-one and group messages from the server
ConversationsRead history and unread state
GroupsCreate groups, manage members, admins and announcements
PushTrigger notifications through the configured vendors
FilesUpload and sign media used in messages
The access token is a server secret. Requests from a browser or mobile app must go through your own backend.

Versioning and support

The hosted server API document is versioned v1.0. Technical support is handled through the public issue tracker.