Skip to main content

Find one

const Confetti = require('confetti')

const confetti = new Confetti({ apiKey: 'your-key' })
const ticket = await confetti.workspaces.find(2)
Result
{
"id": 1,
"name": "My workspace",
"type": "workspace"
}