Agents

List agents (Preview)

Preview · Available to selected organizations. Returns the agents the caller can reach, newest first, without their drafts. Pass nextCursor back as cursor for the next page.

GET
/v1/agents

Returns the agents the caller can reach, newest first, without their drafts. Pass nextCursor back as cursor for the next page.

Authorization

apiKey
headerx-api-key<token>

Query Parameters

limit?|null
cursor?string

Response Body

AgentPage

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.agents.list({});
Example Response
{  "items": [    {      "id": "string",      "name": "string",      "namespaceId": "string",      "publishedVersion": -9007199254740991,      "publishedAt": "string",      "pausedAt": "string",      "creditsPausedAt": "string",      "monthlySpendCapDollars": 0,      "createdAt": "string",      "updatedAt": "string"    }  ],  "nextCursor": "string"}

Related documentation