# Sync\_state in Nylas v3

**URL:** <https://forums.nylas.com/t/sync-state-in-nylas-v3/438>\
**Category:** Question and Answers\
**Created:** [September 11, 2024, 1:53pm UTC](https://forums.nylas.com/t/sync-state-in-nylas-v3/438 "2024-09-11T13:53:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kateryna](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@Kateryna](https://forums.nylas.com/u/Kateryna)\
**Post date:** [September 11, 2024, 1:53pm UTC](https://forums.nylas.com/t/sync-state-in-nylas-v3/438/1 "2024-09-11T13:53:12Z")

</div>

```auto
curl --request GET \
  --url https://api.nylas.com/a/<NYLAS_CLIENT_ID/accounts/<ACCOUNT_ID> \
  --header 'Accept: application/json' \
  -u "<NYLAS_CLIENT_SECRET>:" \
  --header 'Content-Type: application/json'

```

> **[Nylas v2.7 API docs | Nylas Docs](https://developer.nylas.com/docs/api/v2/?_gl=1*1bkzub7*_gcl_au*MTkwOTAwMTY5Mi4xNzI1NTI2MDA4LjIwODM2MjgzODUuMTcyNjA2MTczOC4xNzI2MDYxNzM4*_ga*NTYzMzcxMjcwLjE3MTc3NDY3MzU.*_ga_5LVXVXFW0C*MTcyNjA0MDE3MC4xOS4xLjE3MjYwNjIzMjYuNTMuMC4xNTQwOTU3MjYy#get-/a/-client_id-/accounts/-id-)**
>
> Nylas reference documentation for the v2.7 Email, Calendar, and Contacts APIs.

Can you please help me, and get “sync\_state” in Nylas v3. I foud only for Nylas v2.

---

<div class="post-metadata">

**Author:** ![Blag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/blag/32/9_2.png) [@Blag](https://forums.nylas.com/u/Blag)\
**Post date:** [September 11, 2024, 2:00pm UTC](https://forums.nylas.com/t/sync-state-in-nylas-v3/438/2 "2024-09-11T14:00:29Z")

</div>

Hello @Kateryna As I mentioned in your other question, we don’t have that on V3, but you can for sure grab the user information

> [@Integration Nylas v2 to Nylas v3](https://forums.nylas.com/t/integration-nylas-v2-to-nylas-v3/437/5):
>
> This is Ruby code, but might give you an idea slight_smile get '/oauth/exchange' do code = params[:code] status 404 if code.nil? begin response = nylas.auth.exchange\_code\_for\_token({ client\_id: ENV['V3\_CLIENT'], client\_secret: ENV['V3\_SECRET'], redirect\_uri: 'http://localhost:4567/oauth/exchange', code: code }) rescue StandardError status 500 else print(res…
