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

Get Batches

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

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

project_id*Project Id
Formatuuid

Query Parameters

search?|null
execution_type?|null
batch_status?|null
sort_by?string|null
agent_id?|null
start_date?|null
end_date?|null
page?Page

Page number

Range1 <= value
Default1
size?Size

Page size

Range1 <= value <= 100
Default50

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/service/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/batches"
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "filename": "string",      "user_uploaded_file": "string",      "execution_type": "NOW",      "processed_file": "string",      "agent_name": "string",      "valid_rows": 0,      "total_rows": 0,      "batch_status": "DRAFT",      "created_at": "2019-08-24T14:15:22Z",      "execution_status": {},      "scheduled_at": "2019-08-24T14:15:22Z",      "webhooks": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "url": "string",          "scope": "agent",          "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",          "phone_number_id": "54afc7b8-17df-415a-9fb0-21ee66219576",          "batch_id": "4da22c97-b7d5-4e31-8c3a-03870ebc7b20",          "events": [            "string"          ],          "secret": "string",          "custom_headers": {            "property1": "string",            "property2": "string"          },          "query_params": {            "property1": "string",            "property2": "string"          },          "integration_credential_id": "fe0828f5-08d5-417e-a3fe-b212bfdbe765",          "is_active": true        }      ]    }  ],  "total": 0,  "page": 1,  "size": 1,  "pages": 0}

Get Batch Template Url GET

Previous Page

Create Batch POST

Next Page