DocumentationAPI ReferenceRelease Notes
ScaleAI
API OverviewAPI Authentication
Create 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 PATCHGet All Event Types GETAI generate or update agent prompt POSTList agent versions GETGet agent version detail GETUpdate agent version metadata PATCHRestore agent version POST
Get Batch Template Url GETGet Batches GETCreate Batch POSTUpdate Batch PATCHDelete Batch DELETE
Get Call Logs GETGet Call Log Detail GETGet Call Recording POSTStream Call Recording GETRecall Call Session POSTGet Call Recording Url POSTGet Call Recording Url By Action POST
Discover Urls POSTList Knowledge Bases GETCreate Knowledge Base POSTGet Knowledge Base GETPatch Knowledge Base PATCHCancel Knowledge Base Ingestion POSTRetry Knowledge Base Ingestion POSTRefresh Knowledge Base POST
List Phone Numbers GETCreate Phone Number POSTSync Phone Numbers POSTList Phone Numbers By Provider GETDelete Phone Number DELETEUpdate Phone Number PUT
Originate Call POST
Initiate Call POST
List Event Types GETList Webhook Subscriptions GETCreate Webhook Subscription POSTList Delivery Logs GETGet Webhook Subscription GETUpdate Webhook Subscription PATCHDelete Webhook Subscription DELETE
List Function Logs GET
List function tools GETCreate function tool POSTGet function tool GETUpdate function tool PATCH
List Credentials GET
Create Credential POSTGet Credential GETUpdate Credential PATCHDelete Credential DELETE
Go to platform
Batch

Create Batch

POST/api/v1/service/projects/{project_id}/batches

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

project_id*Project Id
Formatuuid

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/service/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/batches" \  -F file="string" \  -F agent_id="2b1e3b65-2c04-4fa2-a2d7-467901e98978" \  -F name="string" \  -F execution_type="NOW"
{  "batch_id": "4da22c97-b7d5-4e31-8c3a-03870ebc7b20",  "name": "string",  "status": "DRAFT",  "valid_count": 0,  "invalid_count": 0}

Get Batches GET

Previous Page

Update Batch PATCH

Next Page

file*File
Formatbinary
agent_id*Agent Id
Formatuuid
name*Name
execution_type*ExecutionType

Value in

  • "NOW"
  • "SCHEDULED"
scheduled_at?|null
phone_number_id?|null
telephony_provider?string|null
webhook?string|null