Skip to main content
REST reference: /api-reference/resources/playgrounds.

Methods

verial.playgrounds.list({ cursor?, limit? })
verial.playgrounds.create({ environmentId })
verial.playgrounds.get({ id })
verial.playgrounds.teardown({ id })

Example

const pg = await verial.playgrounds.create({ environmentId: 'env_01H...' })
const details = await verial.playgrounds.get({ id: pg.id })
console.log(details.status)

await verial.playgrounds.teardown({ id: pg.id })