The signed-in caller
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
The caller, their active organization and role.
application/json- response
userId*stringname*stringemail*stringavatarUrl?stringorgId*stringorgRole*OrgRole"owner""admin""contributor""viewer"teamIds*array<string>ownsOrganization*booleanWhether the caller owns an organization that is not their personal one.
canCreateOrganization*booleanWhether POST /me/organizations would make one now.
createOrganizationBlockedReason?stringWhy not, when canCreateOrganization is false. not_individual: an organization's invitation, single
sign-on or provisioning brought the account in. owner_limit: the caller owns as many as they may.
create_used: the caller has already made as many as they may, even if someone else owns them now.
"not_individual""owner_limit""create_used"organizations*array<>Every organization the caller belongs to.
support?Present only in a support session.
curl -X GET 'https://wardn.example.com/api/v1/me'{ "userId": "string", "name": "string", "email": "string", "avatarUrl": "string", "orgId": "string", "orgRole": "owner", "teamIds": [ "string" ], "ownsOrganization": true, "canCreateOrganization": true, "createOrganizationBlockedReason": "not_individual", "organizations": [ { "id": "string", "name": "string", "role": "owner", "personal": true, "memberCount": 0 } ], "support": { "grantId": "4eda52b3-a1b8-4aae-b545-9c8c3c9c7709", "expiresAt": "2019-08-24T14:15:22Z" }}Get a stored policy decision GET
A decision as it was made when a deploy was held or let through: every rule with its verdict and the facts it read, and the versions of the rules it used, even if the rules have changed since. Activity entries link to it by `decisionId`. A decision on a deployment the caller cannot read does not exi
Ask whether the caller holds a permission on a scope POST
Next Page