GET
/
v1
/
teams
/
{teamId}
/
agent-tools
/
{toolId}
/
versions
TypeScript client
import { OctosparkClient } from '@octospark/sdk'

const client = new OctosparkClient({
  token: process.env.OCTOSPARK_TOKEN
})

const response = await client.agentTools.listAgentToolVersions({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
  toolId: process.env.OCTOSPARK_TOOL_ID ?? "toolId",
})
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "toolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "version": 123,
      "description": "<string>",
      "inputSchema": {},
      "outputSchema": {},
      "executor": {
        "type": "http",
        "url": "<string>",
        "headers": {},
        "secretHeaderName": "<string>"
      },
      "hasSecret": true,
      "requiresApproval": true,
      "timeoutMs": 30500,
      "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdAt": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

teamId
string
required

Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.

toolId
string
required

Custom agent tool id (UUID), as returned by the list/create agent tools endpoints.

Response

ListAgentCustomToolVersionsResponse

data
object[]
required