---
title: "Sync User"
method: POST
path: "/api/v1/auth/sync-user"
tags: ["auth"]
---

# Sync User

`POST /api/v1/auth/sync-user`

Sync a user from Supabase to the local database.

Verifies the requesting user matches the target, then updates the
display name if it has changed.

## Request body

- SyncUserRequest — Request body for syncing a Supabase user to the local database.
  - `id` string, required — Supabase user identifier to sync.
  - `email` string, required — Email address from Supabase.
  - `display_name` string, nullable — Display name from Supabase profile.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omnara/apis/omnara-api.md) · [All operations](https://skmtc.dev/omnara/apis/omnara-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omnara/omnara-api/revisions/624048e40cad/schema)
