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.
Returns the agents the caller can reach, newest first, without their drafts. Pass nextCursor back as cursor for the next page.
apiKeyx-api-key<token>limit?|nullcursor?stringAgentPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.agents.list({});{ "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
Get a published agent version (Preview)
Preview · Available to selected organizations. Returns the immutable definition of one published version. Use this endpoint to get a published agent version through the Samva email API.
List agent models (Preview)
Preview · Available to selected organizations. Returns the models an agent can run on: the standard and max aliases, each with the model it points at today, then every catalog model an agent can pin.