API reference Accounts
List accounts
get/v1/accounts
Returns every account the key owner is a member of.
Responses
- 200
The accounts.
Fields of the 200 response of List accounts Field Description objectstringAlways
"list".dataobject[]data[].objectstringAlways
"account".data[].idstring (uuid)The account ID.
data[].namestringdata[].slugstringThe account part of its SlimWiki URL.
data[].rolestringThe key owner's role in the account.
One of
owner,member.data[].default_wiki_idstring (uuid) | nulloptionalThe wiki opened at the account URL.
has_morebooleanWhether another page of results exists after this one.
- 401
The API key is missing, invalid, revoked or expired. Error code:
unauthorized.Error body fields
Fields of the 401 error body of List accounts Field Description errorobjecterror.codestringA stable, machine-readable error code.
One of
invalid_request,unauthorized,insufficient_scope,forbidden,not_found,conflict,rate_limited,internal_error.error.messagestringA description for people. The wording may change.
error.detailsobject[]optionalFor
invalid_request: the fields that failed validation.error.details[].fieldstringoptionalerror.details[].messagestringoptionalerror.request_idstring | nulloptionalQuote this when contacting support.
- 429
Rate limit exceeded. See the
Retry-Afterheader. Error code:rate_limited.Error body fields
Fields of the 429 error body of List accounts Field Description errorobjecterror.codestringA stable, machine-readable error code.
One of
invalid_request,unauthorized,insufficient_scope,forbidden,not_found,conflict,rate_limited,internal_error.error.messagestringA description for people. The wording may change.
error.detailsobject[]optionalFor
invalid_request: the fields that failed validation.error.details[].fieldstringoptionalerror.details[].messagestringoptionalerror.request_idstring | nulloptionalQuote this when contacting support.
Any request can also fail with 500 internal_error. See Errors for every code.