# List subscription topics

`GET /v1/topics`

- Authentication: required (Bearer token)
- Required scope: `api.topics.view`

Returns every subscription topic on the org's contact list. Topics
are list-level metadata with no recipient PII, so this endpoint sits
behind the narrower `api.topics.view` scope. SES caps a contact list
at 50 topics, so the response is not paginated. `subscriber_count` is
the number of contacts with an explicit `OPT_IN` preference for the
topic. When no contact list is synced, an empty array is returned.

## Example request

```bash
curl 'https://api.sendops.dev/v1/topics' \
  -H "Authorization: Bearer $SENDOPS_API_KEY"
```

## Responses

### 200 — All topics on the contact list (unpaginated)

Content type: `application/json`

```json
{
  "data": [
    {
      "name": "string",
      "display_name": "string",
      "description": "string",
      "default_subscription_status": "OPT_IN",
      "subscriber_count": 0,
      "origin": "managed",
      "source_path": "string",
      "status": "active",
      "created_at": "2026-05-17T20:00:00Z",
      "updated_at": "2026-05-17T20:00:00Z"
    }
  ],
  "pagination": {
    "has_more": true,
    "next_cursor": "string"
  }
}
```

### 401 — Missing, malformed, or unknown API key

Content type: `application/problem+json`

```json
{
  "type": "https://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "invalid_key",
  "request_id": "string",
  "retry_after": 0,
  "retention_days": 0,
  "scope": "string",
  "resource": "string",
  "errors": [
    {
      "field": "string",
      "reason": "string"
    }
  ]
}
```

### 403 — Key lacks the required scope or plan limit violated

Content type: `application/problem+json`

```json
{
  "type": "https://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "invalid_key",
  "request_id": "string",
  "retry_after": 0,
  "retention_days": 0,
  "scope": "string",
  "resource": "string",
  "errors": [
    {
      "field": "string",
      "reason": "string"
    }
  ]
}
```

### 429 — Per-org rate limit exceeded

Content type: `application/problem+json`

```json
{
  "type": "https://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "invalid_key",
  "request_id": "string",
  "retry_after": 0,
  "retention_days": 0,
  "scope": "string",
  "resource": "string",
  "errors": [
    {
      "field": "string",
      "reason": "string"
    }
  ]
}
```

### 500 — Unexpected server-side failure. The `code` is `internal_error`. The
`request_id` field can be quoted to SendOps support to investigate.

Content type: `application/problem+json`

```json
{
  "type": "https://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "invalid_key",
  "request_id": "string",
  "retry_after": 0,
  "retention_days": 0,
  "scope": "string",
  "resource": "string",
  "errors": [
    {
      "field": "string",
      "reason": "string"
    }
  ]
}
```
