Skip to content

查询宠物档案详情 ​

根据档案唯一 ID 查询单只宠物的完整档案详情信息。

请求地址 ​

GET
/v1/ms-ai-fast/pet-profiles/{pet_profile_id}

请求参数 ​

请求头 ​

请求头类型必填说明
Authorizationstring是访问凭证,采用 Bearer Token 规范,格式为 Bearer <ACCESS_TOKEN>。

路径参数 (Path) ​

参数名类型必填说明
pet_profile_idinteger是目标宠物档案 ID(如 44)。

Query 参数 ​

参数名类型必填默认值说明
localestring否zh-CN返回文本的本地化语言代码,支持 zh-CN 与 en-US。

响应示例 ​

json
{
  "code": 200,
  "message": "success",
  "data": {
    "id": 44,
    "name": "糯米",
    "pet_type": 1,
    "breed_code": "cat.british-shorthair",
    "breed_display_name": "英国短毛猫",
    "pet_variety": "英国短毛猫",
    "pet_sex": 1,
    "birthday": "2024-05-01",
    "weight": "4.5",
    "is_neutered": 1,
    "avatar": "https://cdn.habitaxx.com/pets/44.jpg"
  }
}
参数名类型说明
codeinteger业务状态码,200 表示成功。
messagestring状态提示信息:成功固定为 "success"(网关统一归一化),失败时为安全的中文提示。不要用它做程序判断。
dataobject宠物档案实体对象。
idinteger宠物档案主键唯一 ID。
namestring宠物昵称。
pet_typeinteger宠物物种类型:1 猫、2 狗、3 异宠。
breed_codestring平台标准品种编码。
breed_display_namestring本地化品种展示名称。
pet_sexinteger性别:1 公、2 母、null 未知。
birthdaystring出生日期(YYYY-MM-DD)。
weightstring体重(kg)。
is_neuteredinteger绝育状态:0 未绝育、1 已绝育。
avatarstring头像图片 URL。
最近更新

栖界开放平台 · API Documentation