Skip to main content
POST
/
api
/
v1
/
auth
/
sync-user
Sync User
curl --request POST \
  --url https://api.example.com/api/v1/auth/sync-user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "email": "<string>",
  "display_name": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

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 | null

Display name from Supabase profile.

Response

Successful Response