---
title: "Link X account: sync username from Privy after OAuth"
method: POST
path: "/v1/x-account/link"
tags: ["x-account"]
---

# Link X account: sync username from Privy after OAuth

`POST /v1/x-account/link`

## Response `200`

Successful response

- object
  - `synced` boolean, required
  - `xUsername` string, nullable, required
  - `avatarUrl` string, nullable, required

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/legend/apis/legend-api.md) · [All operations](https://skmtc.net/legend/apis/legend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/legend/legend-api/revisions/d9a714c3ff23/schema)
