Remove My Profile Picture

DELETE /v1/user/avatar

Remove your profile picture: your initials show instead. A later Google, GitHub or company sign-in that brings a picture sets one again, unless you turn that off with Profile Picture From Sign-In.

Response (200 OK)

avatar_version string
The version of your picture now; "" when you have none.
avatar_source string
google, github, oidc, upload, or "" when you have none.
avatar_from_signin boolean
Whether a sign-in that brings a picture sets yours.

Errors

401 Unauthorized
Missing or invalid auth.
429 Too Many Requests
You changed your picture many times in a short time. Try again in a minute.
503 Service Unavailable
Pictures can't be changed right now. Try again shortly.
Request
curl -X DELETE "https://api.ngris.com/v1/user/avatar" \ -H "X-API-KEY: <your_api_key>"
Response
{ "avatar_version": "", "avatar_source": "", "avatar_from_signin": true }
Was this helpful?
Was this helpful?