Mastodon
  • What is Mastodon?
  • Using Mastodon
    • Signing up for an account
    • Setting up your profile
    • Posting to your profile
    • Using the network features
    • Quoting other posts
    • Dealing with unwanted content
    • Promoting yourself and others
    • Set your preferences
    • More settings
    • Using Mastodon externally
    • Moving or leaving accounts
    • Official iOS and Android apps
    • Running your own server
  • Running Mastodon
    • Preparing your machine
    • Installing from source
    • Configuring your environment
    • Configuring full-text search
    • Installing optional features
      • Object storage
      • Onion services
      • Captcha
      • Single Sign On
    • Setting up your new instance
    • Using the admin CLI
    • Upgrading to a new release
    • Backing up your server
    • Migrating to a new machine
    • Scaling up your server
    • Moderation actions
    • Troubleshooting errors
      • Database index corruption
    • Webhooks
    • Roles
  • Developing Mastodon apps
    • Getting started with the API
    • Playing with public data
    • Obtaining client app access
    • Logging in with an account
    • Libraries and implementations
    • Implementing quote posts
  • Contributing to Mastodon
    • Technical overview
    • Setting up a dev environment
    • Code structure
    • Routes
    • Security issues and responsible disclosure
  • Spec compliance
    • ActivityPub
    • WebFinger
    • Security
    • Microformats
    • OAuth
    • Bearcaps
  • REST API
    • Datetime formats
    • Guidelines and best practices
    • OAuth Tokens
    • OAuth Scopes
    • Rate limits
  • API Methods
    • apps
      • oauth
      • emails
    • accounts
      • bookmarks
      • favourites
      • mutes
      • blocks
      • domain_blocks
      • filters
      • reports
      • follow_requests
      • endorsements
      • featured_tags
      • preferences
      • followed_tags
      • suggestions
      • tags
    • async_refreshes
    • profile
    • statuses
      • media
      • polls
      • scheduled_statuses
    • timelines
      • conversations
      • lists
      • markers
      • streaming
    • grouped notifications
    • notifications
      • push
    • search
    • health
    • instance
      • trends
      • directory
      • custom_emojis
      • announcements
    • admin
      • accounts
      • canonical_email_blocks
      • dimensions
      • domain_allows
      • domain_blocks
      • email_domain_blocks
      • ip_blocks
      • measures
      • reports
      • retention
      • trends
    • proofs
    • oembed
  • API Entities
    • Account
    • AccountWarning
    • Admin::Account
    • Admin::CanonicalEmailBlock
    • Admin::Cohort
    • Admin::Dimension
    • Admin::DomainAllow
    • Admin::DomainBlock
    • Admin::EmailDomainBlock
    • Admin::Ip
    • Admin::IpBlock
    • Admin::Measure
    • Admin::Report
    • Announcement
    • Appeal
    • Application
    • AsyncRefresh
    • Context
    • Conversation
    • CustomEmoji
    • DomainBlock
    • Error
    • ExtendedDescription
    • FamiliarFollowers
    • FeaturedTag
    • Filter
    • FilterKeyword
    • FilterResult
    • FilterStatus
    • IdentityProof
    • Instance
    • List
    • Marker
    • MediaAttachment
    • Notification
    • NotificationPolicy
    • NotificationRequest
    • Poll
    • Preferences
    • PreviewCard
    • PreviewCardAuthor
    • PrivacyPolicy
    • Profile
    • Quote
    • QuoteApproval
    • Reaction
    • Relationship
    • RelationshipSeveranceEvent
    • Report
    • Role
    • Rule
    • ScheduledStatus
    • Search
    • ShallowQuote
    • Status
    • StatusEdit
    • StatusSource
    • Suggestion
    • Tag
    • TermsOfService
    • Token
    • Translation
    • V1::Filter
    • V1::Instance
    • V1::NotificationPolicy
    • WebPushSubscription

Profile

Represents the current user's profile, with source values for all the editable fields.

    • Example
    • Attributes
      • id
      • display_name
      • note
      • fields
      • avatar
      • avatar_static
      • avatar_description
      • header
      • header_static
      • header_description
      • locked
      • bot
      • hide_collections
      • discoverable
      • indexable
      • show_media
      • show_media_replies
      • show_featured
      • attribution_domains
    • Field entity attributes
      • name
      • value
      • verified_at
    • See also

Example

{
  "id": "116222600881276277",
  "display_name": "Documentation user",
  "note": "I'm only here as an example for documentation",
  "fields": [
    {
      "name": "pronouns",
      "value": "it/its",
      "verified_at": null
    }
  ],
  "avatar": null,
  "avatar_static": null,
  "avatar_description": "",
  "header": null,
  "header_static": null,
  "header_description": "",
  "locked": false,
  "bot": false,
  "hide_collections": null,
  "discoverable": true,
  "indexable": true,
  "show_media": true,
  "show_media_replies": true,
  "show_featured": true,
  "attribution_domains": [
    "articles.example.com"
  ],
  "featured_tags": [
    {
      "id": "1",
      "name": "foo",
      "url": "https://example.com/@darrel_metz0/tagged/foo",
      "statuses_count": "0",
      "last_status_at": null
    }
  ]
}

Attributes

id

Description: The account id.
Type: String (cast from an integer, but not guaranteed to be a number)
Version history:
4.6.0 - added

display_name

Description: The profile’s display name.
Type: String
Version history:
4.6.0 - added

note

Description: The profile’s bio or description. Unlike for Account, this is the raw unprocessed text, not the rendered HTML.
Type: String (raw text)
Version history:
4.6.0 - added

fields

Description: Metadata about the account. Those contain the raw unprocessed names and values.
Type: Array of Field
Version history:
4.6.0 - added

avatar

Description: An image icon that is shown next to statuses and in the profile. Unlike for Account, this is nullable and will be null if the avatar is unset.
Type: nullable String (URL)
Version history:
4.6.0 - added

avatar_static

Description: A static version of the avatar. Unlike for Account, this is nullable and will be null if the avatar is unset.
Type: nullable String (URL)
Version history:
4.6.0 - added

avatar_description

Description: A textual description of the avatar, to be used for the visually impaired or when avatars do not load.
Type: String
Version history:
4.6.0 - added

header

Description: An image banner that is shown above the profile and in profile cards. Unlike for Account, this is nullable and will be null if the header is unset.
Type: nullable String (URL)
Version history:
4.6.0 - added

header_static

Description: A static version of the header. Unlike for Account, this is nullable and will be null if the header is unset.
Type: nullable String (URL)
Version history:
4.6.0 - added

header_description

Description: A textual description of the profile header, to be used for the visually impaired or when avatars do not load.
Type: String
Version history:
4.6.0 - added

locked

Description: Whether the account manually approves follow requests.
Type: Boolean
Version history:
4.6.0 - added

bot

Description: Indicates that the account may perform automated actions, may not be monitored, or identifies as a robot. This is determined by the account’s actor_type being set to ‘Application’ or ‘Service’.
Type: Boolean
Version history:
4.6.0 - added

hide_collections

Description: Whether the user hides the contents of their follows and followers collections.
Type: nullable Boolean
Version history:
4.6.0 - added

discoverable

Description: Whether the account has opted into discovery features such as the profile directory.
Type: nullable Boolean
Version history:
4.6.0 - added

indexable

Description: Whether the account allows indexing by search engines.
Type: Boolean
Version history:
4.6.0 - added

show_media

Description: Whether the account wishes to have a “Media” tab with media attachments on their profile.
Type: Boolean
Version history:
4.6.0 - added

show_media_replies

Description: Whether the account wishes to have replies in the “Media” tab on their profile.
Type: Boolean
Version history:
4.6.0 - added

show_featured

Description: Whether the account wishes to have a “Featured” tab on their profile.
Type: Boolean
Version history:
4.6.0 - added

attribution_domains

Description: Domains of websites allowed to credit the account.
Type: Array of String
Version history:
4.6.0 - added

Field entity attributes

name

Description: The key of a given field’s key-value pair. This is the raw string before processing, not HTML.
Type: String
Version history:
4.6.0 - added

value

Description: The value associated with the name key. This is the raw string before processing, not HTML.
Type: String
Version history:
4.6.0 - added

verified_at

Description: Timestamp of when the server verified a URL value for a rel=“me” link.
Type: nullable String (Datetime) if value is a verified URL. Otherwise, null.
Version history:
4.6.0 - added

See also

GET /api/v1/profile
app/serializers/rest/profile_serializer.rb

Last updated April 7, 2026 · Improve this page

Sponsored by

Dotcom-Monitor LoadView Stephen Tures Swayable SponsorMotion

Join Mastodon · Blog ·

View source · CC BY-SA 4.0 · Imprint