resend in twins and put this configuration under seed_config.resend.
Resend email-delivery platform with sending and receiving domains, contacts, contact properties, segments, subscription topics, templates, sent and received email, broadcasts, suppressions, webhooks, custom events, and automations.
Example seed
This is the complete Scenario request body for creating a Scenario. You can also import it witharga test-runner scenarios import --file scenario.json.
{
"name": "Resend eval fixture",
"twins": [
"resend"
],
"seed_config": {
"resend": {
"team_name": "Example Mail Team",
"owner_email": "owner@example.test",
"rate_limiting_enabled": true,
"rate_limit_per_second": 10,
"daily_email_quota": 100,
"monthly_email_quota": 3000,
"contact_quota": 1000,
"auto_verify_domains": false,
"auto_deliver_webhooks": false,
"domains": [
{
"id": "domain_example",
"name": "mail.example.test",
"region": "us-east-1",
"status": "verified",
"click_tracking": true,
"open_tracking": true,
"tls": "opportunistic",
"capabilities": {
"sending": "enabled",
"receiving": "enabled"
}
}
],
"contact_properties": [
{
"id": "property_plan",
"key": "plan",
"type": "string",
"fallback_value": "free"
}
],
"segments": [
{
"id": "segment_customers",
"name": "Customers"
}
],
"topics": [
{
"id": "topic_product_updates",
"name": "Product updates",
"description": "Product and launch announcements",
"default_subscription": "opt_in"
}
],
"contacts": [
{
"email": "ada@example.test",
"first_name": "Ada",
"last_name": "Lovelace",
"unsubscribed": false,
"properties": {
"plan": "pro"
},
"segments": [
"segment_customers"
],
"topics": [
{
"id": "topic_product_updates",
"subscription": "opt_in"
}
]
}
],
"templates": [
{
"id": "template_welcome",
"name": "Welcome",
"alias": "welcome",
"status": "published",
"from": "Example <hello@mail.example.test>",
"subject": "Welcome, {{first_name}}",
"html": "<p>Welcome, {{first_name}}!</p>",
"text": "Welcome, {{first_name}}!",
"variables": [
{
"key": "first_name",
"type": "string",
"fallback_value": "there"
}
]
}
],
"suppressions": [
{
"email": "suppressed@example.test",
"origin": "manual"
}
],
"webhooks": [
{
"endpoint": "https://app.example.test/webhooks/resend",
"events": [
"email.sent",
"email.delivered",
"email.bounced",
"email.received"
],
"status": "enabled",
"signing_secret": "whsec_scenario_secret"
}
],
"events": [
{
"id": "event_trial_started",
"name": "trial_started",
"schema": {
"plan": "string",
"seats": "number"
}
}
],
"automations": [
{
"name": "Trial onboarding",
"status": "enabled",
"steps": [
{
"key": "trigger",
"type": "trigger",
"config": {
"event_name": "trial_started"
}
},
{
"key": "add_customer",
"type": "add_to_segment",
"config": {
"segment_id": "segment_customers"
}
}
],
"connections": [
{
"from": "trigger",
"to": "add_customer",
"type": "default"
}
]
}
],
"emails": [
{
"from": "Example <hello@mail.example.test>",
"to": [
"ada@example.test"
],
"cc": [],
"bcc": [],
"reply_to": [
"support@mail.example.test"
],
"subject": "Welcome to Example",
"html": "<p>Thanks for joining.</p>",
"text": "Thanks for joining.",
"tags": [
{
"name": "category",
"value": "welcome"
}
],
"attachments": [
{
"filename": "welcome.txt",
"content": "V2VsY29tZSE=",
"content_type": "text/plain"
}
]
}
],
"received_emails": [
{
"from": "customer@example.test",
"to": [
"support@mail.example.test"
],
"subject": "A question",
"html": "<p>Can you help?</p>",
"text": "Can you help?",
"headers": {
"Message-ID": "<question@example.test>"
},
"attachments": []
}
],
"broadcasts": [
{
"name": "Launch announcement",
"segment_id": "segment_customers",
"topic_id": "topic_product_updates",
"from": "Example <news@mail.example.test>",
"subject": "A new launch",
"html": "<p>See what is new.</p>",
"text": "See what is new.",
"status": "draft",
"send": false
}
]
}
}
}
Parameters
The following fields belong directly insideseed_config.resend. Required nested fields are marked in their tables. Provider-native objects can contain service-specific fields beyond the representative record shapes below.
| Parameter | Type | Description |
|---|---|---|
team_name | string | Team name. |
owner_email | string | Owner email. |
rate_limiting_enabled | boolean | Enable request rate limiting. |
rate_limit_per_second | integer | Rate limit per second. |
daily_email_quota | integer | Daily email quota. |
monthly_email_quota | integer | Monthly email quota. |
contact_quota | integer | Contact quota. |
auto_verify_domains | boolean | Enable or set auto verify domains behavior. |
auto_deliver_webhooks | boolean | Enable automatic delivery of configured twin webhooks. |
domains | object[] | Domains fixtures in provider-native format. |
contact_properties | object[] | Contact properties fixtures in provider-native format. |
segments | object[] | Segments fixtures in provider-native format. |
topics | object[] | Topics fixtures in provider-native format. |
contacts | object[] | Contacts fixtures in provider-native format. |
templates | object[] | Templates fixtures in provider-native format. |
suppressions | array of strings or objects | Suppressions. |
webhooks | object[] | Webhook subscriptions or configurations. |
events | object[] | Events fixtures in provider-native format. |
automations | object[] | Automations fixtures in provider-native format. |
emails | object[] | Emails fixtures in provider-native format. |
received_emails | object[] | Received emails fixtures in provider-native format. |
broadcasts | object[] | Broadcasts fixtures in provider-native format. |
seed | string | Deterministic seed used by this twin. |
base_time | string | Reference clock for repeatable fixtures. Omit to use the current clock. |
api_key | string | Synthetic API key accepted by the twin. |
audiences | object[] | Audiences fixtures in provider-native format. |
Resource fields
These tables describe the record shapes used by the example. Keep native field names and casing. Map keys such as property names, IDs, and metadata keys are supplied by your fixture.domains[]
| Parameter | Type | Description |
|---|---|---|
id | string | Explicit resource identifier, when supported. |
name | string | Human-readable name. |
region | string | Region. |
status | string | Status. |
click_tracking | boolean | Enable or set click tracking behavior. |
open_tracking | boolean | Enable or set open tracking behavior. |
tls | string | Tls. |
capabilities | object | Capabilities. |
contact_properties[]
| Parameter | Type | Description |
|---|---|---|
id | string | Explicit resource identifier, when supported. |
key | string | Key. |
type | string | Type. |
fallback_value | string | Fallback value. |
segments[]
| Parameter | Type | Description |
|---|---|---|
id | string | Explicit resource identifier, when supported. |
name | string | Human-readable name. |
topics[]
| Parameter | Type | Description |
|---|---|---|
id | string | Explicit resource identifier, when supported. |
name | string | Human-readable name. |
description | string | Description. |
default_subscription | string | Default subscription. |
contacts[]
| Parameter | Type | Description |
|---|---|---|
email | string | Main account email address. |
first_name | string | First name. |
last_name | string | Last name. |
unsubscribed | boolean | Enable or set unsubscribed behavior. |
properties | object | Properties. |
segments | string[] | Segments fixtures in provider-native format. |
topics | object[] | Topics fixtures in provider-native format. |
contacts[].topics[]
| Parameter | Type | Description |
|---|---|---|
id | string | Explicit resource identifier, when supported. |
subscription | string | Subscription. |
templates[]
| Parameter | Type | Description |
|---|---|---|
id | string | Explicit resource identifier, when supported. |
name | string | Human-readable name. |
alias | string | Fixture-local name used by supported relationship references. |
status | string | Status. |
from | string | From. |
subject | string | Subject. |
html | string | Html. |
text | string | Text content. |
variables | object[] | Variables fixtures in provider-native format. |
templates[].variables[]
| Parameter | Type | Description |
|---|---|---|
key | string | Key. |
type | string | Type. |
fallback_value | string | Fallback value. |
suppressions[]
| Parameter | Type | Description |
|---|---|---|
email | string | Main account email address. |
origin | string | Origin. |
webhooks[]
| Parameter | Type | Description |
|---|---|---|
endpoint | string | Endpoint. |
events | string[] | Events fixtures in provider-native format. |
status | string | Status. |
signing_secret | string | Signing secret. |
events[]
| Parameter | Type | Description |
|---|---|---|
id | string | Explicit resource identifier, when supported. |
name | string | Human-readable name. |
schema | object | Schema. |
automations[]
| Parameter | Type | Description |
|---|---|---|
name | string | Human-readable name. |
status | string | Status. |
steps | object[] | Steps fixtures in provider-native format. |
connections | object[] | Connections fixtures in provider-native format. |
automations[].steps[]
| Parameter | Type | Description |
|---|---|---|
key | string | Key. |
type | string | Type. |
config | object | Runtime settings accepted by this Scenario adapter. |
automations[].connections[]
| Parameter | Type | Description |
|---|---|---|
from | string | From. |
to | string | To. |
type | string | Type. |
emails[]
| Parameter | Type | Description |
|---|---|---|
from | string | From. |
to | string[] | To fixtures in provider-native format. |
cc | array | Cc fixtures in provider-native format. |
bcc | array | Bcc fixtures in provider-native format. |
reply_to | string[] | Reply to fixtures in provider-native format. |
subject | string | Subject. |
html | string | Html. |
text | string | Text content. |
tags | object[] | Tags fixtures in provider-native format. |
attachments | object[] | Attachments fixtures in provider-native format. |
emails[].tags[]
| Parameter | Type | Description |
|---|---|---|
name | string | Human-readable name. |
value | string | Value. |
emails[].attachments[]
| Parameter | Type | Description |
|---|---|---|
filename | string | Filename. |
content | string | Text content. |
content_type | string | Content type. |
received_emails[]
| Parameter | Type | Description |
|---|---|---|
from | string | From. |
to | string[] | To fixtures in provider-native format. |
subject | string | Subject. |
html | string | Html. |
text | string | Text content. |
headers | object | Headers. |
attachments | array | Attachments fixtures in provider-native format. |
broadcasts[]
| Parameter | Type | Description |
|---|---|---|
name | string | Human-readable name. |
segment_id | string | Segment id. |
topic_id | string | Topic id. |
from | string | From. |
subject | string | Subject. |
html | string | Html. |
text | string | Text content. |
status | string | Status. |
send | boolean | Enable or set send behavior. |

