De lo simbólico a lo secreto

Descifra un token interno de vuelta al secreto.

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

API_TOKEN="Place here your API Token"

curl --location --request POST 'https://service.dinamonetworks.io/api/svault/token/3LSDubycNVWZHgA4' \
--header 'Content-Type: application/json' \
--header "X-Api-Key: ${API_TOKEN}" \
--data-raw '{
  "token": "88733791",
  "mask": "***___***"
}'
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/token/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/token/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"": ""64231447""," + "\n" +
@"  ""mask"": ""***___***""" + "\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/token/3LSDubycNVWZHgA4"
  method := "POST"

  payload := strings.NewReader(`{
  "token": "64231447",
  "mask": "***___***"
}`)

  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/token/3LSDubycNVWZHgA4",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/json",
    "X-Api-Key": "Place here your API Token"
  },
  "data": JSON.stringify({
    "token": "64231447",
    "mask": "***___***"
  }),
};

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

Respuesta

{
    "decoded_value": "***456**"
}