Full Tokenizer API (0.0.0)

Download OpenAPI specification:Download

The Tokenizer API used for tokenizing and detokenizing data and working with tokens using the GoLang backend

Tokens

Detokenize

Request Body schema: application/json
tokenId
required
string

The tokenID you want to decode.

Responses

Request samples

Content type
application/json
{
  • "tokenId": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Tokenize

Request Body schema: application/json
required
any (MetaData)

The metadata set for the token. Metadata is immutable once the token is created. DataType must be set to tell if it is a string or a file that is tokenized.

Responses

Request samples

Content type
application/json
{
  • "metadata": {
    }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Grants

Verify Grant

Request Body schema: application/json
sessionId
required
string
tokenId
required
string

Responses

Request samples

Content type
application/json
{
  • "sessionId": "string",
  • "tokenId": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Create Grant

Request Body schema: application/json
sessionId
required
string
tokenId
required
string
customDuration
string

a string containing a custom time the grant should last, if desired. Uses golang Duration parsing to parse things like "1h30m20s"

Responses

Request samples

Content type
application/json
{
  • "sessionId": "string",
  • "tokenId": "string",
  • "customDuration": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": { }
}

Metadata

Get Metadata

Request Body schema: application/json
tokenId
required
string

Responses

Request samples

Content type
application/json
{
  • "tokenId": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}