Interface Account

Represents a user of Mastodon and their associated profile.

interface Account {
    acct: string;
    avatar: string;
    avatarStatic: string;
    bot: boolean;
    createdAt: string;
    discoverable?: null | boolean;
    displayName: string;
    emojis: CustomEmoji[];
    fields: AccountField[];
    followersCount: number;
    followingCount: number;
    group: boolean;
    header: string;
    headerStatic: string;
    id: string;
    lastStatusAt: string;
    limited?: null | boolean;
    locked: boolean;
    memorial?: null | boolean;
    moved?: null | mastodon.v1.Account;
    noindex?: null | boolean;
    note: string;
    roles: Pick<Role, "id" | "name" | "color">[];
    statusesCount: number;
    suspended?: null | boolean;
    url: string;
    username: string;
}

Hierarchy (view full)

Properties

acct: string

The WebFinger account URI. Equal to username for local users, or username@domain for remote users.

avatar: string

An image icon that is shown next to statuses and in the profile.

avatarStatic: string

A static version of the avatar. Equal to avatar if its value is a static image; different if avatar is an animated GIF.

bot: boolean

Boolean to indicate that the account performs automated actions

createdAt: string

When the account was created.

discoverable?: null | boolean

Whether the account has opted into discovery features such as the profile directory.

displayName: string

The profile's display name.

emojis: CustomEmoji[]

Custom emoji entities to be used when rendering the profile. If none, an empty array will be returned.

fields: AccountField[]

Additional metadata attached to a profile as name-value pairs.

followersCount: number

The reported followers of this profile.

followingCount: number

The reported follows of this profile.

group: boolean

Indicates that the account represents a Group actor.

header: string

An image banner that is shown above the profile and in profile cards.

headerStatic: string

A static version of the header. Equal to header if its value is a static image; different if header is an animated GIF.

id: string

The account id

lastStatusAt: string

Time of the last status posted

limited?: null | boolean

An extra attribute returned only when an account is silenced. If true, indicates that the account should be hidden behind a warning screen.

locked: boolean

Whether the account manually approves follow requests.

memorial?: null | boolean
moved?: null | mastodon.v1.Account

Indicates that the profile is currently inactive and that its user has moved to a new account.

noindex?: null | boolean

Whether the local user has opted out of being indexed by search engines.

note: string

The profile's bio / description.

roles: Pick<Role, "id" | "name" | "color">[]

Roles that have been granted to this account.

statusesCount: number

How many statuses are attached to this account.

suspended?: null | boolean

An extra entity returned when an account is suspended. *

url: string

The location of the user's profile page.

username: string

The username of the account, not including domain