Skip to main content

Authentication Overview

Webull OpenAPI uses a signature-based authentication mechanism to ensure the security of every API call. This page explains the authentication model and how the components work together.

How It Works

Every API request to Webull must include two things:

  1. Signature — A cryptographic signature (e.g. HMAC-SHA1) computed from the request content and your App Secret. This proves the request is authentic and hasn't been tampered with.

  2. Token (Optional) — If Two-Factor Authentication (2FA) is enabled, a reusable access token verified via the Webull App is also required.

All API requests must be made over HTTPS. Calls made over HTTP will fail. Unauthenticated requests will also fail.

Authentication Flow

StepActionDetails
1Obtain API credentialsApply for API access and generate your App Key and App Secret
2Sign each requestCompute a cryptographic signature from the request content using your App Secret. The SDK handles this automatically.
3Create a Token (if 2FA enabled)The SDK initiates Token creation automatically; you only need to complete verification in the Webull App
4Include credentials in headersAdd x-app-key, x-signature, and optionally x-access-token to every request

Required Request Headers

HeaderRequiredDescription
x-app-keyYesA unique identifier issued to a developer for accessing the API
x-timestampYesRequest timestamp in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ (UTC only)
x-signatureYesCryptographic signature verifying the authenticity and integrity of the request
x-signature-algorithmYesSignature algorithm (e.g. HMAC-SHA1)
x-signature-versionYesSignature algorithm version (e.g. 1.0)
x-signature-nonceYesUnique random string, regenerated for each request
x-versionYesInterface version (accepts v2)
About App Secret

The app_secret is used solely on the client side for signature generation. It is not included as an HTTP request header.

SDK Users

The Webull SDK handles both signature generation and Token creation/verification automatically. You only need to configure your App Key and App Secret — the SDK takes care of the rest, including the 2FA flow.

Managing Your Credentials

You can view and manage your App Key and App Secret on the Webull Official Website under OpenAPI Management > App Management.

Security Warning

Your App Key and App Secret contain important access permissions. Never expose them in public places such as GitHub repositories, client-side code, or forums.

Next Steps

  • Individual Application Process — How to apply for API access and generate credentials
  • Signature — Detailed signature generation algorithm and examples
  • Token — Token creation, verification, and lifecycle management