Basics
Credentials
The platform uses two kinds of credentials for different callers. Do not mix them up.
| Credential | Format | Purpose | Where it may live |
|---|---|---|---|
appCode | ~16-character string | Identifies your app. Used for SMS, end-user sign-in and session endpoints, sent in the X-App-Code header | Frontend or backend. It is an identifier, not a secret |
appId | ak_ + 24 alphanumerics | Open Platform app ID for signed server-side endpoints | Backend |
appSecret | 40 alphanumerics | Signs your requests to /client/open/* | Backend only. Never ship it to a browser or mobile app |
notifySecret | 32 hex characters | The platform signs its callbacks to you with it; you use it to verify them | Backend only |
How to obtain them
appCode
Create an app in the console. Create a separate app for each project rather than reusing another project's appCode: SMS records and billing are tracked per appCode.
appId / appSecret / notifySecret
In the console, enable the Open Platform for your app. You can configure:
| Setting | Description |
|---|---|
Callback URL notifyUrl | HTTPS endpoint that receives asynchronous notifications such as payment success and invoice results |
| IP allowlist | Server egress IPs allowed to create orders, comma-separated; empty means no restriction |
| Rate limit | Maximum order-creation calls per minute |
| Contact / phone / notes | So the platform can reach you |
Secrets are shown once
appSecret and notifySecret are returned only once, when you enable the Open Platform. The platform stores only an encrypted copy and cannot show them again. Save them immediately.
- If you lose them, reset the secrets in the console. A reset generates a new
appSecretandnotifySecrettogether, and the old values stop working immediately. - The callback URL, IP allowlist and rate limit can be changed at any time in the console.
- The app must be enabled. Otherwise signed endpoints return
appId不存在或应用未启用(appId not found or app disabled).