RevorRevor

查询 Connect 账号

GET/api/v2/connect/accounts

返回当前用户已连接的 Email、LinkedIn 和 WhatsApp 账号。创建触达任务前,先通过本接口取得可用的 account_id

Query 参数

字段必填说明
channelemaillinkedinwhatsapp
can_sendtruefalse10

请求示例

cURL
curl "https://revor.ai/api/v2/connect/accounts?channel=linkedin&can_send=true" \
  -H "Authorization: Bearer sk-revor-REPLACE_ME"

响应示例

JSON
{
  "ok": true,
  "request_id": "req_xxx",
  "items": [
    {
      "account_id": "connect_account_xxx",
      "channel": "linkedin",
      "name": "LinkedIn Account",
      "account_identifier": "https://www.linkedin.com/in/example/",
      "status": "ok",
      "lifecycle_status": "active",
      "can_send": true,
      "can_receive": true
    }
  ]
}

status=credentials 表示账号需要更新凭证或重新连接;status=error 表示账号暂不可用。发起触达时应选择 can_send=true 的账号。

常见错误

HTTPCode说明
400invalid_channel渠道值不支持。
400invalid_can_sendcan_send 值不支持。
403permission_deniedKey 没有 Connect 账号读取权限。