Skip to main content

Services Reference

Complete list of all SDK service classes and their methods, grouped by module. Each method corresponds to one REST endpoint.

actors

See actors module docs for permissions and data model.

MethodHTTPPathDescription
actors.listActors()GET/api/v1/api/v1/actorsList actors
actors.createActor()POST/api/v1/api/v1/actorsCreate an actor
actors.getActor()GET/api/v1/api/v1/actors/{actor_id}Get an actor by ID
actors.deleteActor()DELETE/api/v1/api/v1/actors/{actor_id}Delete an actor
actors.updateActor()PATCH/api/v1/api/v1/actors/{actor_id}Update an actor
actors.getActorTags()GET/api/v1/api/v1/actors/{actor_id}/tagsGet actor tags
actors.replaceActorTags()PUT/api/v1/api/v1/actors/{actor_id}/tagsReplace actor tags
actors.mergeActorTags()PATCH/api/v1/api/v1/actors/{actor_id}/tagsMerge actor tags

agentFormations

See agentFormations module docs for permissions and data model.

MethodHTTPPathDescription
agentFormations.validateAgentFormation()POST/api/v1/api/v1/agent-formations/validateValidate a formation template
agentFormations.planAgentFormation()POST/api/v1/api/v1/agent-formations/planPlan a formation deployment
agentFormations.listAgentFormations()GET/api/v1/api/v1/agent-formationsList agent formations
agentFormations.createAgentFormation()POST/api/v1/api/v1/agent-formationsCreate a new agent formation
agentFormations.getAgentFormation()GET/api/v1/api/v1/agent-formations/{formation_id}Get a specific agent formation
agentFormations.updateAgentFormation()PUT/api/v1/api/v1/agent-formations/{formation_id}Update an agent formation
agentFormations.deleteAgentFormation()DELETE/api/v1/api/v1/agent-formations/{formation_id}Delete an agent formation
agentFormations.listAgentFormationEvents()GET/api/v1/api/v1/agent-formations/{formation_id}/eventsList formation operation events

agents

See agents module docs for permissions and data model.

MethodHTTPPathDescription
agents.createAgentTool()POST/api/v1/api/v1/agents/toolsCreate an agent tool
agents.listAgentTools()GET/api/v1/api/v1/agents/toolsList agent tools
agents.getAgentTool()GET/api/v1/api/v1/agents/tools/{tool_id}Get an agent tool
agents.updateAgentTool()PUT/api/v1/api/v1/agents/tools/{tool_id}Update an agent tool
agents.deleteAgentTool()DELETE/api/v1/api/v1/agents/tools/{tool_id}Delete an agent tool
agents.createAgent()POST/api/v1/api/v1/agentsCreate an agent
agents.listAgents()GET/api/v1/api/v1/agentsList agents
agents.getAgent()GET/api/v1/api/v1/agents/{agent_id}Get an agent
agents.updateAgent()PUT/api/v1/api/v1/agents/{agent_id}Update an agent
agents.deleteAgent()DELETE/api/v1/api/v1/agents/{agent_id}Delete an agent
agents.createAgentGeneration()POST/api/v1/api/v1/agents/{agent_id}/generateRun an agent generation
agents.submitAgentToolOutputs()POST/api/v1/api/v1/agents/{agent_id}/generate/{generation_id}/tool-outputsSubmit tool outputs for a paused generation
agents.createAgentActor()POST/api/v1/api/v1/agents/{agent_id}/actorsCreate an actor for an agent

aiProviders

See aiProviders module docs for permissions and data model.

MethodHTTPPathDescription
aiProviders.listAiProviders()GET/api/v1/api/v1/ai-providersList AI providers
aiProviders.createAiProvider()POST/api/v1/api/v1/ai-providersCreate an AI provider
aiProviders.getAiProvider()GET/api/v1/api/v1/ai-providers/{ai_provider_id}Get an AI provider
aiProviders.updateAiProvider()PATCH/api/v1/api/v1/ai-providers/{ai_provider_id}Update an AI provider
aiProviders.deleteAiProvider()DELETE/api/v1/api/v1/ai-providers/{ai_provider_id}Delete an AI provider

apiKeys

See apiKeys module docs for permissions and data model.

MethodHTTPPathDescription
apiKeys.listApiKeys()GET/api/v1/api/v1/api-keysList API keys
apiKeys.createApiKey()POST/api/v1/api/v1/api-keysCreate an API key
apiKeys.getApiKey()GET/api/v1/api/v1/api-keys/{api_key_id}Get an API key
apiKeys.updateApiKey()PUT/api/v1/api/v1/api-keys/{api_key_id}Update an API key
apiKeys.deleteApiKey()DELETE/api/v1/api/v1/api-keys/{api_key_id}Delete an API key

chats

See chats module docs for permissions and data model.

MethodHTTPPathDescription
chats.createChat()POST/api/v1/api/v1/chatsCreate a chat
chats.listChats()GET/api/v1/api/v1/chatsList chats
chats.getChat()GET/api/v1/api/v1/chats/{chat_id}Get a chat
chats.deleteChat()DELETE/api/v1/api/v1/chats/{chat_id}Delete a chat
chats.createChatCompletionForChat()POST/api/v1/api/v1/chats/{chat_id}/completionsCreate a chat completion for a stored chat
chats.createChatCompletion()POST/api/v1/api/v1/chats/completionsCreate a chat completion (stateless)
chats.createChatActor()POST/api/v1/api/v1/chats/{chat_id}/actorsCreate an actor for a chat

conversations

See conversations module docs for permissions and data model.

MethodHTTPPathDescription
conversations.listConversations()GET/api/v1/api/v1/conversationsList conversations
conversations.createConversation()POST/api/v1/api/v1/conversationsCreate a conversation
conversations.getConversation()GET/api/v1/api/v1/conversations/{conversation_id}Get a conversation by ID
conversations.updateConversation()PATCH/api/v1/api/v1/conversations/{conversation_id}Update a conversation
conversations.deleteConversation()DELETE/api/v1/api/v1/conversations/{conversation_id}Delete a conversation
conversations.listConversationMessages()GET/api/v1/api/v1/conversations/{conversation_id}/messagesList conversation messages
conversations.addConversationMessage()POST/api/v1/api/v1/conversations/{conversation_id}/messagesAdd a message to a conversation
conversations.generateConversationMessage()POST/api/v1/api/v1/conversations/{conversation_id}/generateGenerate the next message in a conversation
conversations.listConversationActors()GET/api/v1/api/v1/conversations/{conversation_id}/actorsList actors in a conversation
conversations.removeConversationMessage()DELETE/api/v1/api/v1/conversations/{conversation_id}/messages/{document_id}Remove a message from a conversation
conversations.getConversationTags()GET/api/v1/api/v1/conversations/{conversation_id}/tagsGet conversation tags
conversations.replaceConversationTags()PUT/api/v1/api/v1/conversations/{conversation_id}/tagsReplace conversation tags
conversations.mergeConversationTags()PATCH/api/v1/api/v1/conversations/{conversation_id}/tagsMerge conversation tags

documents

See documents module docs for permissions and data model.

MethodHTTPPathDescription
documents.listDocuments()GET/api/v1/api/v1/documentsList documents
documents.createDocument()POST/api/v1/api/v1/documentsCreate a document
documents.getDocument()GET/api/v1/api/v1/documents/{document_id}Get a document by ID
documents.deleteDocument()DELETE/api/v1/api/v1/documents/{document_id}Delete a document
documents.updateDocument()PATCH/api/v1/api/v1/documents/{document_id}Update a document
documents.getDocumentTags()GET/api/v1/api/v1/documents/{document_id}/tagsGet document tags
documents.replaceDocumentTags()PUT/api/v1/api/v1/documents/{document_id}/tagsReplace document tags
documents.mergeDocumentTags()PATCH/api/v1/api/v1/documents/{document_id}/tagsMerge document tags

files

See files module docs for permissions and data model.

MethodHTTPPathDescription
files.listFiles()GET/api/v1/api/v1/filesList all files
files.createFile()POST/api/v1/api/v1/filesCreate a file
files.uploadFile()POST/api/v1/api/v1/files/uploadUpload a file
files.uploadFileBase64()POST/api/v1/api/v1/files/upload/base64Upload a file using base64 encoding
files.getFile()GET/api/v1/api/v1/files/{file_id}Get a file by ID
files.deleteFile()DELETE/api/v1/api/v1/files/{file_id}Delete a file
files.downloadFile()GET/api/v1/api/v1/files/{file_id}/downloadDownload a file
files.updateFileMetadata()PATCH/api/v1/api/v1/files/{file_id}/metadataUpdate file metadata
files.downloadFileBase64()GET/api/v1/api/v1/files/{file_id}/download/base64Download file as base64
files.getFileTags()GET/api/v1/api/v1/files/{file_id}/tagsGet file tags
files.replaceFileTags()PUT/api/v1/api/v1/files/{file_id}/tagsReplace file tags
files.mergeFileTags()PATCH/api/v1/api/v1/files/{file_id}/tagsMerge file tags

knowledge

See knowledge module docs for permissions and data model.

MethodHTTPPathDescription
knowledge.searchKnowledge()POST/api/v1/api/v1/knowledge/searchSearch knowledge

memories

See memories module docs for permissions and data model.

MethodHTTPPathDescription
memories.listMemories()GET/api/v1/api/v1/memoriesList memories
memories.createMemory()POST/api/v1/api/v1/memoriesCreate a memory
memories.getMemory()GET/api/v1/api/v1/memories/{memory_id}Get a memory
memories.updateMemory()PUT/api/v1/api/v1/memories/{memory_id}Update a memory
memories.deleteMemory()DELETE/api/v1/api/v1/memories/{memory_id}Delete a memory

memoryEntries

See memoryEntries module docs for permissions and data model.

MethodHTTPPathDescription
memoryEntries.listMemoryEntries()GET/api/v1/api/v1/memories/{memory_id}/entriesList memory entries
memoryEntries.createMemoryEntry()POST/api/v1/api/v1/memories/{memory_id}/entriesCreate a memory entry
memoryEntries.getMemoryEntry()GET/api/v1/api/v1/memories/{memory_id}/entries/{entry_id}Get a memory entry
memoryEntries.updateMemoryEntry()PUT/api/v1/api/v1/memories/{memory_id}/entries/{entry_id}Update a memory entry
memoryEntries.deleteMemoryEntry()DELETE/api/v1/api/v1/memories/{memory_id}/entries/{entry_id}Delete a memory entry

policies

See policies module docs for permissions and data model.

MethodHTTPPathDescription
policies.listPolicies()GET/api/v1/api/v1/policiesList all policies
policies.createPolicy()POST/api/v1/api/v1/policiesCreate a policy
policies.getPolicy()GET/api/v1/api/v1/policies/{policy_id}Get a policy
policies.updatePolicy()PUT/api/v1/api/v1/policies/{policy_id}Update a policy
policies.deletePolicy()DELETE/api/v1/api/v1/policies/{policy_id}Delete a policy

projects

See projects module docs for permissions and data model.

MethodHTTPPathDescription
projects.createProject()POST/api/v1/api/v1/projectsCreate a project
projects.getProject()GET/api/v1/api/v1/projects/{project_id}Get a project
projects.deleteProject()DELETE/api/v1/api/v1/projects/{project_id}Delete a project

secrets

See secrets module docs for permissions and data model.

MethodHTTPPathDescription
secrets.listSecrets()GET/api/v1/api/v1/secretsList secrets
secrets.createSecret()POST/api/v1/api/v1/secretsCreate a secret
secrets.getSecret()GET/api/v1/api/v1/secrets/{secret_id}Get a secret
secrets.updateSecret()PATCH/api/v1/api/v1/secrets/{secret_id}Update a secret
secrets.deleteSecret()DELETE/api/v1/api/v1/secrets/{secret_id}Delete a secret

sessions

See sessions module docs for permissions and data model.

MethodHTTPPathDescription
sessions.createAgentSession()POST/api/v1/api/v1/agents/{agent_id}/sessionsCreate a session
sessions.listAgentSessions()GET/api/v1/api/v1/agents/{agent_id}/sessionsList sessions
sessions.getAgentSession()GET/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}Get a session
sessions.updateSession()PATCH/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}Update a session
sessions.deleteAgentSession()DELETE/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}Delete a session
sessions.listAgentSessionMessages()GET/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}/messagesList session messages
sessions.addSessionMessage()POST/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}/messagesAdd a user message
sessions.generateSessionResponse()POST/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}/generateTrigger agent generation
sessions.submitSessionToolOutputs()POST/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}/tool-outputsSubmit tool outputs
sessions.getSessionTags()GET/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}/tagsGet session tags
sessions.replaceSessionTags()PUT/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}/tagsReplace session tags
sessions.mergeSessionTags()PATCH/api/v1/api/v1/agents/{agent_id}/sessions/{session_id}/tagsMerge session tags

traces

See traces module docs for permissions and data model.

MethodHTTPPathDescription
traces.listTraces()GET/api/v1/api/v1/tracesList traces
traces.getTrace()GET/api/v1/api/v1/traces/{trace_id}Get a trace
traces.getTraceTree()GET/api/v1/api/v1/traces/{trace_id}/treeGet trace tree

users

See users module docs for permissions and data model.

MethodHTTPPathDescription
users.listUsers()GET/api/v1/api/v1/usersList all users
users.createUser()POST/api/v1/api/v1/usersCreate a user
users.getUser()GET/api/v1/api/v1/users/{user_id}Get a user by ID
users.deleteUser()DELETE/api/v1/api/v1/users/{user_id}Delete a user by ID
users.bootstrapUser()POST/api/v1/api/v1/users/bootstrapCreate the first admin user
users.loginUser()POST/api/v1/api/v1/users/loginLogin user
users.getUserPolicies()GET/api/v1/api/v1/users/{user_id}/policiesGet policies attached to a user
users.attachUserPolicies()PUT/api/v1/api/v1/users/{user_id}/policiesAttach policies to a user

webhooks

See webhooks module docs for permissions and data model.

MethodHTTPPathDescription
webhooks.listWebhooks()GET/api/v1/api/v1/projects/{project_id}/webhooksList webhooks for a project
webhooks.createWebhook()POST/api/v1/api/v1/projects/{project_id}/webhooksCreate a webhook
webhooks.getWebhook()GET/api/v1/api/v1/projects/{project_id}/webhooks/{webhook_id}Get a webhook
webhooks.updateWebhook()PUT/api/v1/api/v1/projects/{project_id}/webhooks/{webhook_id}Update a webhook
webhooks.deleteWebhook()DELETE/api/v1/api/v1/projects/{project_id}/webhooks/{webhook_id}Delete a webhook
webhooks.listWebhookDeliveries()GET/api/v1/api/v1/projects/{project_id}/webhooks/{webhook_id}/deliveriesList deliveries for a webhook
webhooks.getWebhookDelivery()GET/api/v1/api/v1/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}Get a delivery
webhooks.rotateWebhookSecret()POST/api/v1/api/v1/projects/{project_id}/webhooks/{webhook_id}/rotate-secretRotate webhook secret