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.

GET/v1/account
Needs the scopeaccount:read

This method takes no input.

Returns

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