Platform Endpoints
Initialize Environment
Create an isolated test environment
POST
Initialize Environment
Documentation Index
Fetch the complete documentation index at: https://agentdiff.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Request
Body Parameters
Service type:
"slack" or "linear"Template to clone from (e.g.,
"slack_default", "linear_expanded").
Required if testId is not provided.Test ID to get template configuration from. If provided,
templateService and templateName are inferred.User ID the agent will act as. Required if
testId is not provided.Email of the user to impersonate. Alternative to
impersonateUserId.Time-to-live in seconds. Environment auto-deletes after this time.
Example Request
Response
Unique environment identifier
Base URL for service API calls
PostgreSQL schema name for this environment
ISO 8601 timestamp when environment will auto-delete
Template that was cloned
Service type (
slack or linear)Example Response
Errors
| Error | Status | Description |
|---|---|---|
template_not_found | 404 | Template doesn’t exist |
missing_impersonate | 400 | impersonateUserId or impersonateEmail required |
invalid_service | 400 | Unknown service type |
SDK Usage
Initialize Environment