# List topics

> GET /topics — list the topics on a sending domain.

`GET /topics`

Pass `?domain=` to pick the sending domain whose topics to list — the parameter is required.

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | Yes | The sending domain whose topics to list. |
| `limit` | number | No | Number of topics to retrieve. Optional; omit it and up to 1,000 topics come back in one response — `has_more` is `true` if that cap truncated the list, so keep paging with `after`. Minimum `1`, maximum `100`. |
| `after` | string | No | The topic ID *after* which to retrieve more topics (for pagination). The ID is not included in the result. Cannot be combined with `before`. |
| `before` | string | No | The topic ID *before* which to retrieve more topics (for pagination). The ID is not included in the result. Cannot be combined with `after`. |

**Node.js**

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

const mb = new SendDart('mb_xxxxxxxxx');

const { data, error } = await mb.topics.list({ domain: 'yourdomain.com' });
console.log({ data, error });
```

**Ruby**

```ruby
require "senddart"

SendDart.api_key = "mb_xxxxxxxxx"

SendDart::Topics.list({
  "domain": "yourdomain.com"
})
```

**PHP**

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

use SendDart\SendDart;

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

$senddart->topics->list([
  'domain' => "yourdomain.com"
]);
```

**Python**

```python
import senddart

senddart.api_key = "mb_xxxxxxxxx"

senddart.Topics.list({
  "domain": "yourdomain.com"
})
```

**Go**

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

client := senddart.NewClient("mb_xxxxxxxxx")

topics, err := client.Topics.List(&senddart.ListTopicsRequest{
    Domain: "yourdomain.com",
})
```

**Rust**

```rust
use senddart::{ListTopicsParams, SendDart};

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

let _topics = mb.topics.list(ListTopicsParams::new("yourdomain.com")).await?;
```

**Java**

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

SendDart senddart = new SendDart("mb_xxxxxxxxx");

SendDartResponse response = senddart.topics().list("yourdomain.com");
```

**.NET**

```csharp
using SendDart;

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

var resp = await senddart.TopicListAsync("yourdomain.com");
```

**cURL**

```bash
curl -X GET 'https://www.senddart.com/api/topics?domain=yourdomain.com' \
  -H 'Authorization: Bearer mb_xxxxxxxxx'
```

**CLI**

```bash
senddart topics list \
  --domain yourdomain.com
```

### Response

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "topic_9a2f...",
      "name": "Product updates",
      "description": null,
      "default_subscription": "opt_in",
      "visibility": "private",
      "created_at": "2026-06-25T10:00:00.000Z"
    }
  ]
}
```
