Get a Member's Profile Picture

GET /v1/account/members/{user_uuid}/avatar

The profile picture of a member of your active account, as a JPEG image (not JSON). Pass the member's avatar_version from List Members as v: a request for the current version may be cached for a day. Needs members:read.

Path parameters

user_uuid string Req
The member's user UUID (user_uuid in List Members).

Query parameters

v string
The picture's version (avatar_version). Optional.

Response (200 OK)

Content-Type header
image/jpeg.
Cache-Control header
private, max-age=86400 when v is the current version, else private, no-cache.
ETag header
The picture's version, quoted. Send it back as If-None-Match to get 304 Not Modified while it is unchanged.

Errors

401 Unauthorized
Missing or invalid auth.
403 Forbidden
Your role in the account does not include members:read.
404 Not Found
Not a member of your active account, or they have no picture.
Request
curl "https://api.ngris.com/v1/account/members/0190a1b2-c3d4-7e5f-8a9b-0000000000a7/avatar?v=3f9a1c07d2b84e65" \ -H "X-API-KEY: <your_api_key>" \ -o member.jpg
Response
200 OK Content-Type: image/jpeg Cache-Control: private, max-age=86400 ETag: "3f9a1c07d2b84e65" (the JPEG image)
Was this helpful?
Was this helpful?