GET
/
v1
/
review
/
{token}
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.teams.validateReviewToken({
  token: process.env.TX_AGENT_KIT_TOKEN ?? "token",
})
{
  "valid": true,
  "token": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "token": "<string>",
    "expiresAt": "<string>",
    "revokedAt": "<string>",
    "permissions": [],
    "reviewerName": "<string>",
    "reviewerEmail": "<string>",
    "lastAccessedAt": "<string>",
    "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "<string>"
  },
  "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "permissions": [
    "<string>"
  ]
}

Path Parameters

token
string
required

Response

Success

valid
boolean
required
token
object
teamId
string<uuid>

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
permissions
string[]