Avatars

You can retrieve an account’s profile image. This is especially useful if you’d like to use the profile image for a corresponding account in your own product.

Get

Gets a binary representation of an avatar. The PROFILE_ENRICHMENT_READ scope enum is required when making a request from the browser.

1
avatars.get(uniqueId)

Parameters

Name Type Description
uniqueId string Any unique ID associated with an account such as AccountID, RepresentativeID, Routing Number, or User ID

Returns

Promise.<Blob>

Examples

1
2
3
4
5
6
const moov = new Moov(...);
try {
  const avatar = await moov.avatars.get("...");
} catch (err) {
  // ...
}
Summary Beta