Create and update users (synchronous)
Use this endpoint to record custom events and purchases and update user profile attributes synchronously. This endpoint functions similarly to the
/users/trackendpoint, which updates user profiles asynchronously.

This endpoint is currently in limited beta. Although we’re not adding new customers to the beta right now, let your Braze account manager know if you think this feature could be useful for your Braze integration.
Synchronous and asynchronous API calls
In an asynchronous call, the API returns the status code 201, indicating that your request was successfully received, understood, and accepted. However, this does not mean that your request has been fully completed.
In a synchronous call, the API returns a status code 201, indicating that your request was successfully received, understood, accepted, and completed. The call response shows select user profile fields as a result of the operation.
This endpoint has a lower rate limit than the /users/track endpoint (see Rate limit). Each /users/track/sync request can contain only one event object, one attribute object, or one purchase object. This endpoint should be reserved for user profile updates where a synchronous call is needed. For a healthy implementation, we recommend using /users/track/sync and /users/track together.
For example, if you’re sending consecutive requests for the same user over a short period of time, race conditions are possible with the asynchronous /users/track endpoint, but with the /users/track/sync endpoint you can send those requests in sequence, each after receiving a 2XX response.
Frequently asked questions
Should I use the asynchronous or synchronous endpoint?
For most profile updates, the /users/track endpoint works best because of its higher rate limit and flexibility to let you batch requests. However, the /users/track/sync endpoint is useful if you’re experiencing race conditions due to rapid, consecutive requests for the same user.
Does the response time differ from the /users/track endpoint?
With a synchronous call, the API waits until Braze completes the request to return a response. As a result, synchronous requests take longer on average than asynchronous requests to /users/track. For the majority of requests, you can expect a response within seconds.
Can I send multiple requests at the same time?
Yes, as long as the requests are for different users, or each request updates different attributes, events, purchases for one user.
If you’re sending multiple requests for a user, for the same attribute, event, or purchase, Braze recommends waiting for a successful response between each request to prevent race conditions from occurring.
If you still see inconsistent profile state when calling /users/track for the same user in quick succession, switch those updates to /users/track/sync and issue one request at a time, waiting for each 2XX response before the next. That ordering is the supported way to avoid read-after-write races across tight loops or parallel workers.
Why doesn’t the response value match the one in my original request?
Although your request is completed, it’s possible your custom attribute value didn’t update. This can happen when your custom attribute update exceeds the maximum number of characters, exceeds array limits, or if the user does not exist in Braze and you have _update_existing_only = true.
In these cases, treat the response as an indication that your request, while completed, your desired update has not been made. Troubleshoot using the reasons listed in Why doesn’t the response value match the one in my original request?.
You can download the OpenAPI document and use it to validate schemas. To learn how, see Use OpenAPI schemas for request validation.