From the external token

Decrypts a token that has been stored externally and returns the secret.

Endpoint: /api/svault/decode/{id_svault}

API_TOKEN="Place here your API Token"

curl --location --request POST 'https://service.dinamonetworks.io/api/svault/decode/3LSDubycNVWZHgA4' \
--header 'Content-Type: application/json' \
--header "X-Api-Key: ${API_TOKEN}" \
--data-raw '{
  "token": "/R/lkkyZRjIiOdasQEzC4vivXqRwBNJ/2efLI0xREUXMkH0uSQOL+T5ZJWiTUWCgFVdPriFC4xynXQHDYGnwp5NrRrxl+Al0EbSKtXF3ehkRMaINi10OzefJWn1Cr+bj9hs80P9dYFdZm3gkZoc63fc9LEL23O064D4H+/5IOOznDTLnQUPy3WzxJ0aAKtnazTw10AASa7GWcn8pv+4a1lEVCO9sROG500iPSD6KtBGPdFXIXtsJsj7/RgUaNledWi5NzpXP2ay2tb93efrxIUIh3bBFctlOorAXD9SjRJXJvC/lpLR4oLxPgtH4uTCgnrroM6XBaT1tyA2uNVREkan0PoEuyzP22mBLfWSIcCWgJ396uBewuxCNi83zbPI9DdYPJ7J+CiXDWv8+CHYjdmnfpsawfOLav3D9VFpzd9DSYY7xAso02S9mwZGMHUCDWOR0N4KDuFzvB998HmQU8MbksheXzukNDChEe5IxOOcbGdp9TJQ0Z/UmgC0gAedaE4ZjOIJRl2/diO/MoMhV60qJmrIRsZvVBV3xaHKnKXLU0aoU+7I1g7Xxi7gHPQIloecl+KnBZAmwQpYr84qjlNhPIw8Io8gFVcu8XnC/lF3KM2WNAwFIsWnsma/wyrI8UwX+4Ys2sCGXtZYRv4wB9dgp+CDVG/ZEqbo1OKXPahuioEmXAAAa8yJZPWhs4hpyczV3tNS8DXSMz5EEpEP2K9/1xP8BMTEwMzQwNzAxNTQ2MTUx"
}'
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"token\": \"64231447\",\n  \"mask\": \"***___***\"\n}");
Request request = new Request.Builder()
  .url("https://service.dinamonetworks.io/api/svault/decode/3LSDubycNVWZHgA4")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .addHeader("X-Api-Key", "Place here your API Token")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://service.dinamonetworks.io/api/svault/decode/3LSDubycNVWZHgA4");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("X-Api-Key", "Place here your API Token");
var body = @"{" + "\n" +
@"  ""token"": ""/R/lkkyZRjIiOdasQEzC4vivXqRwBNJ/2efLI0xREUXMkH0uSQOL+T5ZJWiTUWCgFVdPriFC4xynXQHDYGnwp5NrRrxl+Al0EbSKtXF3ehkRMaINi10OzefJWn1Cr+bj9hs80P9dYFdZm3gkZoc63fc9LEL23O064D4H+/5IOOznDTLnQUPy3WzxJ0aAKtnazTw10AASa7GWcn8pv+4a1lEVCO9sROG500iPSD6KtBGPdFXIXtsJsj7/RgUaNledWi5NzpXP2ay2tb93efrxIUIh3bBFctlOorAXD9SjRJXJvC/lpLR4oLxPgtH4uTCgnrroM6XBaT1tyA2uNVREkan0PoEuyzP22mBLfWSIcCWgJ396uBewuxCNi83zbPI9DdYPJ7J+CiXDWv8+CHYjdmnfpsawfOLav3D9VFpzd9DSYY7xAso02S9mwZGMHUCDWOR0N4KDuFzvB998HmQU8MbksheXzukNDChEe5IxOOcbGdp9TJQ0Z/UmgC0gAedaE4ZjOIJRl2/diO/MoMhV60qJmrIRsZvVBV3xaHKnKXLU0aoU+7I1g7Xxi7gHPQIloecl+KnBZAmwQpYr84qjlNhPIw8Io8gFVcu8XnC/lF3KM2WNAwFIsWnsma/wyrI8UwX+4Ys2sCGXtZYRv4wB9dgp+CDVG/ZEqbo1OKXPahuioEmXAAAa8yJZPWhs4hpyczV3tNS8DXSMz5EEpEP2K9/1xP8BMTEwMzQwNzAxNTQ2MTUx""," + "\n" +
@"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://service.dinamonetworks.io/api/svault/decode/3LSDubycNVWZHgA4"
  method := "POST"

  payload := strings.NewReader(`{
  "token": "/R/lkkyZRjIiOdasQEzC4vivXqRwBNJ/2efLI0xREUXMkH0uSQOL+T5ZJWiTUWCgFVdPriFC4xynXQHDYGnwp5NrRrxl+Al0EbSKtXF3ehkRMaINi10OzefJWn1Cr+bj9hs80P9dYFdZm3gkZoc63fc9LEL23O064D4H+/5IOOznDTLnQUPy3WzxJ0aAKtnazTw10AASa7GWcn8pv+4a1lEVCO9sROG500iPSD6KtBGPdFXIXtsJsj7/RgUaNledWi5NzpXP2ay2tb93efrxIUIh3bBFctlOorAXD9SjRJXJvC/lpLR4oLxPgtH4uTCgnrroM6XBaT1tyA2uNVREkan0PoEuyzP22mBLfWSIcCWgJ396uBewuxCNi83zbPI9DdYPJ7J+CiXDWv8+CHYjdmnfpsawfOLav3D9VFpzd9DSYY7xAso02S9mwZGMHUCDWOR0N4KDuFzvB998HmQU8MbksheXzukNDChEe5IxOOcbGdp9TJQ0Z/UmgC0gAedaE4ZjOIJRl2/diO/MoMhV60qJmrIRsZvVBV3xaHKnKXLU0aoU+7I1g7Xxi7gHPQIloecl+KnBZAmwQpYr84qjlNhPIw8Io8gFVcu8XnC/lF3KM2WNAwFIsWnsma/wyrI8UwX+4Ys2sCGXtZYRv4wB9dgp+CDVG/ZEqbo1OKXPahuioEmXAAAa8yJZPWhs4hpyczV3tNS8DXSMz5EEpEP2K9/1xP8BMTEwMzQwNzAxNTQ2MTUx"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("X-Api-Key", "Place here your API Token")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
var settings = {
  "url": "https://service.dinamonetworks.io/api/svault/decode/3LSDubycNVWZHgA4",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/json",
    "X-Api-Key": "Place here your API Token"
  },
  "data": JSON.stringify({
    "token": "/R/lkkyZRjIiOdasQEzC4vivXqRwBNJ/2efLI0xREUXMkH0uSQOL+T5ZJWiTUWCgFVdPriFC4xynXQHDYGnwp5NrRrxl+Al0EbSKtXF3ehkRMaINi10OzefJWn1Cr+bj9hs80P9dYFdZm3gkZoc63fc9LEL23O064D4H+/5IOOznDTLnQUPy3WzxJ0aAKtnazTw10AASa7GWcn8pv+4a1lEVCO9sROG500iPSD6KtBGPdFXIXtsJsj7/RgUaNledWi5NzpXP2ay2tb93efrxIUIh3bBFctlOorAXD9SjRJXJvC/lpLR4oLxPgtH4uTCgnrroM6XBaT1tyA2uNVREkan0PoEuyzP22mBLfWSIcCWgJ396uBewuxCNi83zbPI9DdYPJ7J+CiXDWv8+CHYjdmnfpsawfOLav3D9VFpzd9DSYY7xAso02S9mwZGMHUCDWOR0N4KDuFzvB998HmQU8MbksheXzukNDChEe5IxOOcbGdp9TJQ0Z/UmgC0gAedaE4ZjOIJRl2/diO/MoMhV60qJmrIRsZvVBV3xaHKnKXLU0aoU+7I1g7Xxi7gHPQIloecl+KnBZAmwQpYr84qjlNhPIw8Io8gFVcu8XnC/lF3KM2WNAwFIsWnsma/wyrI8UwX+4Ys2sCGXtZYRv4wB9dgp+CDVG/ZEqbo1OKXPahuioEmXAAAa8yJZPWhs4hpyczV3tNS8DXSMz5EEpEP2K9/1xP8BMTEwMzQwNzAxNTQ2MTUx"
  }),
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

Response

{
    "decoded_value": "123456781234567"
}