Access token auto refresh

Hi James,

You can retrieve a new access token using the refresh token.


Kind regards,

GraemeOn 1 May 2013 12:31, james stevenson wrote:

I need a code example on how to auto refresh the token.
We are currently creating a contact and invoice however we are using a
script that requires us to manually login once to generate the token, we
can store this token in a database to use again however I read in the docs
this expires after 7 days.

We need to be able to have an open connection into the API in order to run
the code in the background after the user has made a payment. Can anyone

You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to
To post to this group, send email to
Visit this group at
For more options, visit

Graeme Boyd
Senior Software Engineer

Web. Blog.
Twitter. @freeagent!/freeagent Facebook.

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774