Retrieve a pet profile
GET
/pet-profiles/{pet_profile_id}Retrieve one pet profile by ID. In addition to the base fields, the detail response also carries extension records grouped by record_type.
Request URL
text
GET https://open-api.habitaxx.com/v1/ms-ai-fast/pet-profiles/44?locale=zh-CNRequest headers
http
Authorization: Bearer <ACCESS_TOKEN>Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pet_profile_id | integer | Yes | Pet-profile ID, that is the id returned by the list or create endpoint. |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
locale | string | No | Display language, such as zh-CN or en-US; affects breed_display_name and the display language of extension-record text. |
Response example
json
{
"code": 200,
"message": "success",
"data": {
"id": 44,
"user_uuid": "<USER_UUID>",
"name": "团子",
"avatar": null,
"birthday": "2023-06-01T00:00:00",
"gender": 1,
"pet_type": 2,
"pet_variety": "柴犬",
"breed_code": "dog.shiba-inu",
"locale": "zh-CN",
"breed_display_name": "柴犬",
"weight": "10.10kg",
"is_neutered": 1,
"is_del": 0,
"records": {},
"created_at": "2026-08-27T11:20:31",
"updated_at": "2026-08-27T11:20:31"
}
}Response fields
The response data is the pet-profile object; its base fields are documented under Create a pet profile.
| Field | Type | Description |
|---|---|---|
records | object | Extension records, an object grouped by record_type; an empty object {} when there are no records. |
Next steps
- To change fields, call Update a pet profile.
- Pass
idaspet_profile_idto Create a consultation session or Create an image-recognition session.