For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Go to app
DocumentationAPI Reference
DocumentationAPI Reference
  • API Reference
    • Introduction
    • Users
    • Taskflow
    • AI Task Builder
      • Batches
      • Exporting Batch Data
      • Collections
      • Exporting Collection Data
      • Datasets
      • Instructions
      • GETList Batches
      • POSTCreate a Batch
      • GETGet a Batch
      • PATCHUpdate a Batch
      • GETGet Batch Status
      • POSTSetup a Batch
      • GETGet Batch Responses
      • GETGet Batch Report
      • POSTDuplicate a Batch
      • POSTRequest a Batch Export
      • GETGet Batch Export Status
      • POSTCreate a Dataset
      • GETGet Dataset Upload URL
      • GETGet Dataset Status
      • GETGet Batch Instructions
      • POSTCreate Batch Instructions
      • PUTUpdate Batch Instructions
      • GETList Collections
      • POSTCreate a Collection
      • GETGet a Collection
      • PUTUpdate a Collection
      • GETGet Collection Responses
      • POSTRequest a Collection Export
      • GETGet Collection Export Status
    • Studies
    • Representative sample studies
    • Filter Sets
    • Participant Groups
    • Custom Groups
    • Study Distribution
    • Submissions
    • Bonuses
    • Messages
    • Workspaces
    • Projects
    • Surveys
    • Webhooks
    • Invitations
    • Reward Recommendations
    • Testing
    • Well Known Endpoints
Go to app
LogoLogo
API ReferenceAI Task Builder

List Batches

|View as Markdown|Open in Claude|
GET
https://api.prolific.com/api/v1/data-collection/batches
GET
/api/v1/data-collection/batches
$curl -G https://api.prolific.com/api/v1/data-collection/batches \
> -H "Authorization: Token <token>" \
> -H "Content-Type: application/json" \
> -d workspace_id=6278acb09062db3b35bcbeb0
1{
2 "results": [
3 {
4 "id": "a3f1c2d4-5b6e-7f89-0123-456789abcdef",
5 "created_at": "2024-01-15T09:30:00Z",
6 "created_by": "6278cb09062dbb35bc4abebc",
7 "datasets": [
8 {
9 "id": "b7d9e8f0-1234-5678-9abc-def012345678",
10 "total_datapoint_count": 1500,
11 "filename": "user_responses_2024-01.csv"
12 }
13 ],
14 "name": "Customer Feedback Batch January 2024",
15 "status": "UNINITIALISED",
16 "total_task_count": 25,
17 "total_instruction_count": 5,
18 "workspace_id": "6278acb09062db3b35bcbeb0",
19 "schema_version": 1,
20 "task_details": {
21 "task_name": "Sentiment Analysis Task",
22 "task_introduction": "<p>Welcome to the sentiment analysis task. Your goal is to classify customer feedback into positive, neutral, or negative categories.</p>",
23 "task_steps": "<ol><li>Read each feedback entry carefully.</li><li>Select the sentiment category that best fits the feedback.</li><li>Submit your classification.</li></ol>"
24 },
25 "total_task_groups": 3
26 }
27 ],
28 "meta": {
29 "count": 1
30 }
31}
Get all AI Task Builder batches by workspace id
Was this page helpful?
Previous

Instructions

Next

Create a Batch

Authentication

AuthorizationToken

The Prolific API uses API token to authenticate requests. You can create an API token directly from your settings.

Your API token does not have an expiry date and carries full permission, so be sure to keep them secure.

If your token is leaked, delete it and create a new one directly in the app.

In your requests add Authorization header with the value Token <your token>.

Query parameters

workspace_idstringRequired
The unique identifier of the workspace

Response

Ok
resultslist of objects
metaobject

Errors

4XX
Client Request Error