Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.verial.ai/llms.txt

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

Sandboxes are running instances of a Simulator. Each sandbox provides live credentials (FHIR endpoints, phone numbers, fax numbers, SFTP paths, portal URLs) and records all interactions as events. Sandboxes can be created standalone or as part of a Playground. After a task rollout, sandbox state is the input the verification engine scores against.

Endpoints

MethodEndpointDescription
GET/sandboxesList sandboxes
POST/sandboxesCreate a sandbox
GET/sandboxes/{id}Get sandbox details
GET/sandboxes/{id}/eventsList sandbox events
POST/sandboxes/{id}/teardownTear down a sandbox
POST/sandboxes/{id}/datasets/{datasetId}Add a dataset to the sandbox
DELETE/sandboxes/{id}/datasets/{datasetId}Remove a dataset from the sandbox

Sandbox Object

FieldTypeDescription
idstringUnique identifier
simulator_idstringSource Simulator
playground_idstring | nullParent Playground, if part of one
statusstringCurrent status (provisioning, active, teardown, etc.)
credentialsobject | nullProtocol-specific access credentials. See Credentials by Simulator Type.
organization_idstringParent organization
created_atdatetimeCreation timestamp
updated_atdatetimeLast modification timestamp

Credentials by Simulator Type

The credentials object is shaped by the source simulator’s type. Typical shapes:

Payer (Web Simulator)

Returned when the simulator’s config.portal is set (see the Web Portal catalog).
FieldTypeDescription
portal_urlstringURL for a browser agent to navigate to (e.g. https://radmd.sim.verial.ai)
usernamestringAuto-generated login username, scoped to this sandbox
passwordstringAuto-generated login password, scoped to this sandbox
api_urlstringREST base URL for the backing payer endpoints (/prior-auths, /patients, /providers)
{
  "portal_url": "https://radmd.sim.verial.ai",
  "username": "provider_a1b2c3",
  "password": "Kq7!mZxP9vRnT2wL",
  "api_url": "https://api.verial.ai/sandboxes/sbx_01H.../web-sim/payer"
}

FHIR

FieldTypeDescription
fhir_base_urlstringFHIR R4 base URL
token_urlstringSMART on FHIR token endpoint
client_idstringOAuth2 client ID
client_secretstringOAuth2 client secret

Voice

FieldTypeDescription
phone_numberstringE.164 number to call

HL7

FieldTypeDescription
inbox_urlstringURL to GET inbound messages
outbound_urlstringURL to POST outbound messages
Other simulator types follow the same pattern: connection details needed to read from and write to the live instance.

SDK Example

// Create a standalone sandbox
const sandbox = await verial.sandboxes.create({
  simulatorId: 'sim_abc123',
})

// List sandboxes (optionally filter by playground)
const sandboxes = await verial.sandboxes.list({ playgroundId: 'pg_abc123' })

// Get sandbox details (includes credentials)
const details = await verial.sandboxes.get({ id: sandbox.id })

// List interaction events
const events = await verial.sandboxes.listEvents({ id: sandbox.id })

// Load a dataset
await verial.sandboxes.addDataset({
  sandboxId: sandbox.id,
  datasetId: 'ds_abc123',
})

// Remove a dataset
await verial.sandboxes.removeDataset({
  sandboxId: sandbox.id,
  datasetId: 'ds_abc123',
})

// Tear down when done
await verial.sandboxes.teardown({ id: sandbox.id })