pet.trezy.getPet

Repository @trezy.pet did:plc:ollch4g7tes2reb5eceiwuol namespace authority
Details · query
Kindquery
Authoritytrezy.pet
Indexed

Query

query · GET

Parameters

query string

aturi

string · at-uri

Hydrate ONE pet by its at-uri, as listed by pet.trezy.getPets. This is the mode the roster uses: the list call returns identifiers and each is fetched here, which keeps a large collection off the wire. Takes precedence over `did`.

did

string · did

Whose newest pet to return. Ignored when `aturi` is given. One of the two is required — sending neither refuses, because defaulting to anything here would answer about somebody.

Output

application/json

createdAt

string · datetime

error

string

Present instead of a pet. `not found` is the ORIGINAL spelling, with a space, and it stays that way: PetPage branches on it and renaming it would break the public profile page for no gain.

  • knownValues: not found | bad-request

message

string

name

string

species

string

uri

string · at-uri

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • The at-uris of a player's pets, newest first, optionally filtered by state. Returns IDs only by default.

  • The pets adopted in the 7 days before asOf, for the weekly arrivals post. Live pets only: a pet retired inside the same week is not an arrival any more. ⚠ `total` IS THE TRUE COUNT AND `pets` IS ONLY WHAT FITS ON STAGE — the post's number must be how many animals arrived, not how many the renderer could draw. Carries no keeper DID and no pet name, because the post says neither — `#pet` carries `rkey` rather than the at-URI so the caller never even receives the keeper's DID, which sits in the URI