List the Accounts the current user belongs to
/v1/auth/me/accountsReturns the distinct Accounts the authenticated user belongs to, each with its Applications, as an items array — the data behind the multi-Account picker. Guarded by UserJwtGuard.
Responses
application/json
items *AuthAccountDto[]
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/v1/auth/me/accounts"
{ "items": [ { "account_id": "string", "account_name": "string", "account_slug": "string", "account_role": "string", "applications": [ { "id": "string", "name": "string", "slug": "string" } ] } ] }
Tell us how we can improve this guide.