跳转到主要内容
GET
Connect a platform

请求规范

  • 方法与路径: GET /apis/v1/social/messaging/connect/{platform}
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/social/messaging/connect/{platform}
  • platform: path; 必填
  • profileId: query; 可选
  • redirectUrl: query; 可选
  • onboarding: query; 可选
  • loginHint: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

此操作不另收费。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

platform
string
必填

查询参数

profileId
string

Your social profile (prf_...); the default profile when omitted.

Pattern: ^prf_[0-9A-Za-z]+$
redirectUrl
string<uri>

Where the browser goes when the flow ends; it must be on your redirect allowlist.

onboarding
string

WhatsApp only: api for a number used only through the API, business_app (the default) for a number that stays on the WhatsApp Business app.

loginHint
string

The mailbox address, to preselect it on the account picker.

响应

Success

alreadyConnected
boolean
必填
authUrl
string<uri>

Open this in a browser to authorize the platform, then poll the connect session.

connectSessionId
string
connection
object
expiresAt
string<date-time>