Build with AI Studio

AI Studio is a platform for building AI agents and automated workflows. These docs show how to use it from your own code: call an agent, fill a knowledge base, start a workflow, or give agents your own tools and data.

#What do you want to do?

#How the pieces fit

Your systemsAI StudioWhat agents can use Your backendAgent API key Your data pipelineKnowledge base API key Your event sourceWebhook URL with secret Agents API/public/agents/{id}/chat Knowledge base API/public/kb/* Triggers/webhooks/trigger/{id}/... AI model providers Connected apps Knowledge bases Your MCP servers Your PostgreSQL
Your code talks to one of three entry points. The agent runtime then reaches the resources you configured.

#Base URL

Every path in these docs is relative to:

{BASE_URL} = https://studio.scaletechsolutions.ai/api/v1

Self-hosted? Use your own AI Studio host instead.

#Two ways to authenticate

CredentialUsed forWhere you get it
API key (agent key or knowledge base key)The public APIs your code calls: agents, knowledge basesCreated in the AI Studio app by the owner of the agent or knowledge base. See Authentication.
Your AI Studio loginSetting things up: triggers, MCP servers, database connectionsYou do these in the app. There is no public API for them.

#Guides

PageContents
QuickstartCreate a key, call an agent, stream the reply
AuthenticationAPI keys: creating, sending, rotating, keeping them safe
Agents APIChat, streaming events, sessions and message history
Knowledge base APIUpload documents, track processing, sync a cloud folder
Webhooks and triggersStart workflows and agents from your systems
Custom tools (MCP)Connect your own MCP server as agent tools
DatabasesConnect your PostgreSQL database safely
Errors and limitsStatus codes, error codes, spending limits and size limits

#Conventions

  • Requests and responses are JSON unless a page says otherwise. File uploads are multipart.
  • Errors come back with an HTTP status and a detail field. Many include a stable code you can branch on.
  • Times are ISO 8601 and in UTC. Most end in +00:00; a few (public API session times) have no offset, so read a time with no offset as UTC.
  • IDs are opaque: store them as strings and don't parse them.
AI Studio developer documentation. Times are UTC and IDs are opaque strings.