Get the current Account
/portal/v1/accounts/{accountSlug}Returns the current Account's profile — id, name, slug, settings, plan, and the optimistic-lock version. Account scope comes from :accountSlug resolved by AccountAuthGuard; the caller must be a member. Pass the returned version back as the If-Match header on a subsequent update. Returns 404 if the Account does not exist or has been soft-deleted.
Authentication
Bearer Token
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
Path Parameters
accountSlugstring Required The Account's slug. An unknown one answers 404.
Responses
application/json
data *AccountResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/portal/v1/accounts/value" \ -H "Authorization: Bearer $CANOPY_TOKEN"
{ "data": { "id": "string", "name": "string", "slug": "string", "settings": {}, "plan": "string", "version": 0, "created_at": "2026-04-20T12:00:00.000Z", "updated_at": "2026-04-20T12:00:00.000Z", "delete_grace_days": 0 } }
Tell us how we can improve this guide.