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
| field | type | what it is |
|---|---|---|
nick | string | a 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.
| field | type | what it is |
|---|---|---|
id | string | |
nickname | string | |
avatar may be absent | string | undefined | |
banner may be absent | string | undefined | |
bio may be absent | string | undefined | |
about may be absent | string | undefined | |
verified | boolean | |
role | string | `user` | `mod` | `admin` |
also may be absent | string[] | undefined | The other names this account answers to, in the order they arranged them. |
followers may be absent | number | undefined | |
following may be absent | number | undefined | |
titles may be absent | number | undefined | |
episodes may be absent | number | 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.