Skip to main content
Five minutes from signup to a provider SDK talking to your own copy of Resend.

Prerequisites

  • An account on console.twinbay.ai. Email address, no invite code.
  • curl and jq, or the CLI.
  • Python 3.9+ with pip install resend to run the last step.

1. Mint an API key

Open API keys in the console and create one. The token is readable once, so copy it now.
Every request sends it in X-API-Key. A key acts with the role of the member who created it.

2. Create a sandbox

Name the twins you want and describe the state in a sentence.
The response is a 202: Twinbay recorded the sandbox and queued each twin for provisioning. Keep the ids.

3. Wait for the twin to report ready

Poll until state is ready, which takes a container start and a seeding pass. The url is the private hostname your code will call, such as https://resend-a1c93f.twinbay.run. A twin still not serving after two minutes reports failed with a failure telling you why.

4. Collect the credential

The twin mints a key shaped like the provider’s own. Twinbay hands it over once and refuses a second call, so store it where your test run can read it.

5. Point the provider SDK at the twin

Change the base URL and the key. Nothing else.

6. Read back what your code sent

Fetch one log by id for the full request and response bodies.

The same run from the CLI

Next

Advance sandbox time

Turn a queued email into a delivered or bounced one without waiting.

Edit sandbox state

Replace a record the provider would never let you write.

Available twins

What Resend and Linear model, and where each stops.

Templates

Save a sandbox definition and start every CI job from it.
Stuck? Write to hi@twinbay.ai.