Skip to main content

List the companies I belong to.

GET/api/v1/me/companiesaccount:read

Every company (organisation of the sign-in) the token's user is a member of, as the app selector lists them, with is_current on the one this token is bound to. Needs View User Profiles. A v1 token is bound to one company, so there is no operation to switch: use a key or consent made for the other company. Names no company the person does not belong to.

Scopeaccount:read
AsynchronousNo
MCP toollist_my_companies
Portal permissionsview_user_profiles
Pagingkeyset
Default ordercompany_code
Sort fieldscompany_code

Parameters​

NameInTypeRequiredDescription
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of MyCompanyRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

MyCompany​

FieldTypeRequiredDescription
company_codestringRequiredThe company's sign-in code, as get_me answers it for the company this token is bound to.
is_currentbooleanRequiredThe company this token is bound to: the only one it reads and writes.
namestringRequired