Skip to main content
GET
/
api
/
v1
/
topics
List topics
curl --request GET \
  --url https://api.railmail.app/api/v1/topics \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "topicKey": "APIT-1",
      "name": "Newsletter",
      "description": "Weekly news",
      "status": "ACTIVE",
      "doubleOptInEnabled": true,
      "subscriberCount": 1200,
      "activeSubscriberCount": 1180,
      "createdAt": "2026-06-01T09:00:00Z"
    }
  ],
  "pagination": {
    "page": 0,
    "size": 20,
    "totalElements": 1,
    "totalPages": 1,
    "hasNext": false,
    "hasPrevious": false
  }
}

Authorizations

X-API-Key
string
header
required

Project-scoped API key, format rm_(live|test)_... . May also be sent as Authorization: Bearer rm_....

Query Parameters

page
integer
default:0

Zero-based page index.

Required range: x >= 0
size
integer
default:20

Page size, clamped to a maximum of 100.

Required range: 1 <= x <= 100

Response

Paginated topics

data
object[]
pagination
object