Skip to main content
POST
/
api
/
users
/
sync
Sync User
curl --request POST \
  --url https://api.teel.finance/api/users/sync
{
  "id": "usr_abc123",
  "email": "user@example.com",
  "name": "Jane Smith",
  "auth0Id": "auth0|abc123def456",
  "created": true
}
Creates a new user record or updates an existing one based on the Auth0 identity. This endpoint is typically called after a user authenticates via Auth0 to ensure the local user record is in sync.

Authentication

This endpoint requires a valid JWT bearer token in the Authorization header.

Response

id
string
Unique user identifier.
email
string
User’s email address.
name
string
User’s display name.
auth0Id
string
The user’s Auth0 identifier.
created
boolean
Whether a new user record was created (true) or an existing one was updated (false).
{
  "id": "usr_abc123",
  "email": "user@example.com",
  "name": "Jane Smith",
  "auth0Id": "auth0|abc123def456",
  "created": true
}