Skip to content

Authentication (OpenAPI V2)

This page explains authentication for OpenAPI V2 requests. V2 uses the same auth model as the QR code API.

Create an API Key

Before calling the API, create and retrieve an API Key.

  1. Open Data API page
  2. Click 添加配置, find OpenAPI, and click 开通
  3. Enter an API Key name and click 保存
  4. In the list, click the copy icon to copy the key

The API Key name is typically used to distinguish different applications.

Authentication method

OpenAPI V2 currently supports Bearer Token only.

Bearer Token

Set request header Authorization to Bearer <API Key>.

Example:

Authorization: Bearer Abc123456