---
title: "POST /v2/me/profile-media/x-avatar"
method: POST
path: "/v2/me/profile-media/x-avatar"
tags: ["Social"]
---

# POST /v2/me/profile-media/x-avatar

`POST /v2/me/profile-media/x-avatar`

## Request

- Base URL: `https://api.arbital.xyz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.arbital.xyz/v2/me/profile-media/x-avatar`
- Auth: HTTP bearer

Imports the avatar from the authenticated user's Privy-verified X account. The backend downloads from the pinned X CDN, normalizes it, and publishes it only after moderation approves it. The request has no body and moderation failure is fail-closed.

## Query parameters

- `expected_profile_version` integer, required

## Response `200`

Approved X avatar published and profile version advanced

- ProfileMediaUpload
  - `kind` 'profile', required
  - `profile_version` integer, required
  - `url` string, uri, required: Backend-owned URL for the approved profile image.

## Other responses

- `400`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `401`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `404`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `409`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `413`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `422`: The server-owned safety policy rejected the social content before persistence or delivery
- `429`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `503`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.

---

[API](https://skmtc.dev/arbital/apis/arbital-api.md) - [All operations](https://skmtc.dev/arbital/apis/arbital-api/llms.txt) - [OpenAPI document](https://skmtc.dev/arbital/apis/arbital-api/revisions/bb0185edf43a?raw)
