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:read
Only reads

This method takes no input.

Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.

  • 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.