Retrieve account
Who is asking and every workspace they can open. For a person it also joins any workspace they were invited to.
View as
GET
/v1/accountNeeds the scopeaccount:read
This method takes no input.
Returns
object"account"Always
account.kindstringHow the request was signed:
sessionfor a signed-in person,keyfor an API key.One of
sessionkeydemouserobject | nullThe signed-in person, or
nullwhen an API key is asking.user.idstringThe id of the person.
user.namestringThe name of the person.
user.emailstringThe address of the person.
user.imagestring | nullThe address of their picture, or
null.workspacesobject[]The workspaces this credential can act in.
workspaces[].idstringThe id of the workspace.
workspaces[].namestringThe name of the workspace.
workspaces[].rolestring | nullThe role of the person there, or
nullfor an API key.One of
owneradminmemberviewerworkspaces[].currentbooleanWhether this is the workspace the request acts in.