For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
HomeAPI Reference
HomeAPI Reference
  • Overview
    • API Overview
  • Vlens API
      • POSTAuthenticate admin or service account
      • POSTRefresh access token
Dashboard
LogoLogo
Vlens APIAuthentication

Refresh access token

||View as Markdown|
POST
https://api.vlenseg.com/api/credentials/RefreshToken
POST
/api/credentials/RefreshToken
$curl -X POST https://api.vlenseg.com/api/credentials/RefreshToken \
> -H "ApiKey: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
>}'
200Authentication_refreshToken_example
1{
2 "data": {
3 "accessToken": "string",
4 "encryptedAccessToken": "string",
5 "expireInSeconds": 1,
6 "refreshToken": "string",
7 "newRefreshToken": "string"
8 },
9 "error_code": 1,
10 "error_message": "string",
11 "error_descriptions": null
12}

Exchange a valid refresh token for a new access token. Call this before the current access token expires to maintain a continuous server-side session without re-authenticating.

Was this page helpful?
Previous

Authenticate admin or service account

Next

Check for duplicate accounts

Built with

Authentication

ApiKeystring
Static API key issued to your tenant. Obtain from the Vlens dashboard.

Request

This endpoint expects an object.
refreshTokenstring or nullOptional

Response

New access token issued.
dataobject
error_codeinteger or null
error_messagestring or null
error_descriptionsany or null