API reference

People

Who a contributor is in these books: their name, picture and role while they are a member.

Guides: See who did the accounting work

Get who a contributor is in the books

GET/v1/people/{user_id}

client.people.get()

Who a contributor is in these books: their name, picture and role while they are a member. Someone who has left keeps their work, under their id alone. Anyone who never worked in these books is not found.

Parameters

NameTypeDescription
user_idPath · Requiredstring

An id that starts with usr_.

Response

200PersonOut

Errors

400
The request was malformed or a parameter is invalid.
401
No valid credential was sent.
403
The credential or the member's role does not allow this.
404
No such resource in this ledger.
409
A conflicting request, e.g. one with the same Idempotency-Key still running.
422
A well-formed request a business rule refused.
429
Too many requests; retry after the Retry-After header.
500
Something failed on our side; the request_id identifies it.

Example

curl
curl "https://api.ledgerit.ai/v1/people/{user_id}" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Objects

The objects these operations take and return.

PersonOut

NameTypeDescription
actorRequiredContributorOut
memberRequiredboolean

Whether they are in these books now.

member_sincestring (date-time) or null

When they joined these books.

ContributorOut

NameTypeDescription
avatar_urlstring or null

Their profile picture, when they have one.

emailstring or null

Their email, while they are in these books; null once they leave.

idstring or null

An id that starts with usr_.

kindRequiredstring

user (a member), model (the model's own work) or system (the books themselves: a sync, a schedule).

One of user, system, model
namestring or null

Their name, while they are in these books and gave one; null otherwise.

rolestring or null

Their role in these books (owner, accountant, …); null once they leave.