Crocodoc Support

When do sessions expire?


By default, sessions expire 60 minutes after they are generated. However, we have added a session duration parameter that can be used to set a custom session length. 

When making an API call to create a session, the “duration” parameter can be used to specify the number of seconds the session should be valid. This can range from 0 seconds (meaning the session would expire immediately… not very useful) to ~50 years (1576800000 seconds).

Here’s a simple example request to make a session that would last 24 hours (86400 seconds):

curl ‘’ —data ‘token=api_token&uuid=doc_uuid&duration=86400’


Have more questions? Submit a request


Powered by Zendesk