---
title: "Sync the session identity to the DB user; tells the frontend which page to route to"
method: GET
path: "/api/users/sync"
tags: ["users"]
---

# Sync the session identity to the DB user; tells the frontend which page to route to

`GET /api/users/sync`

## Request

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

## Response `200`

OK

- UserSyncResponse
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `exists` boolean, required
  - `user` UserResponse, required
    - `$schema` string, uri: A URL to the JSON Schema for this object.
    - `avatar` AvatarResponse
      - `bird_id` string, nullable
      - `initials` string, nullable
      - `photo_url` string, nullable
      - `type` 'photo' | 'bird' | 'initials', required: Avatar display type.
    - `created_at` string, date-time, required
    - `email` string, required
    - `first_name` string, required
    - `id` integer, required
    - `job_title` string, required
    - `last_name` string, required
    - `onboarding_complete` boolean, required
    - `phone` string, nullable, required
    - `preferences` object, nullable
    - `profile_complete` boolean, required
    - `updated_at` string, date-time, required
  - `workspace_count` integer, required

## Other responses

- `default`: Error

---

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