question

egorius-7677 avatar image
0 Votes"
egorius-7677 asked saldana-msft edited

Expiration time of skiptoken and deltatoken in delta query of contacts and users API

What is equal to the expiration time of skiptoken from the nextLink parameter and deltatoken from deltaLink parameter in users and contacts delta query API?
(https://docs.microsoft.com/en-us/graph/api/user-delta?view=graph-rest-1.0&tabs=http, https://docs.microsoft.com/en-us/graph/api/contact-delta?view=graph-rest-1.0&tabs=http)

microsoft-graph-usersmicrosoft-graph-contacts
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Danstan-MSFT avatar image
0 Votes"
Danstan-MSFT answered

As far as I know, I don't think the values in the nextLink expire. Having checked pagination guide and Graph Odata support guide, skipToken just references the page and does not have other typical token behaviours like expiry. Do you have cases where skipToken has expired?


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

egorius-7677 avatar image
0 Votes"
egorius-7677 answered egorius-7677 commented

Hello @Danstan !
No, I've never had such case with skipToken, but I want to make sure that this case is impossible or how long token will be valid.
What about deltaToken?

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I believe the token us just used for pagination and should not behave like access tokens that have expiry. If they do expire they would have a reasonable time. As I have not seen any issue with this, I recommend you give it a try and observe. Come back with any issues you have. If my answer was helpful please consider accepting and upvoting to help other users.

0 Votes 0 ·

Hello @Danstan !
What about deltaToken? For deltaToken we got some errors which relates with expiration time (e.g errors with codes SyncStateInvalid, SyncStateNotFound). How long deltaToken will be valid?

0 Votes 0 ·

As for the Delta Token, I can see on this article some information that it expires after 7 days. It should explain the error you get.


0 Votes 0 ·

Thanks for the help!

0 Votes 0 ·