Preparation for Creating and Configuring a Third-Party Platform

View Markdown

Last edited on 2026-10-19

The overall steps for creating and configuring a third-party platform are as follows:

  1. When creating the account, you must provide basic information.
  2. After account creation, you need to complete development configuration: this mainly includes permission set configuration and development material configuration.
  3. Once development configuration is complete, you can proceed with debugging.
  4. After debugging is complete, you can submit for review (you may also submit for review immediately after providing basic information, and then edit the development materials later).
  5. Finally, perform a global release (development materials only take effect in the production environment after a global release).

During the process of filling in basic information and development materials, a considerable amount of information needs to be prepared. This article describes the prerequisites for creating a third-party platform to help developers prepare in advance.

Basic Information Preparation

  1. An accessible official website is required. The official website URL must be provided when creating a third-party platform.

  2. A PNG image with dimensions of 108 x 108 pixels and a file size not exceeding 300 KB is required, to be used as the platform icon. When creating the account, you may use the default icon if the custom icon is not yet ready.

Preparing Development Information

  1. Prepare the "Authorization Initiation Domain Name," used for redirecting from this domain to the authorization page (If Cloud Development is enabled, webpages within the Cloud Managed domain are supported by default for redirecting to the login authorization page).

  2. Prepare the "Authorization Event Receiving URL," used to receive deauthorization notifications, successful authorization notifications, and authorization update notifications, as well as tickets, etc. Simply put, messages exclusively pushed to the Service Provider are sent to this URL (If the Cloud Service Mode is enabled, you only need to fill in the corresponding cloud environment information).

  3. Prepare the "Message and Event Receiving URL," used to receive message and event pushes from Official Accounts or Mini Program. Simply put, messages pushed simultaneously to the Service Provider and the authorized Official Account or Mini Program are sent to this URL (If the Cloud Service Mode is enabled, you only need to fill in the corresponding cloud environment information).

  4. If developing for an Official Account, you also need to prepare the "Official Account Development Domain Name," which serves as the domain name for webpage development tasks such as calling the JS SDK.

  5. If developing for Mini Program, you also need to prepare the " Mini Program Server Domain Name" and the " Mini Program Business Domain Name."

In addition, to help developers more efficiently build and configure the backend service for a Third-Party Platform, you can opt for the "Third-Party Platform Cloud Service Mode." For details, see How to Build a Third-Party Platform Backend Service.

Debugging Preparation

  1. You need to prepare a Service Account or Mini Program account, and add it to the list in "Development Configuration - Development Resources - Authorized Test Service Account/ Mini Program List".

  2. You need to add the client IP of the debugging API to the "Development Configuration - Development Resources - Whitelist IP Address List".

Detailed Development Materials Description

  1. The development materials are available in two versions: a test version and a production version. The configuration for the test version is only effective for accounts listed in "Authorized Test Official Account/ Mini Program List".

  2. Only materials published on the entire network will be effective for all authorized accounts.

1. Authorization Initiation Page Domain

The authorization initiation page domain refers to the authorization callback domain used when a WeChat Official Account/ Mini Program grants login authorization to a third-party platform. During the login authorization process of the WeChat Official Account/ Mini Program, the user must redirect from a web page within this domain to the login authorization page to complete the authorization.

After successful authorization, the URI provided during the authorization process is called back. The platform checks this URI, and it must ensure that the domain of the URI matches the authorization domain provided when the service was applied for. Otherwise, the authorization page will display an error message stating: "The domain of the confirmation authorization entry page must be the same as the domain of the post-authorization callback page, and both of these must be identical to the authorization initiation page domain filled in when applying for the third-party platform."

Note: The domain name must not include protocol content such as http://, nor can a specific URI address be appended at the end of the domain name. Please strictly follow the format similar to www.qq.com.

2. Authorization Test Official Account/WeChat Open Platform App List

Before public release, only the Official Accounts or WeChat Open Platform Apps listed here can be authorized, to facilitate testing. Please provide the APPID of the Official Account or WeChat Open Platform App (which can be found on the Settings page of your Official Account or WeChat Open Platform App on the WeChat Official Platform website). You may add up to 20 APPIDs, separated by the English semicolon ;.

Note: You must enter the AppID. Do not include spaces, line breaks, or other special characters, or an error will occur.

3. Authorization Event Reception Configuration

This is used to receive all messages and events that the platform pushes exclusively to the third-party platform account, such as deauthorization notifications, authorization success notifications, and authorization update notifications. The received information is encrypted and must be decrypted according to the documentation.

It is also used to receive the Verification Ticket (component_verify_ticket). component_verify_ticket is an important credential for verifying the platform's identity. Please store it securely. When the service provider obtains the component_access_token, it must provide the latest pushed component_verify_ticket to verify the legitimacy of the identity.

Note: If Cloud Development mode is enabled, you only need to fill in the corresponding cloud environment and other information.

4. Message Verification Token

When a developer receives a message on behalf of the Official Account/Mini Program, this Token is used to verify the message. The usage is consistent with receiving a token for a standard Official Account/Mini Program.

Note: If Cloud Development mode is enabled, this field is not required.

5. Message Encryption/Decryption Key

Used during the process of receiving messages on behalf of the Official Account/Mini Program. It must be a string of length 43 consisting only of letters and numbers. Its usage is consistent with the symmetric_key of a standard Official Account/Mini Program.

Note: If Cloud Service mode is enabled, this field does not need to be filled in.

6. Message and Event Reception Configuration

This URL is used to receive messages and events from authorized Official Accounts/Service Accounts (Mini Program). The message content, message format, signature method, and encryption method are consistent with those received by ordinary Official Accounts/Service Accounts (Mini Program). The only difference is that the signature token and the encryption symmetric_key are the ones provided by the service provider during application. Since the specific message content remains unchanged, the service provider can distinguish the specific Official Account/Service Account (Mini Program) that a message belongs to by checking the ToUserName field in the message content.

Considering that a service needs to receive a large volume of messages from authorized Official Accounts/Service Accounts (Mini Program), to facilitate business routing and isolation, a URL in the following format must be provided: www.abc.com/aaa/$APPID$/bbb/cgi, where $APPID$ is replaced with the AppID of the specific authorized Official Account/Service Account (Mini Program) during actual pushing.

A third-party platform only needs to obtain authorization for a specific business module (without needing authorization for Customer Service and Menu permissions). Then, upon receiving an event push for that business module, if the event allows passively replying to followers within 5 seconds, the third-party can send a passive reply. (Which event pushes for a business module allow passive replies to users and which do not, should be confirmed with the specific business module.)

If a third-party wishes to implement real-time awareness of new followers on an Official Account, it only needs to reply with success after receiving the follow event. There is no need to send a separate reply, in order to prevent multiple third-parties from automatically replying to new followers simultaneously.

Note: If Cloud Service Mode is enabled, you only need to fill in the corresponding cloud environment and other information.

7. Official Account Development Domain Name

You can configure up to 3 Official Account development domain names, separated by an English semicolon (;). Each Official Account development domain name provides two capabilities (Note: Do not include protocol prefixes like http://, and do not append specific directories to the end of the domain):

  • Within this domain and compliant subdomains, you can initiate web page authorization on behalf of your authorized Official Accounts. Subdomains must follow the format $APPID$.wx.abc.com (where $APPID$ is a placeholder for the Official Account's AppID. It is recommended that third parties use this format, although domain mapping is supported if needed). If this format is not followed, violations by sub-accounts may result in the entire website being blocked.
  • Within this domain (primary domain), you can invoke the JS SDK on behalf of your authorized Official Accounts (requires the Official Account's AppID).

8. Mini Program Server Domains

For a Mini Program authorized to a third party, its server domains can only be the server domains of the third-party platform. Once the Mini Program releases code through a third-party platform, the server domains originally configured by the Mini Program will be removed, and only the third-party platform's domains will be retained. Therefore, before publishing code on behalf of the Mini Program, the third-party platform must call the API to add its own domains to the Mini Program.

Note: The domains must first be registered in the Mini Program server domains of the third-party platform before they can be configured via the API.

Limitations

  1. A maximum of 1,000 valid server domains can be added; among them, the maximum supported number for Request domains, Socket domains, Uploadfile domains, Download domains, UDP domains, and TCP domains is 200 each.

  2. Modification requests can be submitted up to 50 times per month.

9. Mini Program Business Domains

The business domains for Mini Program s authorized to a third party must only be the servers of the third-party platform. After a Mini Program publishes code via a third party and goes live, the business domains previously configured by the Mini Program itself will be removed, retaining only the domains of the third-party platform. Therefore, before a third-party platform publishes code on behalf of a Mini Program, it must call the API to add business domains for the Mini Program.

Note: You must first register the business domains in the Mini Program business domains of the third-party platform before calling the API to configure them.

When configuring domains for an authorized Mini Program, subdomain configuration is supported. For example, if the business domain registered by the third party is qq.com, you can directly configure qq.com and its subdomains (such as xxx.qq.com) for the authorized Mini Program.

You can add up to 200 business domains.

10. Whitelist IP Address List

Relevant APIs are only allowed to be invoked if the developer's IP address is included in this list. Up to 100 IP addresses can be entered, separated by an English semicolon (;). If there are changes to the egress IP addresses, they must be updated in the application materials and take effect in the production environment first; otherwise, the requests will be blocked.

11. Other Supplements

Note: For all complete and valid URLs provided in the application materials, an echo verification must be performed to ensure the URLs are valid and reachable. This process is consistent with the URL verification method used in the standard development mode of Official Accounts, except that the token used is the service provider's token. Click here to view the specific verification rules.