Skip to main content
POST
/
v1
/
environments
/
{environmentId}
/
warm-hooks
/
test
Test Warm Hook
curl --request POST \
  --url https://api.tryreplicas.com/v1/environments/{environmentId}/warm-hooks/test \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>"
}
'
{
  "test": {
    "exit_code": 123,
    "output": "<string>",
    "timed_out": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.replicas.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.

Path Parameters

environmentId
string
required

Environment UUID, or the literal string global.

Body

application/json
content
string
required

Shell script to execute (not persisted)

Response

Test executed

test
object
required

Result of running a warm hook script in an isolated sandbox.