跳转到主要内容
GET
列出联系人

授权

Authorization
string
header
必填

会话 JWT(来自注册/登录)或 API key(pk_...)。 也接受 X-API-Key: <token> 作为替代请求头。

查询参数

page
integer
默认值:1
必填范围: x >= 1
page_size
integer
默认值:50
必填范围: x <= 200
q
string

按姓名、别名、邮箱、电话或任一已保存目的地(链上地址、网络、国家/地区、币种、方式、标签)搜索。

has_cbpay
boolean

仅限已关联(或未关联)CBPay 账户的联系人。

favorite
boolean
source
enum<string>

仅限该来源创建的联系人。

可用选项:
manual,
import,
transfer,
payout,
crypto
has_destinations
boolean

仅限有(或无)已保存目的地的联系人。

sort
enum<string>

结果排序:name(A-Z,重音不敏感)、recent(最近使用优先)或 favorite(收藏优先,默认)。

可用选项:
name,
recent,
favorite
expand
string

包含关联资源。使用 destinations 可在联系人列表中的每个联系人内附带已保存的目标。

dest_type
enum<string>

按目标类型筛选已展开的目标。需要 expand=destinations。

可用选项:
cbpay,
payout,
crypto
dest_country
string

按 ISO alpha-2 国家/地区筛选已展开的目标。需要 expand=destinations。

响应

联系人分页。

page
integer
page_size
integer
total
integer

匹配筛选条件的联系人总数。

contacts
object[]