import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.inboxes.create({
emailAddress: 'support@example.com',
name: 'Customer Support',
fromName: 'Ada from Support',
});
$resend = Resend::client('re_xxxxxxxxx');
$resend->inboxes->create([
'email_address' => 'support@example.com',
'name' => 'Customer Support',
'from_name' => 'Ada from Support',
]);
import resend
resend.api_key = "re_xxxxxxxxx"
params: resend.Inboxes.CreateParams = {
"email_address": "support@example.com",
"name": "Customer Support",
"from_name": "Ada from Support",
}
resend.Inboxes.create(params)
require "resend"
Resend.api_key = "re_xxxxxxxxx"
params = {
email_address: "support@example.com",
name: "Customer Support",
from_name: "Ada from Support"
}
Resend::Inboxes.create(params)
package main
import "github.com/resend/resend-go/v4"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
params := &resend.CreateInboxRequest{
EmailAddress: "support@example.com",
Name: "Customer Support",
FromName: "Ada from Support",
}
client.Inboxes.Create(params)
use resend_rs::{
types::{CreateInboxOptions},
Resend, Result,
};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let opts = CreateInboxOptions::new("support@example.com")
.with_name("Customer Support")
.with_from_name("Ada from Support");
let _inbox = resend.inboxes.create(opts).await?;
Ok(())
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.InboxCreateAsync( new InboxCreateData()
{
EmailAddress = "support@example.com",
Name = "Customer Support",
FromName = "Ada from Support",
} );
Console.WriteLine( "Inbox Id={0}", resp.Content );
curl -X POST 'https://api.resend.com/inboxes' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d $'{
"email_address": "support@example.com",
"name": "Customer Support",
"from_name": "Ada from Support"
}'
resend inboxes create \
--email-address support@example.com \
--name "Customer Support" \
--from-name "Ada from Support"
{
"object": "inbox",
"id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"
}
Create Inbox
Create an inbox to send, receive and organize email.
POST
/
inboxes
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.inboxes.create({
emailAddress: 'support@example.com',
name: 'Customer Support',
fromName: 'Ada from Support',
});
$resend = Resend::client('re_xxxxxxxxx');
$resend->inboxes->create([
'email_address' => 'support@example.com',
'name' => 'Customer Support',
'from_name' => 'Ada from Support',
]);
import resend
resend.api_key = "re_xxxxxxxxx"
params: resend.Inboxes.CreateParams = {
"email_address": "support@example.com",
"name": "Customer Support",
"from_name": "Ada from Support",
}
resend.Inboxes.create(params)
require "resend"
Resend.api_key = "re_xxxxxxxxx"
params = {
email_address: "support@example.com",
name: "Customer Support",
from_name: "Ada from Support"
}
Resend::Inboxes.create(params)
package main
import "github.com/resend/resend-go/v4"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
params := &resend.CreateInboxRequest{
EmailAddress: "support@example.com",
Name: "Customer Support",
FromName: "Ada from Support",
}
client.Inboxes.Create(params)
use resend_rs::{
types::{CreateInboxOptions},
Resend, Result,
};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let opts = CreateInboxOptions::new("support@example.com")
.with_name("Customer Support")
.with_from_name("Ada from Support");
let _inbox = resend.inboxes.create(opts).await?;
Ok(())
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.InboxCreateAsync( new InboxCreateData()
{
EmailAddress = "support@example.com",
Name = "Customer Support",
FromName = "Ada from Support",
} );
Console.WriteLine( "Inbox Id={0}", resp.Content );
curl -X POST 'https://api.resend.com/inboxes' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d $'{
"email_address": "support@example.com",
"name": "Customer Support",
"from_name": "Ada from Support"
}'
resend inboxes create \
--email-address support@example.com \
--name "Customer Support" \
--from-name "Ada from Support"
{
"object": "inbox",
"id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"
}
An inbox sends and receives email at an address on one of your domains, such as
support@example.com.
Without forwarding, the domain must have receiving enabled, with DKIM and SPF
verified and the inbound MX record verified or pending. With forwarding set to
true, the domain needs only DKIM and SPF verified. Otherwise, the request
returns a 422. An address that is already in use
returns a 409. A team at the inbox limit of its plan gets a 403.
Body Parameters
string
Internal name for the inbox. Recipients do not see it. Max 64 characters.
Defaults to
email_address.boolean
default:"false"
When
true, Resend provisions a receiving address so you can receive mail
without adding an MX record. Read it from receiving_address with Get
Inbox.Response Fields
string
Always
inbox.string
The ID of the inbox.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.inboxes.create({
emailAddress: 'support@example.com',
name: 'Customer Support',
fromName: 'Ada from Support',
});
$resend = Resend::client('re_xxxxxxxxx');
$resend->inboxes->create([
'email_address' => 'support@example.com',
'name' => 'Customer Support',
'from_name' => 'Ada from Support',
]);
import resend
resend.api_key = "re_xxxxxxxxx"
params: resend.Inboxes.CreateParams = {
"email_address": "support@example.com",
"name": "Customer Support",
"from_name": "Ada from Support",
}
resend.Inboxes.create(params)
require "resend"
Resend.api_key = "re_xxxxxxxxx"
params = {
email_address: "support@example.com",
name: "Customer Support",
from_name: "Ada from Support"
}
Resend::Inboxes.create(params)
package main
import "github.com/resend/resend-go/v4"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
params := &resend.CreateInboxRequest{
EmailAddress: "support@example.com",
Name: "Customer Support",
FromName: "Ada from Support",
}
client.Inboxes.Create(params)
use resend_rs::{
types::{CreateInboxOptions},
Resend, Result,
};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let opts = CreateInboxOptions::new("support@example.com")
.with_name("Customer Support")
.with_from_name("Ada from Support");
let _inbox = resend.inboxes.create(opts).await?;
Ok(())
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.InboxCreateAsync( new InboxCreateData()
{
EmailAddress = "support@example.com",
Name = "Customer Support",
FromName = "Ada from Support",
} );
Console.WriteLine( "Inbox Id={0}", resp.Content );
curl -X POST 'https://api.resend.com/inboxes' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d $'{
"email_address": "support@example.com",
"name": "Customer Support",
"from_name": "Ada from Support"
}'
resend inboxes create \
--email-address support@example.com \
--name "Customer Support" \
--from-name "Ada from Support"
{
"object": "inbox",
"id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"
}
Was this page helpful?
⌘I