import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.claims.verify(
'd91cd9bd-1176-453e-8fc1-35364d380206',
);
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Domains.Claims.verify(domain_id="d91cd9bd-1176-453e-8fc1-35364d380206")
Resend.api_key = ENV["RESEND_API_KEY"]
claim = Resend::Domains::Claims.verify("d91cd9bd-1176-453e-8fc1-35364d380206")
puts claim
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.DomainClaims.Verify("d91cd9bd-1176-453e-8fc1-35364d380206")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _data = resend
.domains
.verify_claim("d91cd9bd-1176-453e-8fc1-35364d380206")
.await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
DomainClaimResponseSuccess claim = resend.domains().claims()
.verify("d91cd9bd-1176-453e-8fc1-35364d380206");
}
}
curl -X POST 'https://api.resend.com/domains/d91cd9bd-1176-453e-8fc1-35364d380206/claim/verify' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json'
resend domains claim verify d91cd9bd-1176-453e-8fc1-35364d380206
{
"object": "domain_claim",
"id": "dacf4072-4119-4d88-932f-6c6126d3a9d1",
"name": "example.com",
"status": "pending",
"domain_id": "d91cd9bd-1176-453e-8fc1-35364d380206",
"region": "us-east-1",
"record": {
"type": "TXT",
"name": "example.com",
"value": "resend-domain-verification=3f8a1c2d4e5b6a7f8091a2b3c4d5e6f7",
"ttl": "Auto"
},
"blocked_reason": null,
"failure_reason": null,
"created_at": "2026-06-16 17:12:02.059593+00",
"expires_at": "2026-06-23 17:12:02.059593+00"
}
Verify Domain Claim
Trigger DNS verification for a domain claim.
POST
/
domains
/
:domain_id
/
claim
/
verify
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.claims.verify(
'd91cd9bd-1176-453e-8fc1-35364d380206',
);
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Domains.Claims.verify(domain_id="d91cd9bd-1176-453e-8fc1-35364d380206")
Resend.api_key = ENV["RESEND_API_KEY"]
claim = Resend::Domains::Claims.verify("d91cd9bd-1176-453e-8fc1-35364d380206")
puts claim
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.DomainClaims.Verify("d91cd9bd-1176-453e-8fc1-35364d380206")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _data = resend
.domains
.verify_claim("d91cd9bd-1176-453e-8fc1-35364d380206")
.await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
DomainClaimResponseSuccess claim = resend.domains().claims()
.verify("d91cd9bd-1176-453e-8fc1-35364d380206");
}
}
curl -X POST 'https://api.resend.com/domains/d91cd9bd-1176-453e-8fc1-35364d380206/claim/verify' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json'
resend domains claim verify d91cd9bd-1176-453e-8fc1-35364d380206
{
"object": "domain_claim",
"id": "dacf4072-4119-4d88-932f-6c6126d3a9d1",
"name": "example.com",
"status": "pending",
"domain_id": "d91cd9bd-1176-453e-8fc1-35364d380206",
"region": "us-east-1",
"record": {
"type": "TXT",
"name": "example.com",
"value": "resend-domain-verification=3f8a1c2d4e5b6a7f8091a2b3c4d5e6f7",
"ttl": "Auto"
},
"blocked_reason": null,
"failure_reason": null,
"created_at": "2026-06-16 17:12:02.059593+00",
"expires_at": "2026-06-23 17:12:02.059593+00"
}
Calling this endpoint starts an asynchronous verification process. Resend
checks the claim’s TXT record and runs ownership-safety checks before
transferring the domain to your team. Add the TXT record returned by Claim
Domain before calling this, then poll
Get Domain Claim to follow the
status.After the claim completes: the domain is transferred to your account as a
brand-new domain with its own DKIM keys, so the previous account’s DNS records
can’t be reused. Fetch it with Get
Domain, update your DNS with the new DKIM
record(s), then run Verify Domain to
finish setup before sending or receiving email. See DKIM
records for details.
Path Parameters
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.claims.verify(
'd91cd9bd-1176-453e-8fc1-35364d380206',
);
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Domains.Claims.verify(domain_id="d91cd9bd-1176-453e-8fc1-35364d380206")
Resend.api_key = ENV["RESEND_API_KEY"]
claim = Resend::Domains::Claims.verify("d91cd9bd-1176-453e-8fc1-35364d380206")
puts claim
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.DomainClaims.Verify("d91cd9bd-1176-453e-8fc1-35364d380206")
}
use resend_rs::{Resend, Result};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _data = resend
.domains
.verify_claim("d91cd9bd-1176-453e-8fc1-35364d380206")
.await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
DomainClaimResponseSuccess claim = resend.domains().claims()
.verify("d91cd9bd-1176-453e-8fc1-35364d380206");
}
}
curl -X POST 'https://api.resend.com/domains/d91cd9bd-1176-453e-8fc1-35364d380206/claim/verify' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json'
resend domains claim verify d91cd9bd-1176-453e-8fc1-35364d380206
{
"object": "domain_claim",
"id": "dacf4072-4119-4d88-932f-6c6126d3a9d1",
"name": "example.com",
"status": "pending",
"domain_id": "d91cd9bd-1176-453e-8fc1-35364d380206",
"region": "us-east-1",
"record": {
"type": "TXT",
"name": "example.com",
"value": "resend-domain-verification=3f8a1c2d4e5b6a7f8091a2b3c4d5e6f7",
"ttl": "Auto"
},
"blocked_reason": null,
"failure_reason": null,
"created_at": "2026-06-16 17:12:02.059593+00",
"expires_at": "2026-06-23 17:12:02.059593+00"
}
Was this page helpful?
⌘I