> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/resend/resend-go/llms.txt
> Use this file to discover all available pages before exploring further.

# List Topics

> Retrieve a paginated list of topics.

## Method

```go theme={null}
func (s *TopicsSvcImpl) List(options *ListOptions) (*ListTopicsResponse, error)
func (s *TopicsSvcImpl) ListWithContext(ctx context.Context, options *ListOptions) (*ListTopicsResponse, error)
```

## Parameters

<ParamField path="options" type="*ListOptions">
  Pagination options

  <ParamField path="Limit" type="*int">
    Maximum number of topics to return
  </ParamField>

  <ParamField path="After" type="*string">
    Cursor for forward pagination
  </ParamField>

  <ParamField path="Before" type="*string">
    Cursor for backward pagination
  </ParamField>
</ParamField>

## Response

<ResponseField name="Object" type="string">
  Always `"list"`
</ResponseField>

<ResponseField name="HasMore" type="bool">
  Whether there are more results available
</ResponseField>

<ResponseField name="Data" type="[]*Topic">
  Array of topic objects

  <ResponseField name="Id" type="string">
    The unique identifier of the topic
  </ResponseField>

  <ResponseField name="Name" type="string">
    The name of the topic
  </ResponseField>

  <ResponseField name="Description" type="string">
    The description of the topic
  </ResponseField>

  <ResponseField name="DefaultSubscription" type="DefaultSubscription">
    Default subscription preference
  </ResponseField>

  <ResponseField name="CreatedAt" type="string">
    ISO 8601 timestamp of when the topic was created
  </ResponseField>
</ResponseField>

## Example

```go theme={null}
client := resend.NewClient("re_123456789")

limit := 10
options := &resend.ListOptions{
    Limit: &limit,
}

response, err := client.Topics.List(options)
if err != nil {
    panic(err)
}

for _, topic := range response.Data {
    fmt.Printf("Topic: %s (%s)\n", topic.Name, topic.Id)
}

fmt.Println("Has More:", response.HasMore)
```
