Refresh existing authentication
/api/v1/auth/refresh-token Access Refresh
Once authenticated, an issued API Access Token will expire after 30 minutes.
This authenticated endpoint will "refresh" the access token by issuing a new jwt token with an extended expiration.
This endpoint refreshes only access tokens that were issued from a StackHawk API Key via the /login route. A browser session (APPLICATION) token obtained by signing in to the StackHawk web app cannot be refreshed here; presenting one returns 401 Unauthorized. Browser sessions are refreshed by the web app itself.
For best practices, use the /refresh-token route for refreshing authentication access to extend the API session.
Response
200 - A JSON Web Token used to authenticate requests to the StackHawk API
the bearer token value
the bearer token value