# List domains

> GET /domains — list every domain on your account.

`GET /domains`

Lists all domains on your account, newest first. Each entry is the same domain object returned by [retrieve](https://www.senddart.com/docs/api/domains-get).

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | number | No | Number of domains to retrieve. Minimum `1`, maximum `100`. Optional — when omitted, this endpoint returns up to `1000` domains in a single response and sets `has_more: true` if it had to truncate. |
| `after` | string | No | The ID *after* which to retrieve more domains (for pagination). This ID is not included in the returned list. Cannot be combined with `before`. |
| `before` | string | No | The ID *before* which to retrieve more domains (for pagination). This ID is not included in the returned list. Cannot be combined with `after`. |

**Node.js**

```js
import { SendDart } from 'senddart';

const mb = new SendDart('mb_xxxxxxxxx');

const { data, error } = await mb.domains.list();
console.log({ data, error });
```

**Ruby**

```ruby
require "senddart"

SendDart.api_key = "mb_xxxxxxxxx"

SendDart::Domains.list
```

**PHP**

```php
<?php
require 'vendor/autoload.php';

use SendDart\SendDart;

$senddart = SendDart::client('mb_xxxxxxxxx');

$senddart->domains->list();
```

**Python**

```python
import senddart

senddart.api_key = "mb_xxxxxxxxx"

senddart.Domains.list()
```

**Go**

```go
import "github.com/shekhu10/senddart-sdks/senddart-go"

client := senddart.NewClient("mb_xxxxxxxxx")

domains, err := client.Domains.List(nil)
```

**Rust**

```rust
use senddart::SendDart;

let mb = SendDart::new("mb_xxxxxxxxx");

let _domains = mb.domains.list(None).await?;
```

**Java**

```java
import com.senddart.SendDart;
import com.senddart.SendDartResponse;

SendDart senddart = new SendDart("mb_xxxxxxxxx");

SendDartResponse response = senddart.domains().list();
```

**.NET**

```csharp
using SendDart;

ISendDart senddart = SendDartClient.Create("mb_xxxxxxxxx");

var resp = await senddart.DomainListAsync();
```

**cURL**

```bash
curl -X GET 'https://www.senddart.com/api/domains' \
  -H 'Authorization: Bearer mb_xxxxxxxxx'
```

**CLI**

```bash
senddart domains list
```

Response:

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "domain",
      "id": "d91a7c4e-1f2b-4a8c-9e3d-7b5f0a2c1d6e",
      "name": "yourdomain.com",
      "zone": "yourdomain.com",
      "status": "verified",
      "region": "us-east-1",
      "created_at": "2026-06-23T12:00:00.000Z",
      "custom_return_path": "send",
      "open_tracking": false,
      "click_tracking": false,
      "tracking_subdomain": null,
      "tls": "opportunistic",
      "capabilities": {
        "sending": "enabled",
        "receiving": "disabled"
      },
      "tracking_domain": null,
      "tracking_verified": false,
      "aws_last_checked_at": null,
      "aws_check_error": null,
      "records": [ ... ]
    }
  ]
}
```
