DocumentationAPI ReferenceRelease Notes
ScaleAI
API OverviewAPI Authentication
List available agent templates GETGet required fields for a model provider GETCreate agent from template POSTClone Agent POSTImport Agent into Workspaces POSTGet dynamic prompt variables for an agent GETList all agents GETCreate a new agent POSTGet agent by ID GETUpdate agent PATCHGet All Event Types GETAI generate or update agent prompt POSTList agent versions GETGet agent version detail GETUpdate agent version metadata PATCHRestore agent version POSTCreate agent from template POSTClone an agent POSTGet dynamic prompt variables for an agent GETList all agents GETCreate a new agent POSTGet agent by ID GETUpdate agent PATCHService Get All Event Types GETAI generate or update agent prompt POSTList agent versions GETGet agent version detail GETUpdate agent version metadata PATCHRestore agent version POST
Initiate Google OAuth login GETHandle Google OAuth callback GETRefresh POSTLogout POSTSend Otp POSTVerify Otp POST
Get Batch Template Url GETService Get Batch Template Url GETGet Batches GETCreate Batch POSTUpdate Batch PATCHDelete Batch DELETEService Get Batches GETService Create Batch POSTService Update Batch PATCHService Delete Batch DELETE
Get Call Logs GETStream Post Call Progress Events GETGet Call Log Detail GETGet Call Recording POSTRecall Call Session POSTGet Call Recording Url POSTGet Call Recording Url By Action POSTService Get Call Logs GETService Get Call Log Detail GETService Get Call Recording POSTService Recall Call Session POSTService Get Call Recording Url POSTService Get Call Recording Url By Action POST
Get Countries GET
Discover Urls POSTService Discover Urls POSTList Knowledge Bases GETCreate a new knowledge base POSTGet Knowledge Base GETUpdate knowledge base PATCHCancel knowledge base ingestion POSTRetry failed or cancelled knowledge base ingestion POSTRe-crawl a knowledge base on demand POSTService List Knowledge Bases GETService Create Knowledge Base POSTService Get Knowledge Base GETService Patch Knowledge Base PATCHService Cancel Knowledge Base Ingestion POSTService Retry Knowledge Base Ingestion POSTService Refresh Knowledge Base POST
List phone numbers GETCreate a new phone number POSTManually sync phone numbers POSTList phone numbers by provider GETDelete phone number DELETEUpdate phone number PUTService List Phone Numbers GETService Create Phone Number POSTService Sync Phone Numbers POSTService List Phone Numbers By Provider GETService Delete Phone Number DELETEService Update Phone Number PUT
Preview pricing based on selected models GET
Get Grouped Providers GETCreate Provider POSTGet Language Default GETFilter Providers GETList Model Voices GETGet Model Voice GETUpdate Provider PATCHDelete Provider DELETEGet Provider Models GETGet Provider Models Data GETCreate Model POSTUpdate Model PATCHDelete Model DELETE
Originate Call POSTService Originate Call POST
Incoming Call POSTIncoming Call POSTTwiml Callback POSTStatus POSTExotel Warm Transfer Gate GETExotel Warm Transfer Connect GETPlivo Transfer Xml POSTTwilio Warm Transfer Destination POSTTwilio Transfer Leg Callback POSTPlivo Warm Transfer Caller POSTPlivo Warm Transfer Destination POSTInitiate Call POSTService Initiate Call POST
Me GETSync all users to PostHog POSTList API keys GETCreate Api Key POSTUpdate Api Key PATCHDelete Api Key DELETEList secret keys GETGenerate a secret key POSTDelete a secret key DELETE
Get Wallet Balance GET
Start Session POSTStart Text Session POST
List all languages GETGet a language by ID GET
List IANA timezones GET
List Workspaces GETCreate Workspace POSTSwitch Workspace PATCHGet Current Workspace GETGet Workspace GETUpdate Workspace PATCHDelete Workspace DELETEList Workspace Members GETRemove Workspace Member DELETELeave Workspace POSTInvite Member POSTAccept Invitation POSTDecline Invitation POSTList Workspace Invites GETRevoke Workspace Invite POST
List Projects GETCreate Project POSTDelete Project PATCHRemove Project Member DELETEList Project Members GETAdd Project Member POST
Bulk update user is_active PATCHList all users GETCreate a user by email POSTBulk delete users DELETEGet a user GETList a user's workspaces GETList a user's projects GETList pricing details for completed, fully billed calls in a workspace GETList all workspaces GETCreate a workspace for a user POSTGet a workspace GETDelete a workspace DELETEList all projects in a workspace GETList all members of a workspace GETCreate a project in a workspace POSTGet a project GETDelete a project DELETEList all members of a project GETStart impersonating a user POSTStop impersonating and return to the admin session POST
List Event Types GETList Webhook Subscriptions GETCreate Webhook Subscription POSTList Delivery Logs GETGet Webhook Subscription GETUpdate Webhook Subscription PATCHDelete Webhook Subscription DELETEService List Event Types GETService List Webhook Subscriptions GETService Create Webhook Subscription POSTService List Delivery Logs GETService Get Webhook Subscription GETService Update Webhook Subscription PATCHService Delete Webhook Subscription DELETE
List Function Logs GETService List Function Logs GET
List Integrations GETFilter Integrations GETGet Language Default GETList Model Voices GETGet Model Voice GETGet Integration Models GETGet Integration Detail GETGet Schema GETList Credentials GETCreate Credential POSTGet Credential GETUpdate Credential PATCHDelete Credential DELETEService List Credentials GETService Create Credential POSTService Get Credential GETService Update Credential PATCHService Delete Credential DELETE
List function tools GETCreate function tool POSTGet function tool GETUpdate function tool PATCHList function tools GETCreate function tool POSTGet function tool GETUpdate function tool PATCH
Health Check GET
Get Schema GETGet Default GET
List Templates GETGenerate Scenario Drafts POSTList Scenarios GETCreate Scenario POSTUpdate Scenario PATCHDelete Scenario DELETEList Runs GETTrigger Run POSTRerun Run POSTAuto Eval Run POSTOptimize Prompt Run POSTOptimize Whole Run POSTList Proposals GETGet Run Proposal GETAccept Proposal POSTReject Proposal POSTCoverage GETGet Run GETGet Run Results GETStream Run Events GET

Getting Started

OverviewInstallationQuick Start

Core

Provider & Setup

Hooks

AgentsCrewsOutbound CallsCall HistoryPhone NumbersIntegration CredentialsWebhooksKnowledge BasesFunction ToolsFunction Logs

Realtime

Realtime

UI

Components

Reference

TypesUtilities
Go to platform
Get Started

API Authentication

Create a secret key in the ScaleAI dashboard and use it as a Bearer token on every API request.

All ScaleAI API requests are authenticated with a secret key sent as a Bearer token. Keys are scoped to a single project, so pick (or create) the project you want to integrate before you start.

Create a secret key

  1. Open Settings, go to Projects, and open the API keys page for your project.
API keys page under project settings
  1. Click Create API Key. Creating keys is restricted to owners — you must be a workspace owner or an owner of the current project.
  2. Give the key a descriptive name (required, up to 100 characters), for example the integration or environment it belongs to, then click Create key.
Create API Key dialog with name field
  1. An API Key Created dialog shows the full key. Copy it immediately with the copy button and store it somewhere safe, such as a secrets manager.
API Key Created dialog showing the new key

The full key is shown only once. Afterwards the dashboard lists only a masked prefix (plus the name and creation date), and the complete value can never be retrieved again. If you lose it, delete the key and create a new one.

Use the key

Send the key as a Bearer token in the Authorization header of every request:

curl https://<your-backend-host>/api/v1/service/projects/<project_id>/agents \
  -H "Authorization: Bearer <your-secret-key>"

Requests without a valid token are rejected. Every endpoint page in this API reference shows the exact headers, parameters, and a live playground where you can paste your key and try the call.

Manage keys

  • Rotate a key by creating a replacement, updating your integration, then deleting the old one. There is no downtime as long as the new key is live before the old one is removed.
  • Delete a key with the trash icon in the key list. Deletion asks for confirmation, is restricted to owners, cannot be undone, and revokes the key immediately.
  • Use one key per integration or environment so a compromised or rotated key has the smallest possible blast radius, and never commit keys to source control.

API Overview

What the ScaleAI API is, how authentication works, and where to find every endpoint.

List available agent templates GET

Next Page

On this page

Create a secret keyUse the keyManage keys