Skip to the page

Retrieve account

Who is asking and every workspace they can open. For a person it also joins any workspace they were invited to.

opensend.account.get()
Needs the scopeaccount:readFrom a terminalopensend account get

This method takes no input.

Returns

The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.

  • object"account"

    Always account.

  • kindstring

    How the request was signed: session for a signed-in person, key for an API key.

    One ofsessionkeydemo

  • userobject | null

    The signed-in person, or null when an API key is asking.

  • user.idstring

    The id of the person.

  • user.namestring

    The name of the person.

  • user.emailstring

    The address of the person.

  • user.imagestring | null

    The address of their picture, or null.

  • workspacesobject[]

    The workspaces this credential can act in.

  • workspaces[].idstring

    The id of the workspace.

  • workspaces[].namestring

    The name of the workspace.

  • workspaces[].rolestring | null

    The role of the person there, or null for an API key.

    One ofowneradminmemberviewer

  • workspaces[].currentboolean

    Whether this is the workspace the request acts in.