# 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 { SendPing } from 'sendping';

const mb = new SendPing('mb_xxxxxxxxx');

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

**Ruby**

```ruby
require "sendping"

SendPing.api_key = "mb_xxxxxxxxx"

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

**PHP**

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

use SendPing\SendPing;

$sendping = SendPing::client('mb_xxxxxxxxx');

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

**Python**

```python
import sendping

sendping.api_key = "mb_xxxxxxxxx"

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

**Go**

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

client := sendping.NewClient("mb_xxxxxxxxx")

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

**Rust**

```rust
use sendping::{ListTopicsParams, SendPing};

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

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

**Java**

```java
import co.sendping.SendPing;
import co.sendping.SendPingResponse;

SendPing sendping = new SendPing("mb_xxxxxxxxx");

SendPingResponse response = sendping.topics().list("yourdomain.com");
```

**.NET**

```csharp
using SendPing;

ISendPing sendping = SendPingClient.Create("mb_xxxxxxxxx");

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

**cURL**

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

**CLI**

```bash
sendping 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"
    }
  ]
}
```
