Authentication
All endpoints require an API key in theAuthorization header:
Base URL
Create an Environment
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Environment name |
description | string | No | Optional description |
Errors
| Status | Message | Cause |
|---|---|---|
| 400 | Environment name is required | Missing or empty name field |
| 400 | Maximum of 20 environments allowed | User already has 20 environments |
List Environments
Returns all environments for the authenticated user.Response Fields
| Field | Type | Description |
|---|---|---|
_id | string | Unique environment identifier |
userId | string | Owner’s user ID |
name | string | Environment name |
description | string | Environment description |
status | string | empty, uploading, or ready |
createdAt | string | ISO 8601 creation timestamp |
updatedAt | string | ISO 8601 last update timestamp |
Delete an Environment
Permanently deletes an environment, its browser profile data, and all attached files.Errors
| Status | Message | Cause |
|---|---|---|
| 404 | Environment not found | Invalid ID or environment belongs to another user |
Upload Browser Profile Data
Uploads a.tar.gz Chrome profile archive to an environment. Replaces any existing profile data and sets the status to ready.
| Parameter | Location | Description |
|---|---|---|
ENV_ID | URL path | The environment ID |
file | Form field | .tar.gz profile archive (max 500 MB) |
Errors
| Status | Message | Cause |
|---|---|---|
| 400 | No file provided | Missing file field in form data |
| 400 | Only .tar.gz files are allowed | File is not a valid .tar.gz archive |
| 404 | Environment not found | Invalid ID or environment belongs to another user |
List Files in an Environment
Returns all files attached to an environment.Response Fields
| Field | Type | Description |
|---|---|---|
fileId | string | Unique file identifier |
originalName | string | Original filename as uploaded |
size | number | File size in bytes |
createdAt | string | ISO 8601 upload timestamp |
Delete a File from an Environment
Permanently removes a specific file from an environment.Errors
| Status | Message | Cause |
|---|---|---|
| 404 | File not found | Invalid file ID or file does not belong to this environment |
Common Errors
All error responses follow this format:| Status | Message | Cause |
|---|---|---|
| 401 | API key required | Missing Authorization header |
| 401 | Invalid or revoked API key | API key is incorrect or has been revoked |
| 403 | Account is deactivated | User account is disabled |
| 500 | Authentication error | Server-side authentication failure |
Related
Related