GET /v1/Tokens

Return

Returns the JWT token.

Endpoint URL

https://api.wealthtechs.com/v1/Tokens

Authorization

// Basic Authorization.
// Use your credentials encoded in base64 format.

Authorization: Basic <YourCredentials>

Parameters

TypeFormatRequired
No Parameters

Responses

CodeType
200Success
400Bad Request
401Unauthorized

Example Code

// JavaScript example using fetch() API

// Use the btoa() function to encode your credentials in base64 format.
let credentials = btoa('yourname@yourcompany.com:RandomPassword123+');

// Make the request and log the response
fetch("https://api.wealthtechs.com/v1/Tokens", {
  headers: new Headers({
    "Authorization": "Basic " + credentials,
  }),
})
.then(response => response.json())
.then(data => console.log(data));

Example Response

{
  "userName": "string",
  "email": "string",
  "jwt": "string",
  "validFrom": "2023-09-15T17:30:45.544Z",
  "validTo": "2023-09-15T17:30:45.544Z"
}