Skip to main content

Exchange Auth Token

POST 

https://api.immersve.com/auth/token

This endpoint can be used to request a new access token using a refresh token.

Request

Header Parameters

    origin stringrequired

    Origin header to specify the origin of the request.

Bodyrequired

    refreshTokenstringrequired

    JWT that is used to request a new access token. (Valid for 30 days.)

    Example: eyJhbGciOiJSUzI1NiIsI...
    clientApplicationIdstringrequired

    Id of the client application.

    Example: 29097f50d221858223a17633e36716f9

Responses

successful operation

Schema
    accessTokenstring

    The new access token that will be used for subsequent authenticated requests. This token replaces the previous access token that has expired or is about to expire.

    Example: eyJhbGciOiJSUzI1NiIsI...
    refreshTokenstring

    The new refresh token to request a new access token.

    Example: eyJhbGciOiJSUzI1NiIsI...
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.immersve.com/auth/token");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"refreshToken\": \"eyJhbGciOiJSUzI1NiIsI...\",\n \"clientApplicationId\": \"29097f50d221858223a17633e36716f9\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.immersve.com
Parameters
— headerrequired
Body required
{
  "refreshToken": "eyJhbGciOiJSUzI1NiIsI...",
  "clientApplicationId": "29097f50d221858223a17633e36716f9"
}
ResponseClear

Click the Send API Request button above and see the response here!