Skip to main content
POST
Initialize Environment

Request

Body Parameters

templateService
string
required
Service type: "slack" or "linear"
templateName
string
Template to clone from (e.g., "slack_default", "linear_expanded"). Required if testId is not provided.
testId
string
Test ID to get template configuration from. If provided, templateService and templateName are inferred.
impersonateUserId
string
User ID the agent will act as. Required if testId is not provided.
impersonateEmail
string
Email of the user to impersonate. Alternative to impersonateUserId.
ttlSeconds
number
default:"1800"
Time-to-live in seconds. Environment auto-deletes after this time.

Example Request

Response

environmentId
string
Unique environment identifier
environmentUrl
string
Base URL for service API calls
schemaName
string
PostgreSQL schema name for this environment
expiresAt
string
ISO 8601 timestamp when environment will auto-delete
templateSchema
string
Template that was cloned
service
string
Service type (slack or linear)

Example Response

Errors

SDK Usage