Get all batches
This endpoint retrieves batches in a project.
HTTP Request
GET https://app.resemble.ai/api/v2/projects/<project_uuid>/batch?page=<page>&page_size=<page_size>
URL Parameters | Type | Description |
---|---|---|
project_uuid | string | Batches for the project with this UUID will be returned |
Query Parameters | Type | Description |
---|---|---|
page | number starting from 1 | The page to fetch |
page_size | number between 10-1000 (inclusive) | Determines the number of items per page |
HTTP Response
danger
Keep in mind, getting all batches in a project won't show the clips. To see the clips inside a batch, use the Get A Batch API to find the single batch.
{
"success": true,
"page": <number>,
"num_pages": <number>,
"page_size": <number,
"items": Array<{
{
"uuid": <string>,
"body": Array<Array<string, string>>,
"voice_uuid": <string>,
"total_count": <number>,
"completed_count": <number>,
"failed_count": <number>,
"created_at": <UTC Date>,
"updated_at": <UTC Date>
}
}>
}
Examples
NodeJS
1
2
3
4
5
6
7
8
9
10
import { Resemble } from '@resemble/node'
Resemble.setApiKey('YOUR_API_TOKEN')
const projectUuid = '..'
const page = 1
const pageSize = 10 // optional parameter
const response = await Resemble.v2.batch.all(projectUuid, page, pageSize)
const batches = response.items
Try it out
API Key:
Project Uuid:
Page:
Page Size: