DocumentationAPI ReferenceReact SDKRelease 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
List Campaigns GETCreate Campaign POSTCreate Campaign Draft POSTGet Campaign GETUpdate Campaign PATCHPreview Campaign Agent Change POSTList Campaign Contacts GETUpload Campaign Contacts POSTGet Campaign Start Blockers GETStart Campaign POSTPause Campaign POSTResume Campaign POSTTerminate Campaign POSTArchive Campaign POSTGet Campaign Stats GET
Get Call Logs GETStream Post Call Progress Events GETGet Call Log Detail GETGet Call Recording POSTStream Call Recording GETRecall 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 Stream Call Recording GETService Recall Call Session POSTService Get Call Recording Url POSTService Get Call Recording Url By Action POST
Get compliance requirements for a provider and country GETSubmit a compliance application POSTWhich provider and country pairs need a verification GETList compliance applications for this project GETGet a compliance application by ID GETResubmit a rejected compliance application POSTSearch available phone numbers from a provider POSTBuy a phone number using a cleared compliance application POSTRelease a phone number back to the provider POSTPlivo Compliance Webhook 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 GETWho we can buy numbers from GETSearch numbers available to buy GETBuy a number POSTDelete 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
What this provider needs before numbers can be bought GETThis project's latest KYC/clearance attempt for this scope GETSubmit compliance / start provider-hosted KYC POSTPoll the provider for this clearance's current status (fallback to the webhook) POSTSearch numbers available to buy (requires a cleared KYC for this scope) GETBuy a number (requires a cleared KYC for this scope; debits the wallet) POSTRelease a rented number back to the provider DELETEUndo a still-pending release within its cooldown window POST
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 POSTVobiz Answer Callback POSTPlivo Callback POSTStatus POSTExotel Warm Transfer Gate GETExotel Warm Transfer Connect GETPlivo Transfer Xml POSTTwilio Warm Transfer Destination POSTTwilio Transfer Leg Callback POSTPlivo Transfer Leg Callback POSTPlivo Warm Transfer Caller POSTPlivo Warm Transfer Destination POSTVobiz Transfer Xml POSTVobiz Warm Transfer Caller POSTVobiz Warm Transfer Destination POSTVobiz Transfer Leg Callback POSTVobiz Kyc Webhook POSTInitiate Call POSTService Initiate Call POST
Me GETUpdate Me PATCHSync 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 GETThis workspace's wallet history, newest first GET
Start Session POSTStart Text Session POST
List all languages GETGet a language by ID GET
List IANA timezones GET
List Workspaces GETClosed: workspaces are provisioned by the team 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 POSTThis workspace's effective feature levers GET
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 GETUpdate a user PATCHDeactivate a user and tear down their workspaces DELETEList 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 GETUpdate a workspace PATCHDelete a workspace DELETEList all projects in a workspace GETList all members of a workspace GETA workspace's wallet balance GETThe workspace's current deal terms GETEverything behind one call's charge GETA workspace's ledger, newest first GETSettle an offline deal into a workspace's wallet POSTSet the currency and fixed ratio a workspace's grants are paid in PUTDeduct credits from a workspace's wallet POSTList every feature lever and its platform default GETAdd a feature lever to the catalog POSTEdit a feature lever PATCHDelete a feature lever and every override of it DELETERetune a feature's platform default PUTShow what rented numbers cost us per month GETChange what rented numbers cost us per month PUTA workspace's effective feature levers GETDrop a workspace back to the platform default for one lever DELETEOverride one feature lever for one workspace PUTWhich models this workspace may use GETSet which models this workspace may use PUTAdmin Get Call GETAdmin Get Call Recording Url POSTAdmin List Call Function Logs GETAdmin List Call Webhook Logs GETCreate a project in a workspace POSTGet a project GETUpdate a project PATCHDelete a project DELETEList all members of a project GETStart impersonating a user POSTStop impersonating and return to the admin session POSTList all integrations (active and inactive) with their platform credential GETCreate an integration's platform credential POSTUpdate an integration's existing platform credential PATCHActivate or deactivate an integration PATCHUpdate an integration's catalog title and description PATCHSeed providers, models, pricing, and tags synchronously POSTCurrent memory/gc stats for this API worker process GETForce a full gc.collect() + allocator trim and report the RSS delta POST[Verification only] Deliberately leak `count` objects to test the profiling report POST
List Event Types GETTest Webhook Delivery POSTList 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 GETGet Integration Catalog 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 Get Integration Catalog GETService List Credentials GETService Create Credential POSTService Get Credential GETService Update Credential PATCHService Delete Credential DELETE
List function tools GETCreate function tool POSTSend a draft API request once and show the response POSTGet function tool GETUpdate function tool PATCHList function tools GETCreate function tool POSTGet function tool GETUpdate function tool PATCH
Health Check 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
Get Schema GETGet Default GET

Getting Started

OverviewInstallationQuick Start

Core

Provider & Setup

Hooks

AgentsOutbound CallsCall HistoryPhone NumbersIntegration CredentialsWebhooksKnowledge BasesFunction ToolsFunction Logs

Realtime

Realtime

UI

Components

Reference

TypesUtilities
Go to platform
Auth

Logout

POST/api/v1/auth/logout

Authorization

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/auth/logout" \  -H "Content-Type: application/json" \  -d '{    "refresh_token": "string"  }'
Empty

Refresh POST

Previous Page

Send Otp POST

Next Page

refresh_token*Refresh Token