# Verify Domain Claim

> POST /domains/:domain_id/claim/verify — trigger DNS verification for a domain claim.

`POST /domains/:domain_id/claim/verify`

Starts an **asynchronous verification process** for a domain claim. MailBlastr checks the claim’s TXT record and, once it resolves, transfers the domain to your account. Add the TXT record returned by [Claim Domain](https://www.mailblastr.com/docs/api/domains-claim) before calling this, then poll [Get Domain Claim](https://www.mailblastr.com/docs/api/domains-get-claim) to follow the `status`.

> **Note:** After the claim completes, the domain is transferred to your account as a **brand-new domain with its own DKIM keys** — the previous account’s DNS records can’t be reused. Fetch it with [Retrieve a domain](https://www.mailblastr.com/docs/api/domains-get), publish the new DKIM record(s), then run [Verify a domain](https://www.mailblastr.com/docs/api/domains-verify) to finish setup before sending.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `domain_id` | string | Yes | The placeholder domain id returned when the claim was created. |

**Node.js**

```js
import { MailBlastr } from 'mailblastr';

const mb = new MailBlastr('mb_xxxxxxxxx');

const { data, error } = await mb.domains.verifyClaim('d91cd9bd-1176-453e-8fc1-35364d380206');
console.log({ data, error });
```

**Ruby**

```ruby
require "mailblastr"

Mailblastr.api_key = "mb_xxxxxxxxx"

Mailblastr::Domains.verify_claim("d91cd9bd-1176-453e-8fc1-35364d380206")
```

**PHP**

```php
$mailblastr = Mailblastr::client('mb_xxxxxxxxx');

$mailblastr->domains->verifyClaim('d91cd9bd-1176-453e-8fc1-35364d380206');
```

**Python**

```python
import mailblastr

mailblastr.api_key = "mb_xxxxxxxxx"

mailblastr.Domains.verify_claim("d91cd9bd-1176-453e-8fc1-35364d380206")
```

**Go**

```go
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("POST", "https://api.mailblastr.com/domains/d91cd9bd-1176-453e-8fc1-35364d380206/claim/verify", nil)
    req.Header.Set("Authorization", "Bearer mb_xxxxxxxxx")
    res, _ := http.DefaultClient.Do(req)
    defer res.Body.Close()
    out, _ := io.ReadAll(res.Body)
    fmt.Println(string(out))
}
```

**Rust**

```rust
use reqwest::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let res = Client::new()
        .post("https://api.mailblastr.com/domains/d91cd9bd-1176-453e-8fc1-35364d380206/claim/verify")
        .header("Authorization", "Bearer mb_xxxxxxxxx")
        .send()
        .await?;
    println!("{}", res.text().await?);
    Ok(())
}
```

**Java**

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.mailblastr.com/domains/d91cd9bd-1176-453e-8fc1-35364d380206/claim/verify"))
    .header("Authorization", "Bearer mb_xxxxxxxxx")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

**.NET**

```csharp
using System.Net.Http;
using System.Text;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.mailblastr.com/domains/d91cd9bd-1176-453e-8fc1-35364d380206/claim/verify");
request.Headers.Add("Authorization", "Bearer mb_xxxxxxxxx");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

**cURL**

```bash
curl -X POST 'https://api.mailblastr.com/domains/d91cd9bd-1176-453e-8fc1-35364d380206/claim/verify' \
  -H 'Authorization: Bearer mb_xxxxxxxxx'
```

**CLI**

```bash
mailblastr domains claim verify d91cd9bd-1176-453e-8fc1-35364d380206
```

### Response

```json
{
  "object": "domain_claim",
  "id": "dacf4072-4119-4d88-932f-6c6126d3a9d1",
  "name": "yourdomain.com",
  "status": "pending",
  "domain_id": "d91cd9bd-1176-453e-8fc1-35364d380206",
  "region": "us-east-1",
  "record": {
    "type": "TXT",
    "name": "yourdomain.com",
    "value": "mailblastr-domain-verification=3f8a1c2d4e5b6a7f8091a2b3c4d5e6f7",
    "ttl": "Auto"
  },
  "blocked_reason": null,
  "failure_reason": null,
  "created_at": "2026-06-16T17:12:02.059Z",
  "expires_at": "2026-06-23T17:12:02.059Z"
}
```

Errors: `not_found` if the claim does not exist or is not yours. See [Errors](https://www.mailblastr.com/docs/api/errors).
