Community

Set your avatar

Set your profile's avatar from a picture you send. It is stored apart from your account's own photo, under your profile's public id; the one it replaces is deleted. Answered at your own handle only. Takes a key holding community:write — Account offers it unticked — or the desktop's own session key. Spends nothing.

POST
/v1/community/profiles/{handle}/avatar
POST
/v1/community/profiles/{handle}/avatar
Set your avatar
Set your profile's avatar from a picture you send.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
handlestringrequired
Set your avatar
curl --request POST \
  --url 'https://api.auray.ai/v1/community/profiles/{handle}/avatar' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "standing": "<string>",
  "creator": {
    "id": "<string>",
    "handle": "<string>",
    "name": "<string>",
    "headline": "<string>",
    "bio": "<string>",
    "links": [
      {
        "kind": "<string>",
        "url": "<string>"
      }
    ],
    "avatar_url": "<string>",
    "banner_url": "<string>",
    "team": true,
    "url": "<string>",
    "moderation": "<string>",
    "moderation_note": "<string>",
    "followers": 123,
    "following": 123,
    "works": 123,
    "handle_change_after": "<string>",
    "created_at": "<string>",
    "hidden": true,
    "show_after": "<string>"
  },
  "can_publish": true,
  "counts": {
    "liked": 123,
    "collections": 123,
    "publications": {}
  },
  "request_id": "<string>"
}
Set your avatar
curl -X POST https://api.auray.ai/v1/community/profiles/ada/avatar \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "content_type": "image/png",
  "data_base64": "iVBORw0KGgoAAAANSUhEUgAA…"
}'
{
  "object": "<string>",
  "standing": "<string>",
  "creator": {
    "id": "<string>",
    "handle": "<string>",
    "name": "<string>",
    "headline": "<string>",
    "bio": "<string>",
    "links": [
      {
        "kind": "<string>",
        "url": "<string>"
      }
    ],
    "avatar_url": "<string>",
    "banner_url": "<string>",
    "team": true,
    "url": "<string>",
    "moderation": "<string>",
    "moderation_note": "<string>",
    "followers": 123,
    "following": 123,
    "works": 123,
    "handle_change_after": "<string>",
    "created_at": "<string>",
    "hidden": true,
    "show_after": "<string>"
  },
  "can_publish": true,
  "counts": {
    "liked": 123,
    "collections": 123,
    "publications": {}
  },
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — community:write — Account offers it unticked; the desktop's session key holds it.

Path Parameters

handlestringrequired
A profile's handle; one @ before it is read past.

Body

application/json
content_typestringrequired
One of "image/png", "image/jpeg", "image/webp".
data_base64stringrequired
The picture as base64, at most 2,000,000 bytes decoded and at least 64 pixels on each side. It is redrawn square at 512 pixels, cropped where its interest is, as WebP — with every byte of its metadata, a photo's location included, dropped.

Response

application/json

OK: your standing, with the profile.

objectstringrequired
One of "community".
standingstringrequired
The account's standing: active, limited, suspended or banned.
creatorobjectrequired
The account's public profile, or null before one is claimed. May be null.
Show child attributes
idstring
handlestring
namestring
May be null.
headlinestring
May be null.
biostring
May be null.
linksobject[]
Show child attributes
kindstringrequired
One of "website", "x", "instagram", "tiktok", "youtube", "linkedin", "github", "behance", "dribbble", "artstation", "vimeo", "threads", "bluesky".
urlstringrequired
https, at the host its kind names; a website anywhere. A URL.
avatar_urlstring
A URL. May be null.
banner_urlstring
A URL. May be null.
teamboolean
urlstring
A URL.
moderationstring
One of "visible", "hidden".
moderation_notestring
May be null.
followersinteger
followinginteger
worksinteger
handle_change_afterstring
May be null.
created_atstring
hiddenboolean
You hid your profile from everyone else (hidden on Change your profile).
show_afterstring
While you hid it less than an hour ago, when it can be shown again; null otherwise. May be null.
can_publishbooleanrequired
An active account with a profile our team has not hidden.
countsobjectrequired
Show child attributes
likedinteger
collectionsinteger
publicationsobject
Works by state.
request_idstring
Mirrored in the X-Request-Id header.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

Set your avatar
curl -X POST https://api.auray.ai/v1/community/profiles/ada/avatar \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "content_type": "image/png",
  "data_base64": "iVBORw0KGgoAAAANSUhEUgAA…"
}'
{
  "object": "<string>",
  "standing": "<string>",
  "creator": {
    "id": "<string>",
    "handle": "<string>",
    "name": "<string>",
    "headline": "<string>",
    "bio": "<string>",
    "links": [
      {
        "kind": "<string>",
        "url": "<string>"
      }
    ],
    "avatar_url": "<string>",
    "banner_url": "<string>",
    "team": true,
    "url": "<string>",
    "moderation": "<string>",
    "moderation_note": "<string>",
    "followers": 123,
    "following": 123,
    "works": 123,
    "handle_change_after": "<string>",
    "created_at": "<string>",
    "hidden": true,
    "show_after": "<string>"
  },
  "can_publish": true,
  "counts": {
    "liked": 123,
    "collections": 123,
    "publications": {}
  },
  "request_id": "<string>"
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.