UserClouds logo
Tokenizer/Tokens/Actions

Inspect Token

This endpoint gets a token. It is a primarily a debugging API that allows you to query a token without resolving it.

POST
/tokenizer/tokens/actions/inspect
token?string

Response Body

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

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

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

func main() {
  url := "https://your-tenant-name.tenant.userclouds.com/tokenizer/tokens/actions/inspect"
  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/inspect"
body = {}
response = requests.request("POST", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "access_policy": {
    "components": [
      {
        "policy": {
          "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
          "name": "string"
        },
        "template": {
          "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
          "name": "string"
        },
        "template_parameters": "string"
      }
    ],
    "description": "string",
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "is_autogenerated": true,
    "is_system": true,
    "name": "string",
    "policy_type": "composite_and",
    "required_context": {
      "property1": "string",
      "property2": "string"
    },
    "tag_ids": [
      "248df4b7-aa70-47b8-a036-33ac447e668d"
    ],
    "thresholds": {
      "announce_max_execution_failure": true,
      "announce_max_result_failure": true,
      "max_execution_duration_seconds": 0,
      "max_executions": 0,
      "max_results_per_execution": 0
    },
    "version": 0
  },
  "created": "2019-08-24T14:15:22Z",
  "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
  "token": "string",
  "transformer": {
    "description": "string",
    "function": "string",
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "input_data_type": {
      "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "name": "string"
    },
    "input_type": "string",
    "input_type_constraints": {
      "fields": [
        {
          "camel_case_name": "string",
          "ignore_for_uniqueness": true,
          "name": "string",
          "required": true,
          "struct_name": "string",
          "type": "string"
        }
      ],
      "immutable_required": true,
      "partial_updates": true,
      "unique_id_required": true,
      "unique_required": true
    },
    "is_system": true,
    "name": "string",
    "output_data_type": {
      "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "name": "string"
    },
    "output_type": "string",
    "output_type_constraints": {
      "fields": [
        {
          "camel_case_name": "string",
          "ignore_for_uniqueness": true,
          "name": "string",
          "required": true,
          "struct_name": "string",
          "type": "string"
        }
      ],
      "immutable_required": true,
      "partial_updates": true,
      "unique_id_required": true,
      "unique_required": true
    },
    "parameters": "string",
    "reuse_existing_token": true,
    "tag_ids": [
      "248df4b7-aa70-47b8-a036-33ac447e668d"
    ],
    "transform_type": "passthrough",
    "version": 0
  },
  "updated": "2019-08-24T14:15:22Z"
}
Empty
Empty