POST
/
v1
/
teams
/
{teamId}
/
review-tokens
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.createReviewToken({
  teamId: process.env.TX_AGENT_KIT_TEAM_ID ?? "teamId",
  body: {},
})
{
  "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>"
}

Path Parameters

teamId
string
required

Body

application/json
permissions
enum<string>[]
required
Available options:
view,
comment,
approve,
reject
reviewerName
string | null
reviewerEmail
string | null
expiresInDays
number

Response

Success

id
string<uuid>
required

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}$
teamId
string<uuid>
required

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}$
token
string
required
expiresAt
string
required
revokedAt
string | null
required
permissions
enum<string>[]
required
Available options:
view,
comment,
approve,
reject
reviewerName
string | null
required
reviewerEmail
string | null
required
lastAccessedAt
string | null
required
createdBy
string<uuid>
required

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}$
createdAt
string
required