import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.inboxes.update(
'b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1',
{ name: 'Customer Support', fromName: 'Ada from Support' },
);
$resend = Resend::client('re_xxxxxxxxx');
$resend->inboxes->update('b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1', [
'name' => 'Customer Support',
'from_name' => 'Ada from Support',
]);
import resend
resend.api_key = "re_xxxxxxxxx"
params: resend.Inboxes.UpdateParams = {
"id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1",
"name": "Customer Support",
"from_name": "Ada from Support",
}
resend.Inboxes.update(params)
require "resend"
Resend.api_key = "re_xxxxxxxxx"
params = {
inbox_id: "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1",
name: "Customer Support",
from_name: "Ada from Support"
}
Resend::Inboxes.update(params)
package main
import "github.com/resend/resend-go/v4"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
fromName := "Ada from Support"
params := &resend.UpdateInboxRequest{
Name: "Customer Support",
FromName: &fromName,
}
client.Inboxes.Update("b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", params)
use resend_rs::{
types::{UpdateInboxOptions},
Resend, Result,
};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let opts = UpdateInboxOptions::new()
.with_name("Customer Support")
.with_from_name("Ada from Support");
let _inbox = resend
.inboxes
.update("b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", opts)
.await?;
Ok(())
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.InboxUpdateAsync(
new Guid( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1" ),
new InboxUpdateData()
{
Name = "Customer Support",
FromName = "Ada from Support",
}
);
Console.WriteLine( "Inbox Id={0}", resp.Content );
curl -X PATCH 'https://api.resend.com/inboxes/b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d $'{
"name": "Customer Support",
"from_name": "Ada from Support"
}'
resend inboxes update b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1 \
--name "Customer Support" \
--from-name "Ada from Support"
{
"object": "inbox",
"id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"
}
Update Inbox
Update the internal inbox name or the name recipients see when sending.
PATCH
/
inboxes
/
:inbox_id
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.inboxes.update(
'b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1',
{ name: 'Customer Support', fromName: 'Ada from Support' },
);
$resend = Resend::client('re_xxxxxxxxx');
$resend->inboxes->update('b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1', [
'name' => 'Customer Support',
'from_name' => 'Ada from Support',
]);
import resend
resend.api_key = "re_xxxxxxxxx"
params: resend.Inboxes.UpdateParams = {
"id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1",
"name": "Customer Support",
"from_name": "Ada from Support",
}
resend.Inboxes.update(params)
require "resend"
Resend.api_key = "re_xxxxxxxxx"
params = {
inbox_id: "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1",
name: "Customer Support",
from_name: "Ada from Support"
}
Resend::Inboxes.update(params)
package main
import "github.com/resend/resend-go/v4"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
fromName := "Ada from Support"
params := &resend.UpdateInboxRequest{
Name: "Customer Support",
FromName: &fromName,
}
client.Inboxes.Update("b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", params)
use resend_rs::{
types::{UpdateInboxOptions},
Resend, Result,
};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let opts = UpdateInboxOptions::new()
.with_name("Customer Support")
.with_from_name("Ada from Support");
let _inbox = resend
.inboxes
.update("b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", opts)
.await?;
Ok(())
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.InboxUpdateAsync(
new Guid( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1" ),
new InboxUpdateData()
{
Name = "Customer Support",
FromName = "Ada from Support",
}
);
Console.WriteLine( "Inbox Id={0}", resp.Content );
curl -X PATCH 'https://api.resend.com/inboxes/b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d $'{
"name": "Customer Support",
"from_name": "Ada from Support"
}'
resend inboxes update b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1 \
--name "Customer Support" \
--from-name "Ada from Support"
{
"object": "inbox",
"id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"
}
Path Parameters
Body Parameters
At least one ofname or from_name is required. Omitted fields keep their
current value.
string
New internal name for the inbox. Recipients do not see it. Between 1 and 64
characters after trimming.
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.update(
'b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1',
{ name: 'Customer Support', fromName: 'Ada from Support' },
);
$resend = Resend::client('re_xxxxxxxxx');
$resend->inboxes->update('b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1', [
'name' => 'Customer Support',
'from_name' => 'Ada from Support',
]);
import resend
resend.api_key = "re_xxxxxxxxx"
params: resend.Inboxes.UpdateParams = {
"id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1",
"name": "Customer Support",
"from_name": "Ada from Support",
}
resend.Inboxes.update(params)
require "resend"
Resend.api_key = "re_xxxxxxxxx"
params = {
inbox_id: "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1",
name: "Customer Support",
from_name: "Ada from Support"
}
Resend::Inboxes.update(params)
package main
import "github.com/resend/resend-go/v4"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
fromName := "Ada from Support"
params := &resend.UpdateInboxRequest{
Name: "Customer Support",
FromName: &fromName,
}
client.Inboxes.Update("b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", params)
use resend_rs::{
types::{UpdateInboxOptions},
Resend, Result,
};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let opts = UpdateInboxOptions::new()
.with_name("Customer Support")
.with_from_name("Ada from Support");
let _inbox = resend
.inboxes
.update("b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", opts)
.await?;
Ok(())
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.InboxUpdateAsync(
new Guid( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1" ),
new InboxUpdateData()
{
Name = "Customer Support",
FromName = "Ada from Support",
}
);
Console.WriteLine( "Inbox Id={0}", resp.Content );
curl -X PATCH 'https://api.resend.com/inboxes/b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d $'{
"name": "Customer Support",
"from_name": "Ada from Support"
}'
resend inboxes update b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1 \
--name "Customer Support" \
--from-name "Ada from Support"
{
"object": "inbox",
"id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"
}
Was this page helpful?
⌘I