GET
/
v1
/
teams
/
{teamId}
/
agents
/
templates
TypeScript client
import { OctosparkClient } from '@octospark/sdk'

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

const response = await client.agents.listAgentTemplates({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
})
{
  "data": [
    {
      "slug": "<string>",
      "name": "<string>",
      "description": "<string>",
      "instructions": "<string>",
      "model": "<string>",
      "toolPolicy": {
        "allow": [
          "<string>"
        ],
        "deny": [
          "<string>"
        ]
      },
      "mediaPolicy": {
        "cta": {
          "mode": "none"
        },
        "forbidStock": true,
        "polishIterations": 2,
        "ctaEndSlide": true
      },
      "perRunCreditCeilingDecimillicents": 123,
      "outputContract": {
        "mode": "text"
      }
    }
  ]
}

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.

Response

ListAgentTemplatesResponse

data
object[]
required