API: Refreshing an Authorization Token

This document provides a guide for software developers to use the Archiver REST API.

We recommend you have your client reuse the authorization token, rather than re-authenticate for every request. By default, the authorization token remains valid for 2 hours. You can use it for that period of time without needing to re-authenticate or refresh the token. Within that time limit, your client can refresh the token in order to extend its expiration time, rather than re-authenticate.

Service URL:

post /api/v1/refresh

The REST endpoint for the service URL will depend on whether your Archiver account is hosted within the US or EU. Please ask your Sageflo Account Manager if you are not sure which to use.


Request Method:

Post

HTTP Headers:

Content-Type: application/json

Request JSON:

{
  "auth_token": "<A Valid Authorization Token>"
}

HTTP Status Code:

The API will return a status code of 200 for a successful request.

Response JSON:

{
  "auth_token": "<New AUTH_TOKEN>",
  "issued_at": "<TIMESTAMP>"
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us