---
title: "DO NOT USE IT FROM THE FRONT_END! This route should be used only by the Auth0s \"post-login\" hook."
method: PUT
path: "/user/account-sync"
tags: ["user"]
---

# DO NOT USE IT FROM THE FRONT_END! This route should be used only by the Auth0s "post-login" hook.

`PUT /user/account-sync`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/user/account-sync`
- Auth: API key in header `auth0_action_secret`

## Request body

- SyncUserAccountDto
  - `auth0_id` string
  - `email` string, email, required
  - `auth0_client` Auth0ClientDto
    - `client_id` string, required
    - `name` string, required
    - `user_agent` string

## Response `200`

- UserAuthContext
  - `id` string, uuid, required
  - `subscriptionStatus` SubscriptionStatus
    - `hasActiveSubscription` boolean, required
    - `activeEntitlements` string[], required
    - `expirations` object
    - `entitlements` object
    - `subscriptions` object
  - `stripeCustomerId` string
  - `email` string

---

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