Get All Runs in a Space
Runs - Executions & calls
Get All Runs in a Space
Retrieve all batch executions associated with a specific space
GET
Get All Runs in a Space
Documentation Index
Fetch the complete documentation index at: https://docs.unpod.dev/llms.txt
Use this file to discover all available pages before exploring further.
Get All Runs in a Space
Retrieve all runs associated with a specific space. A run represents a batch execution — a group of tasks triggered together within a space. This endpoint returns run details including run ID, status, timestamps, and associated collection metadata.Prerequisites: Make sure you have your API Token ready. See Authentication for details.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| space_token | string | Yes | Public token identifying the space |
You can get the
space_token by hitting the Get All Spaces API. The token field in the response is your Space Token.Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | API Key format: Token <token> |
| Content-Type | string | Yes | application/json |
Response Fields
| Field | Type | Description |
|---|---|---|
| count | integer | Total number of runs |
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | array | Array of run objects |
Run Object Fields
| Field | Type | Description |
|---|---|---|
| run_id | string | Unique run identifier |
| collection_ref | string | Reference to the data collection |
| run_mode | string | Execution engine: prefect, etc. |
| status | string | Run status: completed, running, failed, pending |
| created | string | Run creation timestamp |
| modified | string | Last modified timestamp |
Common Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Data fetched successfully |
| 206 | Partial Content - Business logic error occurred |
| 400 | Bad Request - Invalid parameters provided |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Access denied to the resource |
| 404 | Not Found - Space not found |
| 500 | Internal Server Error - Server-side error |
Code Examples
Best Practices
- Space Token: Always use the correct space token for your API requests
- Run ID: Store the
run_idfrom each run to query tasks within that run - Status Monitoring: Poll this endpoint to track the status of ongoing batch executions
- Error Handling: Always handle potential errors and edge cases
- Security: Keep API tokens secure and rotate them regularly