Find one
- JavaScript
- curl
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"
}
curl "https://api.confetti.events/workspaces/2"
-H "Authorization: apikey your-key"
Result
{
"data": {
"id": 1,
"type": "workspace",
"attributes": {
"name": "My workspace"
}
}
}