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

# Sync User

`POST /api/v1/auth/sync`

## Request

- Base URL: `https://api.freeastroapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.freeastroapi.com/api/v1/auth/sync`
- Auth: none declared

Ensure user profile exists in database.
Called after Supabase Auth signup/login.
Note: This endpoint uses the user ID from the request body since it's called
during the initial auth flow before the user has a valid session.

## Request body

- SyncUserRequest
  - `id` string, required
  - `email` string, required
  - `full_name` string, nullable
  - `avatar_url` string, nullable
  - `company_name` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/freeastroapi/apis/astroservice-api.md) · [All operations](https://skmtc.dev/freeastroapi/apis/astroservice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freeastroapi/apis/astroservice-api/revisions/0c9b4a759522?raw)
