---
title: "Get WeChat server config"
method: GET
path: "/v1/accounts/{accountId}/wechat-server-config"
tags: ["Account Settings"]
---

# Get WeChat server config

`GET /v1/accounts/{accountId}/wechat-server-config`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/accounts/{accountId}/wechat-server-config`
- Auth: HTTP bearer

Returns the Server URL, Token and EncodingAESKey of a connected WeChat Official Account: the same values the connect response carries, for pasting into Server Configuration in the Official Accounts Platform (Safe mode). The AppSecret is never returned.

Needs write access from a session or an API key: read-only team members, read-only API keys and OAuth access tokens get 403.

## Path parameters

- `accountId` string, required

## Response `200`

Server configuration

- object
  - `server` object
    - `url` string, uri
    - `token` string
    - `encodingAESKey` string
    - `encryptionMode` 'safe'

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `403`: Read-only team member, read-only API key or OAuth access token (code `insufficient_permissions`), or an API key without access to the account's profile.
- `404`: Resource not found

## Changes

- **2026-11-12** `6763dd77add7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/accounts/:accountId/wechat-server-config/get.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/21ba7421089d?raw)
