# Get current account profile

Returns the authenticated account with all associated users. Most accounts have a single user, but the system supports multiple users per account. Requires authentication token.

Endpoint: GET /api/v1/accounts/profile
Version: 1.0
Security: header

## Query parameters:

  - `htmlContent` (any)
    Returns text as html if true or original text if false. Applicable only to local posts and users. Default is true.

## Response 200 fields (application/json):

  - `account` (object, required)
    Account details including email, login type, and creation date

  - `account.id` (string, required)
    Internal account id
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `account.email` (string,null)
    Account email
    Example: "john@example.com"

  - `account.password` (string,null, required)

  - `account.phone` (string,null)
    Account phone
    Example: "+12345678901"

  - `account.createdAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `account.updatedAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users` (array, required)
    Non-empty list of users associated with this account. Most accounts have one user, but multiple users are supported.

  - `users.id` (string, required)
    internal id of this user
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.username` (string, required)
    unique user name
    Example: "john_smith"

  - `users.domain` (string, required)
    User's domain
    Example: "wlsly1.net"

  - `users.local` (boolean, required)
    Whether this user is local to this server

  - `users.displayName` (string, required)
    full name of the user
    Example: "John Smith"

  - `users.uri` (string, required)
    URI of this user
    Example: "https://wlsly1.net/users/john_smith"

  - `users.avatar` (object,null)
    User's avatar

  - `users.avatar.uploadId` (string, required)
    Internal id
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.avatar.uploaderId` (string,null)
    User who physically uploaded this file. Null for platform-owned uploads (e.g., default covers). This is an audit/meta field — use ownerId for authorization.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.avatar.ownerId` (string, required)
    Entity that owns this upload (user, channel/group, or event). TypeID prefix indicates the owner type.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.avatar.attachedToId` (string,null)
    Entity this upload is attached to (e.g., a post or event). NULL for standalone uploads like avatars, covers, or media library items.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.avatar.uploadType` (string, required)
    Type of the upload
    Enum: "VIDEO", "IMAGE", "AUDIO", "DOCUMENT", "OTHER"

  - `users.avatar.meta` (object)
    Meta data

  - `users.avatar.meta.blurhash` (string,null)

  - `users.avatar.meta.name` (string,null)

  - `users.avatar.meta.altText` (string,null)

  - `users.avatar.size` (integer, required)
    Size in bytes of all the files in this upload

  - `users.avatar.files` (array, required)
    List of all the files this upload has

  - `users.avatar.files.uri` (string,null, required)
    Full url of the file

  - `users.avatar.files.fileId` (string, required)
    File id
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.avatar.files.extension` (string, required)
    File extension
    Example: "mp4"

  - `users.avatar.files.original` (boolean, required)
    true if this file is original, false if it is a derivative

  - `users.avatar.files.meta` (object, required)
    File metadata. Contains optional values for width, height etc.

  - `users.avatar.files.meta.duration` (number,null)
    Video duration in seconds

  - `users.avatar.files.meta.width` (integer,null)
    Media width

  - `users.avatar.files.meta.height` (integer,null)
    Media height

  - `users.avatar.files.meta.codec` (string,null)
    Video codec

  - `users.avatar.files.meta.rotate` (integer,null)
    Rotation in degrees

  - `users.avatar.files.size` (integer, required)
    File size in bytes

  - `users.avatar.files.createdAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.avatar.files.updatedAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.avatar.files.type` (string, required)
    File type
    Enum: "VIDEO", "IMAGE", "AUDIO", "DOCUMENT", "OTHER"

  - `users.avatar.tags` (array, required)
    List of tags attached to upload
    Enum: "Post", "Avatar", "Header", "Album", "Emoji", "Event"

  - `users.avatar.error` (string,null)
    Upload processing error

  - `users.avatar.cached` (boolean)
    true if cached

  - `users.avatar.logs` (string,null)
    Logs

  - `users.avatar.remote` (boolean)
    true if this upload is remote

  - `users.avatar.createdAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.avatar.updatedAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.createdAt` (string, required)
    User's creation time
    Example: "2022-03-10T16:15:50Z"

  - `users.state` (string, required)
    User's moderation state
    Enum: "REGULAR", "SENSITIVE", "LIMITED", "SUSPENDED"

  - `users.relationship` (object,null)
    Relationship with this user

  - `users.relationship.following` (string,null)
    Does the viewer follow the target?
    Enum: "PENDING", "ACCEPTED", "REJECTED"

  - `users.relationship.followed` (string,null)
    Does the target follow the viewer?
    Enum: "PENDING", "ACCEPTED", "REJECTED"

  - `users.relationship.blocked` (boolean,null)
    Viewer blocked the target

  - `users.relationship.blockedBy` (boolean,null)
    Target blocked the viewer

  - `users.relationship.muted` (object,null)
    Viewer mutes the target

  - `users.relationship.muted.state` (boolean, required)

  - `users.relationship.muted.expiresAt` (string,null)
    Example: "2022-03-10T16:15:50Z"

  - `users.relationship.note` (string,null)
    Viewer's private note about the target

  - `users.entityType` (string)
    Entity type: USER, BOT, APPLICATION, GROUP_CHANNEL
    Enum: "USER", "BOT", "APPLICATION", "GROUP_CHANNEL"

  - `users.appMeta` (object)
    Structured metadata (channel flags, channel color, etc.)

  - `users.groupId` (string,null)
    Group ID if this is a group channel or group user.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.groupPrivacy` (string,null)
    Privacy of this channel in a group.
    Enum: "PUBLIC", "PRIVATE"

  - `users.groupUserName` (string,null)
    Name of the channel inside a group

  - `users.actorType` (string,null)
    Whether this user is a person, application or a service
    Enum: "Application", "Group", "Organization", "Person", "Service"

  - `users.summary` (string, required)
    User's summary or bio
    Example: "Pixels are my paint, code is my canvas, creativity is my brush."

  - `users.stats` (object)
    User stats

  - `users.stats.posts` (integer, required)
    Total number of posts

  - `users.stats.postsLast24h` (integer, required)
    Posts created in the last 24 hours

  - `users.stats.totalStorageBytes` (integer, required)
    Total uploaded bytes

  - `users.stats.comments` (integer, required)
    Total number of comments

  - `users.stats.avgPostsPerDay` (number, required)
    Average posts per day over the last 30 days

  - `users.stats.avgBytesPerDay` (number, required)
    Average uploaded bytes per day over the last 30 days

  - `users.stats.followers` (integer, required)
    number of followers

  - `users.stats.following` (integer, required)
    number of following

  - `users.stats.followingHidden` (boolean, required)
    privacy setting to hide followings

  - `users.stats.totalEvents` (integer, required)
    total number of events (group/user) emitted

  - `users.fields` (object)
    User fields

  - `users.header` (object,null)
    User's header

  - `users.header.uploadId` (string, required)
    Internal id
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.header.uploaderId` (string,null)
    User who physically uploaded this file. Null for platform-owned uploads (e.g., default covers). This is an audit/meta field — use ownerId for authorization.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.header.ownerId` (string, required)
    Entity that owns this upload (user, channel/group, or event). TypeID prefix indicates the owner type.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.header.attachedToId` (string,null)
    Entity this upload is attached to (e.g., a post or event). NULL for standalone uploads like avatars, covers, or media library items.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.header.uploadType` (string, required)
    Type of the upload
    Enum: "VIDEO", "IMAGE", "AUDIO", "DOCUMENT", "OTHER"

  - `users.header.meta` (object)
    Meta data

  - `users.header.meta.blurhash` (string,null)

  - `users.header.meta.name` (string,null)

  - `users.header.meta.altText` (string,null)

  - `users.header.size` (integer, required)
    Size in bytes of all the files in this upload

  - `users.header.files` (array, required)
    List of all the files this upload has

  - `users.header.files.uri` (string,null, required)
    Full url of the file

  - `users.header.files.fileId` (string, required)
    File id
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.header.files.extension` (string, required)
    File extension
    Example: "mp4"

  - `users.header.files.original` (boolean, required)
    true if this file is original, false if it is a derivative

  - `users.header.files.meta` (object, required)
    File metadata. Contains optional values for width, height etc.

  - `users.header.files.meta.duration` (number,null)
    Video duration in seconds

  - `users.header.files.meta.width` (integer,null)
    Media width

  - `users.header.files.meta.height` (integer,null)
    Media height

  - `users.header.files.meta.codec` (string,null)
    Video codec

  - `users.header.files.meta.rotate` (integer,null)
    Rotation in degrees

  - `users.header.files.size` (integer, required)
    File size in bytes

  - `users.header.files.createdAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.header.files.updatedAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.header.files.type` (string, required)
    File type
    Enum: "VIDEO", "IMAGE", "AUDIO", "DOCUMENT", "OTHER"

  - `users.header.tags` (array, required)
    List of tags attached to upload
    Enum: "Post", "Avatar", "Header", "Album", "Emoji", "Event"

  - `users.header.error` (string,null)
    Upload processing error

  - `users.header.cached` (boolean)
    true if cached

  - `users.header.logs` (string,null)
    Logs

  - `users.header.remote` (boolean)
    true if this upload is remote

  - `users.header.createdAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.header.updatedAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.deleted` (boolean,null)

  - `users.emojis` (array,null)

  - `users.emojis.shortcode` (string, required)

  - `users.emojis.category` (string,null, required)

  - `users.emojis.url` (string, required)

  - `users.emojis.staticUrl` (string, required)

  - `users.emojis.visibleInPicker` (boolean, required)

  - `users.location` (object,null)
    User's location, geo and name

  - `users.location.geo` (object,null, required)
    Coordinates and other geo data

  - `users.location.geo.latitude` (number, required)

  - `users.location.geo.longitude` (number, required)

  - `users.location.geo.altitude` (number,null)

  - `users.location.geo.accuracy` (number,null)

  - `users.location.geo.verticalAccuracy` (number,null)

  - `users.location.geo.speed` (number,null)

  - `users.location.geo.bearing` (number,null)

  - `users.location.geo.timestamp` (integer,null)

  - `users.location.name` (string,null, required)

  - `users.location.autoUpdate` (boolean, required)

  - `users.location.show` (boolean, required)

  - `users.timezone` (object,null)
    User's timezone

  - `users.timezone.ianaTimezone` (string,null, required)

  - `users.timezone.autoUpdate` (boolean, required)

  - `users.timezone.show` (boolean, required)

  - `users.birthday` (object,null)
    User's birthday

  - `users.birthday.date` (string,null, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.birthday.show` (string, required)
    Enum: "NONE", "YEAR", "FULL", "DATE"

  - `users.software` (string, required)
    Software platform type (wellesley, mastodon, threads.net)
    Example: "wellesley"

  - `users.groupAvatar` (object,null)
    Group avatar (only present for group channels)

  - `users.groupAvatar.uploadId` (string, required)
    Internal id
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.groupAvatar.uploaderId` (string,null)
    User who physically uploaded this file. Null for platform-owned uploads (e.g., default covers). This is an audit/meta field — use ownerId for authorization.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.groupAvatar.ownerId` (string, required)
    Entity that owns this upload (user, channel/group, or event). TypeID prefix indicates the owner type.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.groupAvatar.attachedToId` (string,null)
    Entity this upload is attached to (e.g., a post or event). NULL for standalone uploads like avatars, covers, or media library items.
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.groupAvatar.uploadType` (string, required)
    Type of the upload
    Enum: "VIDEO", "IMAGE", "AUDIO", "DOCUMENT", "OTHER"

  - `users.groupAvatar.meta` (object)
    Meta data

  - `users.groupAvatar.meta.blurhash` (string,null)

  - `users.groupAvatar.meta.name` (string,null)

  - `users.groupAvatar.meta.altText` (string,null)

  - `users.groupAvatar.size` (integer, required)
    Size in bytes of all the files in this upload

  - `users.groupAvatar.files` (array, required)
    List of all the files this upload has

  - `users.groupAvatar.files.uri` (string,null, required)
    Full url of the file

  - `users.groupAvatar.files.fileId` (string, required)
    File id
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `users.groupAvatar.files.extension` (string, required)
    File extension
    Example: "mp4"

  - `users.groupAvatar.files.original` (boolean, required)
    true if this file is original, false if it is a derivative

  - `users.groupAvatar.files.meta` (object, required)
    File metadata. Contains optional values for width, height etc.

  - `users.groupAvatar.files.meta.duration` (number,null)
    Video duration in seconds

  - `users.groupAvatar.files.meta.width` (integer,null)
    Media width

  - `users.groupAvatar.files.meta.height` (integer,null)
    Media height

  - `users.groupAvatar.files.meta.codec` (string,null)
    Video codec

  - `users.groupAvatar.files.meta.rotate` (integer,null)
    Rotation in degrees

  - `users.groupAvatar.files.size` (integer, required)
    File size in bytes

  - `users.groupAvatar.files.createdAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.groupAvatar.files.updatedAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.groupAvatar.files.type` (string, required)
    File type
    Enum: "VIDEO", "IMAGE", "AUDIO", "DOCUMENT", "OTHER"

  - `users.groupAvatar.tags` (array, required)
    List of tags attached to upload
    Enum: "Post", "Avatar", "Header", "Album", "Emoji", "Event"

  - `users.groupAvatar.error` (string,null)
    Upload processing error

  - `users.groupAvatar.cached` (boolean)
    true if cached

  - `users.groupAvatar.logs` (string,null)
    Logs

  - `users.groupAvatar.remote` (boolean)
    true if this upload is remote

  - `users.groupAvatar.createdAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.groupAvatar.updatedAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `users.groupName` (string,null)
    Group name (only present for group channels)

  - `users.groupDisplayName` (string,null)
    Group display name (only present for group channels)

  - `users.syncState` (string,null)
    Sync state for remote users (null for local users). SHALLOW_SYNCED = profile fetched, SYNC_IN_PROGRESS = deep sync running, DEEP_SYNCED = full outbox fetched, DEEP_SYNC_FAILED = deep sync failed
    Enum: "SHALLOW_SYNCED", "SYNC_IN_PROGRESS", "DEEP_SYNCED", "DEEP_SYNC_FAILED"

  - `users.deepSyncedAt` (string,null)
    When the last deep sync completed (null if never deep-synced)
    Example: "2022-03-10T16:15:50Z"

  - `users.followApproval` (string, required)
    Follow approval mode: AUTO_APPROVE, MANUALLY_APPROVES, or UNKNOWN
    Enum: "AUTO_APPROVE", "MANUALLY_APPROVES", "UNKNOWN"

  - `users.groupPrimary` (boolean,null)
    true if this is primary group channel.

  - `users.groupAutoSubscribe` (boolean,null)
    true if this is auto-subscribe group channel.

  - `users.channel` (boolean, required)
    Whether this is a channel or a user. Deprecated: use 'entityType' instead.

  - `selectedUserId` (string,null)
    ID of currently selected user. If not provided, the first user is selected
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

## Response 401 fields (application/json):

  - `errorCode` (string, required)
    Error code

  - `message` (string, required)
    Error message

  - `docUrl` (string)
    Link to documentation


