Skip to content

feat: add POST /api/sandboxes/setup endpoint#219

Merged
sweetmantech merged 1 commit intotestfrom
sweetmantech/myc-4216-api-new-endpoint-post-apisandboxessetup
Feb 12, 2026
Merged

feat: add POST /api/sandboxes/setup endpoint#219
sweetmantech merged 1 commit intotestfrom
sweetmantech/myc-4216-api-new-endpoint-post-apisandboxessetup

Conversation

@sweetmantech
Copy link
Contributor

Summary

  • New POST /api/sandboxes/setup endpoint that triggers the setup-sandbox background task
  • Creates personal sandbox, provisions GitHub repo, takes snapshot, and shuts down
  • Supports optional account_id override for organization API keys
  • Full TDD with 10 tests across 3 test files (trigger wrapper, validation, handler)

Test plan

  • pnpm test — all 10 new tests pass
  • pnpm build — production build succeeds
  • pnpm lint — no new lint errors
  • Manual test: call endpoint with valid API key, verify Trigger.dev task is triggered

🤖 Generated with Claude Code

Triggers the setup-sandbox background task to create a personal sandbox,
provision a GitHub repo, take a snapshot, and shut down.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@vercel
Copy link
Contributor

vercel bot commented Feb 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recoup-api Ready Ready Preview Feb 11, 2026 9:19pm

Request Review

@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

Warning

Rate limit exceeded

@sweetmantech has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 15 minutes and 17 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sweetmantech/myc-4216-api-new-endpoint-post-apisandboxessetup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sweetmantech sweetmantech merged commit 322cc70 into test Feb 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant