Skip to main content
Basics

Credentials

The platform uses two kinds of credentials for different callers. Do not mix them up.

CredentialFormatPurposeWhere it may live
appCode~16-character stringIdentifies your app. Used for SMS, end-user sign-in and session endpoints, sent in the X-App-Code headerFrontend or backend. It is an identifier, not a secret
appIdak_ + 24 alphanumericsOpen Platform app ID for signed server-side endpointsBackend
appSecret40 alphanumericsSigns your requests to /client/open/*Backend only. Never ship it to a browser or mobile app
notifySecret32 hex charactersThe platform signs its callbacks to you with it; you use it to verify themBackend 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:

SettingDescription
Callback URL notifyUrlHTTPS endpoint that receives asynchronous notifications such as payment success and invoice results
IP allowlistServer egress IPs allowed to create orders, comma-separated; empty means no restriction
Rate limitMaximum order-creation calls per minute
Contact / phone / notesSo 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 appSecret and notifySecret together, 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).