Guides

Default profile

Even though default profiles are not part of the Lens V2 Protocol specification, the Lens API allows setting and fetching default profiles for any given EvmAddress. If a Lens user has not explicitly set their default profile, their oldest profile will be returned, prioritising profiles with linked handles.

Get default profile

query GetDefaultProfile($request: DefaultProfileRequest!) {
  defaultProfile(request: $request) {
    id
  }
}

{
  for: "0xabc..def"
}

Set default profile

You need to be authorized with your profile ID or a wallet to be able to call the following mutation.

mutation SetDefaultProfile($request: SetDefaultProfileRequest!) {
  setDefaultProfile(request: $request)
}
{
  defaultProfileId: "0x01"
}