acyka api

GET /api/v1/users/{nick}

getUser

needs people:read

curl https://api.acyka.cc/api/v1/users/someone \
  -H "Authorization: Bearer $ACYKA_TOKEN"

Asking #

In the address

fieldtypewhat it is
nick stringa nickname the account answers to, current or past

Answering #

200 Profile

The shapes #

Profile #

A public profile.

Narrower than the site's own, on purpose, and narrower in one direction: the counts an account keeps to itself are **absent** here exactly as they are there, because that decision is made in `social::profile_of`'s query and not by whoever is formatting the answer. Copying the numbers out is safe; asking for them a second way would not be.

fieldtypewhat it is
id string
nickname string
avatar may be absentstring | undefined
banner may be absentstring | undefined
bio may be absentstring | undefined
about may be absentstring | undefined
verified boolean
role string`user` | `mod` | `admin`
also may be absentstring[] | undefinedThe other names this account answers to, in the order they arranged them.
followers may be absentnumber | undefined
following may be absentnumber | undefined
titles may be absentnumber | undefined
episodes may be absentnumber | undefined
joined_at string

When it says no #

A refusal is { "message": "errors.something" } — a phrase name and never a sentence, because one screen can be read in five languages. Every library turns the name into a type, so you catch the class you can do something about. Errors has the list.