UserClouds logo
Tokenizer/Tokens/Actions

Lookup Token

This endpoint helps you re-use existing tokens. It receives a piece of data and an access policy. It returns existing tokens that match across the full set of parameters. If no token matches, an error is returned.

POST
/tokenizer/tokens/actions/lookup
access_policy_rid?object
data?string
transformer_rid?object

Response Body

curl -X POST "https://your-tenant-name.tenant.userclouds.com/tokenizer/tokens/actions/lookup" \
  -H "Content-Type: application/json" \
  -d '{}'
const body = JSON.stringify({})

fetch("https://your-tenant-name.tenant.userclouds.com/tokenizer/tokens/actions/lookup", {
  body
})
package main

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

func main() {
  url := "https://your-tenant-name.tenant.userclouds.com/tokenizer/tokens/actions/lookup"
  body := strings.NewReader(`{}`)
  req, _ := http.NewRequest("POST", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://your-tenant-name.tenant.userclouds.com/tokenizer/tokens/actions/lookup"
body = {}
response = requests.request("POST", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "tokens": [
    "string"
  ]
}
Empty
Empty
Empty